aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_vi_key_bindings.fish
Commit message (Collapse)AuthorAge
* clarify fish_vi_mode deprecation warningGravatar Kurtis Rader2016-04-28
| | | | | | | 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.
* Allow setting key bindings universallyGravatar Fabian Homborg2016-04-26
| | | | As always, we default to setting globally.
* Set fish_key_bindings globally in binding functionsGravatar Fabian Homborg2016-04-26
| | | | This should fix the tests.
* Let the binding functions set the binding variableGravatar Fabian Homborg2016-04-26
| | | | | 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.
* add way to comment/uncomment a commandGravatar Kurtis Rader2016-04-19
| | | | Fixes #2375
* provide a better experience when user presses \cCGravatar Kurtis Rader2016-04-14
| | | | Fixes #2904
* Remove the default self-insert binding in vi-default modeGravatar Fabian Homborg2016-04-12
| | | | Fixes #2832.
* more fish_indent cleanup for prev commitGravatar Kurtis Rader2016-03-29
| | | | | Commit dfb23c4fce11d9d0577a2cb3c9e192bc24f64c8c was supposed to incude all the edits to make the code compliant with fish_indent.
* fix regression to vi-mode \cc bindingGravatar Kurtis Rader2016-03-29
| | | | | | | 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.
* implement swap-selection-start-stop functionGravatar Federico Ferri2016-03-20
| | | | | | | | | 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.
* fix w, e (with a trick to cope with big-words)Gravatar Federico Ferri2016-03-20
|
* Merge change for lengthened and configurable escape key timeoutGravatar ridiculousfish2016-02-04
|\
| * change default escape timeoutGravatar Kurtis Rader2016-02-04
| | | | | | | | | | | | | | | | 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.
* | Use \$ and \^ instead of their unicode codesGravatar Maxim Gonchar2015-12-30
| |
* | Update visual vi key bindingsGravatar Maxim Gonchar2015-12-30
|/ | | | | | * Add home/end, $/0 keys * Add (c)hange key * Add j/k keys for up/down
* allow \cJ (\n) to be bound separate from \cM (\r)Gravatar Kurtis Rader2015-12-08
| | | | | | | 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
* vi-mode: Inherit \cf and \cb bindings as wellGravatar Fabian Homborg2015-11-06
| | | | | | | This makes them {forward,backward}-char instead of -word, which means they accept suggestions _fully_. Fixes #2255
* vi-mode: Make \cb do backward-word againGravatar Fabian Homborg2015-10-28
| | | | This is mentioned in the documentation, so keep it for now.
* vi: Bind \cx to end-of-line in insert modeGravatar Fabian Homborg2015-10-28
| | | | This will also accept any autosuggestion completely.
* vi: Make \cf do forward-word again in insert modeGravatar Fabian Homborg2015-10-14
|
* vi: Readd \cx bindingGravatar Fabian Homborg2015-10-14
|
* Make vi bindings inherit the defaultsGravatar Fabian Homborg2015-10-13
| | | | | | | | | | | 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
* Add escape sequences for arrows in some linux VTsGravatar Fabian Homborg2015-09-01
| | | | | | | Why this is only in some, I don't know, but these don't seem to interfere with anything. Fixes #2309
* vi-mode: Make \cc go to normal from insert modeGravatar Fabian Homborg2015-08-04
| | | | | | Keep the behavior for normal mode Fixes #2228
* Implement lowercase-r replace in fish_vi_modeGravatar ridiculousfish2015-07-20
| | | | Fixes #1595
* Merge branch 'Integration_2.2.0'Gravatar David Adam2015-06-05
|\
| * vi bindings: clear commandline with Ctrl-CGravatar David Adam2015-06-05
| | | | | | | | Closes #2077.
* | Add 'bigword' vi key bindingsGravatar Michael Steed2015-06-04
|/ | | | | | | | | | - 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
* Switch back to insert mode after executing a command in vi modeGravatar ridiculousfish2015-04-08
| | | | Fixes #1933
* vi bindings: add CTRL-C handler in default modeGravatar Jared Grubb2014-10-31
| | | | | | 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.
* Also add forward/backward movement in insert modeGravatar Sascha2014-06-27
|
* Provide more useful insert mode mappingsGravatar Sascha2014-06-27
|
* Set fish_vi_key_bindings to start in insert mode by defaultGravatar Maxim Gonchar2014-04-19
| | | | | | Add optional argument for fish_vi_key_bindings to set desired initial mode: > fish_vi_key_bindings default
* Bind 0 to beginning-of-line in vi mode.Gravatar Steven Allen2014-04-06
|
* Move cursor back on insert mode exit.Gravatar Steven Allen2014-04-06
| | | | Make this consistent with vi.
* Add 'and' input function; fixes a bug with t,TGravatar Julian Aron Prenner2014-01-23
| | | | | | '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)
* Experimental support for f,F,t,T vi commands.Gravatar Julian Aron Prenner2014-01-22
| | | | Input functions can now have arguments
* Make Ctrl-x autocomplete suggestions; cosmeticsGravatar Julian Aron Prenner2014-01-20
|
* Fix e and E in visual vi modeGravatar Max Gonzih2014-01-19
|
* Add x binding to delete whole line in visual modeGravatar Max Gonzih2014-01-19
|
* Add x binding to delete selection in visual vi modeGravatar Max Gonzih2014-01-19
|
* Set $fish_bind_mode to default on fish startup; set $fish_key_bindingsGravatar Julian Aron Prenner2014-01-19
| | | | when sourcing fish_vi_mode.fish
* Add kill-selection function and visual binds for 'y' and 'd'Gravatar Julian Aron Prenner2014-01-18
|
* Fix a bug, commandline -s works now as expected. Add "*y binding inGravatar Julian Aron Prenner2014-01-17
| | | | visual mode
* Minor bind fixesGravatar Maxim Gonchar2014-01-17
| | | | | | | 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
* Even dirtier *aw/*iwGravatar Maxim Gonchar2014-01-16
|
* Add dirty bindings for *iw, *awGravatar Maxim Gonchar2014-01-16
| | | | Put E, W bindings in agreement with vim
* Add experimental support for selection and visual modeGravatar Julian Aron Prenner2014-01-15
|
* Update vi bindings:Gravatar Maxim Gonchar2014-01-15
| | | | | | | | | | | 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
* Make Ctrl+C exit insert mode, add some more backspace binds.Gravatar Julian Aron Prenner2014-01-14
|