-
Notifications
You must be signed in to change notification settings - Fork 13
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
Decisions on functionality of this package #50
Comments
@afinne I've made you a collaborator. I trust your good judgement whichever way you want to go with it. |
As to the question of the issue having Enter close the search while you are searching always seemed backwards to me. We already have Escape to close the search and in the core find-and-replace module Enter advances to the next match. I think our package should do the same. I have no strong feelings for the search history other, but I do have a preference for incremental search acting like core find-and-replace whenever possible. I also think the slurp command key could use some re-imagining. If Cmd-I opens incremental search and advances to the next match, Cmd+Shift+I searches backwards I think slurp should be another modifier added to Cmd-I, like Ctrl-Cmd-I or Opt-Cmd-I. I'm not sure what the equivalent for windows users is though. |
I went back and looked at the initial discussion of incremental search feature that prompted the creation of this package. It can be seen at https://discuss.atom.io/t/incremental-search/1831/13 . It feels like the original intention was to make it behave somewhat like the same feature in Emacs. Looking at the code, it is implemented in that direction too. I think that our best option is to get everything working in accordance to the original intent, and afterwards (with input from users of the package), decide on which direction to take the functionality in the future. I have a small update in the works that tries to sort out the small issues that remain. |
@afinne ... you're a collaborator: I wonder if you could pull your own PR and also the one that fixes the boxes piling up at the bottom? |
@GreenAsJade sorry about not noticing these. I had watched the repository but had not set it to generate notification emails on new issues/ PRs. I added a question to your issue because I want to test #59 locally to make sure it fixes your issue before I merge it. |
Thanks for the reply! I realised that the change I need (fixing the boxes piling up) is trivial to hack into the code in the installed package, so in the mean time that's what I've done :) |
As I've looked through the source and documentation and discussions that have been made for this package, I have found that there are two different ways of using incremental search that are "competing" both in the source and in the documentation. I have tried to define the differences here:
2) Should 'Enter' close the search and leave the cursor in the current position, or search for the next instance of the search term?
3) Should Cmd-I browse through search history, or find the next instance of the current search term?
As I noted these down, I realised that it is the history feature that messes things up. Do we want a search history? Me, personally, use incremental search as a throw-away quick search, so I don't feel the need for a search history.
The text was updated successfully, but these errors were encountered: