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

[Bug]: Ctrl+a not moving cursor to beinning of line #2548

Open
1 task done
opransjo opened this issue Jan 16, 2025 · 1 comment
Open
1 task done

[Bug]: Ctrl+a not moving cursor to beinning of line #2548

opransjo opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@opransjo
Copy link

What did you expect to happen?

Ctrl+a should move cursor to beginning of line, according to https://docs.atuin.sh/configuration/key-binding/#atuin-ui-shortcuts.

What happened?

The prefix key Ctrl+a conflicts with this, but even changing the prefix key, e.g.

[keys]
prefix = 'q'

does not solve the issue.

The commit "feat: add atuin prefix binding" (#1875), at b04fc47, removed KeyCode::Char('a') if ctrl => self.search.input.start() from the keybinding handling, which is still not present at https://github.com/atuinsh/atuin/blob/main/crates/atuin/src/command/client/search/interactive.rs#L417 .

Atuin doctor output

{
  "atuin": {
    "version": "18.4.0",
    "sync": null,
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "zsh",
    "default": "zsh",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    "os": "Arch Linux",
    "arch": "x86_64",
    "version": "rolling",
    "disks": [
      {
        "name": "/dev/nvme1n1p3",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme1n1p1",
        "filesystem": "vfat"
      },
      {
        "name": "/dev/mapper/home",
        "filesystem": "ext4"
      }
    ]
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@opransjo opransjo added the bug Something isn't working label Jan 16, 2025
@akinomyoga
Copy link
Contributor

The prefix key Ctrl+a conflicts with this,

You are supposed to press C-a a.

but even changing the prefix key, e.g. [...] does not solve the issue.

I agree that this is an issue.

The commit "feat: add atuin prefix binding" (#1875), at b04fc47, removed KeyCode::Char('a') if ctrl => self.search.input.start()

I think that line can be safely reverted. You should open a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants