allow user to move without hitting enter in popup box #5

Closed
tednaleid opened this Issue Dec 30, 2012 · 5 comments

Projects

None yet

3 participants

@tednaleid
Owner

Not sure if there's any way to do this, but it would be nice if we could move without having to hit enter in the popup box once the user has picked a target.

There is an on_change event that we could listen to and we can attach a callback to. But I'm not sure if we can remove the box as part of that.

@tednaleid
Owner

Another alternative would be to use the autocomplete box style popup rather than the box on the bottom, that might work better (but could also be more likely to occlude the text the user wants to jump to).

@highend
highend commented Jan 3, 2013

I'd really love if this could be used without the popup box (and hitting enter afterwards). It would be a lot more like the "original" easymotion plugin for vim.

@tednaleid
Owner

Completely agree, I just haven't figured out how to do this in ST2 yet. The input methods are much more constrained than they are with vimscript and the only way I can see it working is with a full new "mode" which looks like a lot of work and could be kind of kludgy. I might still go this route if nothing else comes to mind though.

@mode80
mode80 commented Jan 18, 2013

+1

@tednaleid
Owner

Put a question on the forum to see if there's any way to close the input panel after a single character.

Some experimentation that I did wasn't successful without a way to close the input panel. Best case, there'd either be a hide_input_panel method, or else some way of emulating the user typing the enter key in the on_change callback, but I'm not sure how to do that yet.

@tednaleid tednaleid closed this in 3b8c1be Jan 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment