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

Feature Request: Fully clear input on Control-C #2333

Open
ethus3h opened this issue Jul 31, 2024 · 0 comments
Open

Feature Request: Fully clear input on Control-C #2333

ethus3h opened this issue Jul 31, 2024 · 0 comments

Comments

@ethus3h
Copy link

ethus3h commented Jul 31, 2024

A frequent issue I run into is that after typing something and hitting Control-R to search for completions, Control-C doesn't give me a new prompt, but just closes Atuin. This consistently trips me up because it's not consistent with Bash without Atuin, so my muscle memory never gets it right when I'm working on a system with Atuin installed. Could there be an option (or change) to automatically clear it, the same as Bash does by default?

Thanks for considering!

Possibly related to #193.

Steps to reproduce:

  • Type smoe command name
  • Hit control-R to search for it in Atuin
  • Realize I typoed it, hit control-C to clear the prompt
  • Type some command name, getting it right this time, press control-R again
  • Atuin searches for smoe command namesome command name because it never cleared what I typed the first time
  • Press control-C twice, then type my search and press control-R a third time to successfully search for it

Atuin doctor output:

{
  "atuin": {
    "version": "18.3.0",
    "sync": null,
    "sqlite_version": "3.44.0"
  },
  "shell": {
    "name": "bash",
    "default": "bash",
    "plugins": [
      "atuin",
      "bash-preexec"
    ],
    "preexec": "bash-preexec"
  },
  "system": {
    "os": "Debian GNU/Linux",
    "redacted": ""
  }
}
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