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

Search improvements #132

Open
Delicious-Bacon opened this issue Oct 4, 2023 · 1 comment
Open

Search improvements #132

Delicious-Bacon opened this issue Oct 4, 2023 · 1 comment

Comments

@Delicious-Bacon
Copy link

Delicious-Bacon commented Oct 4, 2023

Search history

At the moment, typing anything into a search and pressing enter will locate the results, but if we want to modify the search term we have to open a new search and retype everything. It can get annoying when we use complex regex patterns and miss a character or forget to escape something.

Can we implement the search history that both vi and vim usually have?

For example, I forget to escape [] in /"name": "[bch]at" and then instead of retyping the whole pattern, I could just reopen the search with / and press ARROW UP key to use the previous search.

vi also lets me use the q/ command to select among the previous search terms.

Field search editable

Pressing either * or # enters the object field search, which is handy, but it's always just the field name and we can't edit the search terms we seek in that field.

If it were possible, it would speed up the search of "[bch]at" in the "name" field from the previous example by entering the field, pressing * and just adding the regex pattern before confirming the search.

Cancel search

We cannot cancel the search - once we enter the search with, for example, /, we need to search for something because that / is not erasable. An ESC key could be handy to cancel the search.

@nkh
Copy link

nkh commented Oct 25, 2023

Same problem with search history for me.

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