mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Add self-insert-notfirst readline command
This adds a new readline command self-insert-notfirst, which is analogous to self-insert, except that it does nothing if the cursor is at the beginning. This will serve as a higher-performance implementation for stripping leading spaces on paste.
This commit is contained in:
@@ -162,6 +162,10 @@ The following special input functions are available:
|
||||
|
||||
- ``repaint-mode`` reexecutes the fish_mode_prompt function and redraws the prompt. This is useful for vi-mode. If no fish_mode_prompt exists, it acts like a normal repaint.
|
||||
|
||||
- ``self-insert``, inserts the matching sequence into the command line
|
||||
|
||||
- ``self-insert-notfirst``, inserts the matching sequence into the command line, unless the cursor is at the beginning
|
||||
|
||||
- ``suppress-autosuggestion``, remove the current autosuggestion
|
||||
|
||||
- ``swap-selection-start-stop``, go to the other end of the highlighted text without changing the selection
|
||||
|
||||
Reference in New Issue
Block a user