tednaleid / sublime-EasyMotion

Sublime Text 2 plugin to quickly jump to any character in the visible area of the active view.
Apache License 2.0
386 stars 24 forks source link

Cycle to previous batch with Shift+Enter #18

Closed joelpt closed 11 years ago

joelpt commented 11 years ago

Enter can currently be used to cycle forwards through the batches when there are multiple batches on screen. It would be helpful if Shift+Enter could be used to cycle backwards in the same manner.

tednaleid commented 11 years ago

Unfortunately, the current way of getting input from the user (show_input_panel) is really limited in what keystroke/input information I get from the user. I only get what is typed in the box, if it's zero length (and the cancel method isn't called), I "know" it was the enter key. This means that I don't know if shift was also held down when enter was hit.

I've been thinking about refactoring things to use a context rather than the input panel at the top as it'd also solve #13. It would allow me to gather more complicated input like shift+enter. Not sure how much time it'll take but I'll do a spike to see if it's a viable replacement for what I've got now.