amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Q CLI no longer supports ctrl+f to move forward a character (standard readline functionality)

Open natsirtguy opened this issue 1 year ago • 5 comments

Checks

Operating system

macOS 15.5.0 (24F74)

Expected behaviour

Pressing ctrl+f within q chat moves forward one character.

Actual behaviour

Pressing ctrl-f within q chat does nothing.

Steps to reproduce

Open a chat with q chat, type some characters, go to the beginning of the line with ctrl+a, press ctrl-f.

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.12.2"
hash = "b9100eb751546269f095585705a0e7fc3ea55419"
date = "2025-06-30T22:40:01.105251Z (2d ago)"

[system-info]
os = "macOS 15.5.0 (24F74)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.nvm/versions/node/v22.14.0/bin:/Users/USER/.asdf/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/Users/USER/.cargo/bin"
QTERM_SESSION_ID = "934d1ae167674bb080ccf2872b08ff03"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.2"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"

natsirtguy avatar Jul 02 '25 17:07 natsirtguy

@brandonskiser I've previously implemented https://github.com/aws/amazon-q-developer-cli-autocomplete/pull/288 to accept hint via Ctrl+f, but I think it will compete with Shortcut in this issue. What do you think?

konippi avatar Jul 03 '25 15:07 konippi

I'm experiencing the same issue. I'd like to ask if it's possible to create a function that changes keyboard bindings, similar to Amazon Q CLI as shown in the attached screenshot.

Image

tadashi2020 avatar Jul 04 '25 14:07 tadashi2020

+1 This is a huge papercut for terminal users that expect readline behavior as second nature. Is there a workaround or way to opt out of the feature?

tobinquadros avatar Jul 16 '25 22:07 tobinquadros

@brandonskiser I've previously implemented aws/amazon-q-developer-cli-autocomplete#288 to accept hint via Ctrl+f, but I think it will compete with Shortcut in this issue. What do you think?

I took a look at the discussion on that PR. I don't use fish, but it sounds like the behavior is to only accept the first autocomplete suggestion with ctrl-f when an autocomplete suggestion is being proposed, not when you have moved to an earlier point on the line and want to move forward a character. I think autocomplete acceptance and forward character movement can coexist here, just like in fish.

natsirtguy avatar Jul 16 '25 22:07 natsirtguy

https://github.com/aws/amazon-q-developer-cli/pull/2825 is merged now

erbenmo avatar Sep 18 '25 17:09 erbenmo