mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-01 07:38:46 +00:00
23a21eb318
Many people have mentioned wanting support for changing / yanking / deleting between "" and '', meaning the commands `ci' ci" yi' yi" di' di"`, so this adds that support in a generic, and thus potentially confusing way. The concept is that we check for the character backwards and forwards before making the selection. Unfortunately, this will also work for *any* character that isn't `w` or `W`, so `cia` could change everything between two `a` characters. Looking through the [bind documentation](https://fishshell.com/docs/current/cmds/bind.html) and input handler at `src/input.cpp`, this is the best possible solution I could come up with until `forward-jump` and `backward-jump` can accept input in the call to `bind`, and not just from stdin, meaning we can write a binding as: ``` bind di\" backward-jump-till \" and repeat-jump-reverse ...` ``` If that were done, then other commands such as `di)` to go between `()` would be possible. There are also some added `y` bindings not part of #6648. Let me know if you need anything else. |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |