Is there a way to dynamically bind keys?
Or basically set up a time frame in which bindings are active?
Is there a way to dynamically bind keys?
Or basically set up a time frame in which bindings are active?
I have been working on a plugin for personal use that can do common keybinding things like keybinding profiles, or keybinding only for a platform, or keybinding only for a hostname, and I added timeframe:
github.com/facelessuser/sublime … ut_plus.py
The thread is here: viewtopic.php?f=5&t=9931&start=0&hilit=shortcutplus
[pre=#2D2D2D] {
“keys”: “ctrl+shift+alt+p”],
“command”: “get_selection_scope”,
“context”: {“key”: “shortcut_plus(timeframe):7:00 - 8:00”}]
},[/pre]
You can play with it. It might have bugs in the timeframe stuff because I literally threw it together, but in general, that is the concept and everything else is very stable.
You can add any keybinding related ideas to the multibind plugin topic (here) and I’ll look into including it in the next update. Can never get enough ideas.
BeA
@KonTrax Feel free to steal any ideas you see in mine. I do plan to switch over to yours eventually.