nocejo / trev

Taskwarrior tasks reviewing script
Other
14 stars 1 forks source link

trev commands #25

Open linuxcaffe opened 10 years ago

linuxcaffe commented 10 years ago

Thinking about how to add new functions and behaviors, I realize that every new thing makes it harder and harder to parse the command-line, mixing trev commands and taskwarrior commands could be quite complicated. So I looked to the perl shell for ideas, and I see that the few perl shell commands are preceded with a ":". (http://search.cpan.org/dist/Shell-Perl/lib/Shell/Perl.pm#COMMANDS) Using this model, it should be easy to parse, and easier to add new commands, without confusing them with tw commands.

Some of the current "prompt options" are already elegant and easy-to parse (+, -, q, quit, exit, bye) when issued alone at the prompt, so they should continue to be available without ":", but as they ARE trev commands, they should also be valid with a leading ":".

The "back" command would then be

trev> :b

New trev commands should be preceded with ":". New commands like

trev> :h 

to display a concise reference of available commands and keystroke help

Other ideas for new trev commands should be filed as separate issues, referencing this one.

linuxcaffe commented 9 years ago

and how about

trev> :! arbitrary shell command

just like issuing an arbitrary command in vit.

nocejo commented 9 years ago

See closed issue #7 about a search command (forward and backward, suggests linuxcaffe).

nocejo commented 9 years ago

See closed issue #10 for Moving to task n as a command.