3 ms·
As someone who uses Vim daily, I quite like this idea. I would customise it to mimic the original Vim bindings a bit more closely where possible though, to e.g.
by Ianvdl 6y ago
As someone who uses Vim daily, I quite like this idea. I would customise it to mimic the original Vim bindings a bit more closely where possible though, to e.g. keep Ctrl-D as page down.
I'm not sure if this would be possible, but it would be fun to have customisable per-application bindings (based on the active window, probably) in addition to the set of global bindings. I can also think of minor cases where motions would be useful, like 3x alt-tab (i.e. 3gt) to switch to a specific application.
I wonder at what point the depth of the mode-ness will become too much, if you were running this, for example, with a vi-mode bash readline.
- ceda_ei 6y ago> e.g. keep Ctrl-D as page down. I tried doing the same using xdotool by binding Ctrl+F<something> to PageDown but for some reason it didn't work for some reason and I didn't investigate enough.
- addcninblue 6y agoI believe a possible reason is that the OP used xkb, which if I'm not mistaken is lower level than xdotool (so xdotool would not suffice)
- ceda_ei 6y agoI am the OP. What I tried was something along these lines. e.g. to get w in normal mode to send Ctrl+right, I did the following. 1. Bind w to F14 in normal mode. 2. In i3 config, add `bindsym 0xffcb exec xdotool key ctrl+Right` If I simply ran the command (`xdotool key ctrl+Right`) in normal mode, it would work but it didn't work via a binding. This was infact the initial idea behind all this but after quite some testing xdotool turned out to be unreliable so I repurposed it as a shortcut layer.