Home Explore Blog CI



nushell

commands/docs/commandline_edit.md
5de685434b253869211682322fe00f42a4db9deff395f283000000030000039a
---
title: commandline edit
categories: |
  core
version: 0.104.0
core: |
  Modify the current command line input buffer.
usage: |
  Modify the current command line input buffer.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `commandline edit` for [core](/commands/categories/core.md)

<div class='command-title'>Modify the current command line input buffer.</div>

## Signature

```> commandline edit {flags} (str)```

## Flags

 -  `--append, -a`: appends the string to the end of the buffer
 -  `--insert, -i`: inserts the string into the buffer at the cursor position
 -  `--replace, -r`: replaces the current contents of the buffer (default)

## Parameters

 -  `str`: The string to perform the operation with.


## Input/output types:

| input   | output  |
| ------- | ------- |
| nothing | nothing |

Chunks
7808f8f8 (1st chunk of `commands/docs/commandline_edit.md`)
Title: commandline edit: Modify the command line input buffer
Summary
The `commandline edit` command allows modification of the current command line input buffer. It supports appending, inserting, or replacing the buffer's content with a given string. Flags control the type of modification: `--append` for appending, `--insert` for inserting at the cursor, and `--replace` (default) for replacing the entire buffer.