| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Also, correct the Vi mode default escape timeout. I intended it to be 100 ms
in my previous change but it ended up 10 ms which is far too short. A 10 ms
delay will continue to cause problems for people running fish inside `screen`,
`tmux`, or over high latency connections.
|
|
|
|
| |
As always, we default to setting globally.
|
|
|
|
| |
This should fix the tests.
|
|
|
|
|
| |
This ensures they can just be called and "the right thing" will happen -
fish_user_key_bindings will be executed, the variable will reflect the bindings.
|
|
|
|
| |
Fixes #2375
|
|
|
|
| |
Fixes #2904
|
|
|
|
| |
Fixes #2832.
|
|
|
|
|
| |
Commit dfb23c4fce11d9d0577a2cb3c9e192bc24f64c8c was supposed to incude
all the edits to make the code compliant with fish_indent.
|
|
|
|
|
|
|
| |
Commit c0e8ad6 on 2015-10-02 to "Make vi bindings inherit the defaults"
inadvertently reverted commit b6b6de3. Fix that regression. And while I
hate to make "git blame" say I changed the entire file make the function
adhere to fish_indent style.
|
|
|
|
|
|
|
|
|
| |
The swap-selection-start-stop function goes to the other end of the highlighted text, the equivalent of `o' for vim visual mode.
Add binding to the swap-selection-start-stop function, `o' when in visual
mode.
Document swap-selection-start-stop, begin-selection, end-selection, kill-selection.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This changes the default escape timeout for the default keybindings (emacs
mode) to 300ms and the default for vi keybindings to 10ms.
I couldn't resist fixing a few nits in the fish_vi_key_bindings.fish file
since I was touching it to set the escape timeout.
|
| | |
|
|/
|
|
|
|
| |
* Add home/end, $/0 keys
* Add (c)hange key
* Add j/k keys for up/down
|
|
|
|
|
|
|
| |
This makes it possible (on UNIX systems, don't know about MS Windows)
to bind \cJ (\n) independently of \cM (\r, aka [enter]).
Resolves #217
|
|
|
|
|
|
|
| |
This makes them {forward,backward}-char instead of -word, which means
they accept suggestions _fully_.
Fixes #2255
|
|
|
|
| |
This is mentioned in the documentation, so keep it for now.
|
|
|
|
| |
This will also accept any autosuggestion completely.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This reduces code duplication and adds some previously unavailable
bindings that don't quite _violate_ the vi-principle (like
prevd-or-backward-word on alt-left) and matches other "impure" bindings
like \cf for forward-word (a quite emacs-ish binding) we already have.
Fixes #2412
Fixes #2472
Fixes #2255
|
|
|
|
|
|
|
| |
Why this is only in some, I don't know, but these don't seem to
interfere with anything.
Fixes #2309
|
|
|
|
|
|
| |
Keep the behavior for normal mode
Fixes #2228
|
|
|
|
| |
Fixes #1595
|
|\ |
|
| |
| |
| |
| | |
Closes #2077.
|
|/
|
|
|
|
|
|
|
|
| |
- Add four new functions: forward-bigword, backward-bigword,
kill-bigword, backward-kill-bigword
- Add new enum move_word_style_whitespace and related state machine
method
- Change vi key bindings to operate on bigwords: B, gE, W, E, dW, diW,
daW, dE, dB, dgE, cW, ciW, caW, cE, cB, cgE, yW, yiW, yaW, yE, yB,
ygE
|
|
|
|
| |
Fixes #1933
|
|
|
|
|
|
| |
There is no CTRL-C handler for the default mode in the vi bindings. This makes it difficult to say "never mind" and start a new command line like you can do in bash's vi mode.
There were CTRL-C handlers for insert and visual modes that go back to default mode, but nothing happens in default mode. I copy-pasted the CTRL-C handler from the default key bindings file.
|
| |
|
| |
|
|
|
|
|
|
| |
Add optional argument for fish_vi_key_bindings to set desired initial
mode:
> fish_vi_key_bindings default
|
| |
|
|
|
|
| |
Make this consistent with vi.
|
|
|
|
|
|
| |
'and' will prevent later input functions from being executed if the
previous one did not succeed (e.g. a jump to a char not on the command
line)
|
|
|
|
| |
Input functions can now have arguments
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
when sourcing fish_vi_mode.fish
|
| |
|
|
|
|
| |
visual mode
|
|
|
|
|
|
|
| |
Comment out 'o' binding
Add '['/']' bindings to navigate current token history
Fix 'P' to paste indeed
Add "*P/"*p to insert current selection clipboard using xsel
|
| |
|
|
|
|
| |
Put E, W bindings in agreement with vim
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The following normal mode bindings are added:
o, I, A, gg, G, g^, g$, x, X, backspace, d*, D, s, S, c*, C, ~, gu,
gU, J, K, y*, Y, p, P
I was not able to add binding for 'O'
dd now deletes the whole line as vim, while D deletes the line to the
end. c, s, y act the same way
|
| |
|