tbabej / vit

Placeholder to demostrate issue porting for VIT.
0 stars 0 forks source link

[VT-43] Vit: custom shortcuts #43

Closed tbabej closed 6 years ago

tbabej commented 6 years ago

Scott Kostyshak on 2013-07-08T03:56:15Z says:

With all of the extensions out there and with many combinations of Taskwarrior commands, Vit needs a way to let the user have some custom mappings.

I think that one key should designate that the next key pressed will be a shortcut. One possibility is the backslash, which Vim suggests for custom shortcuts ("" by default is "\").

There is currently no place for Vit to specify options. Do we need a .vitrc?

We also need a macro to stand in for the task id.

For example, in .vitrc, the user could put:

vitmap "a" "taskextension % do something cool"

In Vit, when the user types a backslash and then 'a', the following command will be run (% is replaced by the task ID that is selected in Vit):

taskextension ID do something cool
tbabej commented 6 years ago

Migrated metadata:

Created: 2013-07-08T03:56:15Z
Modified: 2014-02-09T01:16:51Z
tbabej commented 6 years ago

David Patrick on 2013-07-09T02:31:52Z says:

While I certainly agree that Vit could use customizable key-mappings, the short-cut-key suggested above feels a bit like a half-measure with an extra mode and a new set of sub-commands to remember. I would lean more towards just straight user-modifiable key-bindings. Maybe we could take a page (and some code) from tasknc (the other ncurses-based interactive taskwarrior shell) as customizability is one of tasknc's main features.

https://github.com/mjheagle8/tasknc/tree/refactor

tbabej commented 6 years ago

David Patrick on 2013-07-09T02:38:12Z says:

and do we totally need a .vitrc? OR can we extend yet again the already epic .taskrc?

thanks Scott! ;-)