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

Selection mode should not activate when selection is single token #1

Open
Willyham opened this issue Nov 10, 2015 · 1 comment
Open

Comments

@Willyham
Copy link

I often double-click to select a given token, then copy, hit ctrl+f and paste that token into the search bar. I would argue that this is a common case and it is unlikely that anybody would want to search 'in selection' within a single token.

My recommendation would be to parse tokenize the selection (on spaces and or common delimiters) and if there is only one result, do not activate the mode.

Thoughts?

@l-cornelius-dol
Copy link

Agreed. TextPad handles automatic search in selection based on whether at least one line break is selected. Multi-line search in selection; within a single line search file. I found this to work really well. But single-token or not would hit 90% of my use cases too (I sometime do select a short phrase to search for it in the rest of the file; if I had to cancel the selection first I could live with that).

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

2 participants