jarhart / SublimeSBT

SBT build tool integration for Sublime Text 2 and Sublime Text 3.
MIT License
98 stars 10 forks source link

Command history #26

Closed luc-j-bourhis closed 10 years ago

luc-j-bourhis commented 11 years ago

It would be nice if (a) SublimeSBT remembered previously entered commands and (b) let the user navigate that history using up and down arrows.

inkytonik commented 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.

luc-j-bourhis commented 10 years ago

This sounds really great. Looking forward to it!

inkytonik commented 10 years ago

Just submitted https://github.com/jarhart/SublimeSBT/pull/30

inkytonik commented 10 years ago

Latest version contains history support.