Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow "exit search and move to current match" when no more matches are found #2

Open
jonvuri opened this issue Mar 6, 2017 · 0 comments

Comments

@jonvuri
Copy link
Owner

jonvuri commented Mar 6, 2017

Copying from t9md#12 made by @slippycheeze. I'll try to address this shortly with a new option.

I know it seems odd, but sometimes the behaviour I desire from search is:

  • invoke search
  • type "foo", bringing me to a match
  • type "z", no match
  • hit enter, desiring to terminate search at "foo" as last matched
    That's usually triggered when I'm searching for something like "adding hosts", and it turns out the correct text was "added hosts", but I get the extra text typed out before my brain catches up with the fact that I'm looking at the correct line.

This is identical to the behaviour of Emacs in this situation, and fits nicely with backspace to remove characters and correct the match...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant