Open fredcallaway opened 4 years ago
it does sound like a valid feature request. Basically, we need to add a new query key at https://github.com/randy3k/Terminus/blob/0800dbff96b299f461e19c0de052817d6936f9e4/terminus/query.py#L14-L14 that allows us to do
{ "keys": ["A"], "command": "terminus_keypress", "args": {"key": "A"},
"context": [
{"key": "terminus_view"},
{"key": "terminus_view.suspend_keypress", "operator": "not_equal", "operand": true}
] },
OK and how would you toggle that context key?
I thought it might be easier to just have a global flag in a settings file that can be toggled on and off with a command. This has the advantage of not requiring us to edit all the keypress keybindings.
Is this something that is still being considered as a feature? Would be highly interested in this functionality (for the same reason that @fredcallaway mentioned).
Bumping this. Note that it's not just key capture but also the automatic cursor re-positioning. I think the best approach is to have a flag that basically freezes the entire plugin, leaving whatever text that is currently on the screen (ideally, one could scroll up, but I think it would still be very useful without that ability). @randy3k can you provide any guidance on where one would implement something like that?
Is it possible to temporarily disable the key capture, such that the terminus view is treated as an ordinary (non-writable) file? The idea is to achieve something like tmux or iTerm's copy mode, to select text using the standard sublime keybindings.