Closed luc-j-bourhis closed 10 years ago
I have a history addition to SublimeSBT that I will contribute in the near future once it's had a bit more use here.
My extension works by recording the commands that are submitted and making them accessible via a quick panel similar to how you can invoke Sublime commands. Using the panel you can easily search the history and select a command for re-submission. An optional argument turns on a variant mode where the selected command is made available for editing before resubmission, so you can adapt a history entry to make a new command.
Note that my extension does not use command-line editing a'la the normal SBT REPL which is very hard to do since SublimeSBT would need to do proper terminal emulation. Instead, my approach is very natural in Sublime and easier to use since the searching is built in.
This sounds really great. Looking forward to it!
Just submitted https://github.com/jarhart/SublimeSBT/pull/30
Latest version contains history support.
It would be nice if (a) SublimeSBT remembered previously entered commands and (b) let the user navigate that history using up and down arrows.