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

Make shift+backspace erase entire search input #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rouilj
Copy link
Contributor

@rouilj rouilj commented Feb 10, 2023

Rather than backspacing a bunch of times. Also it works from any position in the input.

This patch is arguable since the search terms should be short and hitting 4 or 5 backspaces isn't horrible. Also on some systems (windows) ctrl+backspace erases the previous word.

This needs documentation, but I am not sure where it should go in the README. Documenting the use of the return key to:

accept the currently highlighted entry or
close command-pal if there is no match

The use of up/down arrows to navigate through the list.

Also if the "close command-pal on (multiple) backspaces" patch is added, documenting that would be good as well.

NOTE: if this code is merged after the multiple backspaces code, the then clause for this code should reset the backup counter and clear the feedback box like the other cases. Also it needs to go before the backspace exit code in the if/then chain otherwise it will never be reached if exit with backspace is enabled.

Rather than backspacing a bunch of times. Also it works from any
position in the input.

This patch is arguable since the search terms should be short and
hitting 4 or 5 backspaces isn't horrible. Also on some systems
(windows) ctrl+backspace erases the previous word.

This needs documentation, but I am not sure where it should go in the
README. Documenting the use of the return key to:

  accept the currently highlighted entry or
  close command-pal if there is no match

The use of up/down arrows to navigate through the list.

Also if the "close command-pal on (multiple) backspaces" patch is added,
documenting that would be good as well.

NOTE: if this code is merged after the multiple backspaces code, the
then clause for this code should reset the backup counter and clear
the feedback box like the other cases. Also it needs to go before the
backspace exit code in the if/then chain otherwise it will never be
reached if exit with backspace is enabled.
@rouilj
Copy link
Contributor Author

rouilj commented Jun 5, 2023

Hi Ben:

Sorry I've been MIA. Have you given any more though to incorporating this?
I am running my hacked version and would like to get these changes upstream.

-- rouilj

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

Successfully merging this pull request may close these issues.

2 participants