warpdotdev / Warp

Warp is the agentic development environment, built for coding with multiple AI agents.
https://warp.dev
Other
24.02k stars 488 forks source link

Add Keyboard Shortcut for Navigating Within Multiline Input #6593

Open neilcitruslime opened 4 weeks ago

neilcitruslime commented 4 weeks ago

Pre-submit Checks

Describe the solution you'd like?

đź“‹ Description

When writing multi-line commands in Warp (such as long curl requests), it’s currently impossible to move the cursor up or down through the lines using the keyboard. Pressing the Up/Down arrow keys always triggers history/block navigation, even when I’m mid-edit in a multi-line input.

This makes editing long or complex commands frustrating without using the mouse.

đź§  Proposal

Please consider adding a dedicated keyboard shortcut (e.g. Option+↑/↓, Ctrl+↑/↓, etc.) to allow vertical cursor navigation within multiline input.

I’m not asking to change the default Up/Down behavior if that’s core to Warp’s design — but having some way to move within the current block using the keyboard would make Warp much more usable for scripting and terminal editing workflows.

đź’ˇExample Use Case

When writing a long curl command:

curl -i \
  -H "Host: example.customer.com" \
  -H "X-Forwarded-Host: example.customer.com" \
  --resolve edge.proxy.internal:443:192.0.2.42 \
  https://edge.proxy.internal/api/test-endpoint

It’s common to: • Move between header lines to tweak values • Add/remove a line mid-input

But in Warp, the only way to do this is with the mouse, which breaks flow and ergonomics.

âś… Suggested Solution

•   Add a new shortcut (e.g. Ctrl+↑/↓ or Option+↑/↓) to navigate up/down within multiline input
•   Keep existing ↑/↓ behavior for history navigation
•   Optionally make this configurable in settings

🎯 Benefit

This strikes a good balance between Warp’s block/history-based model and classic shell editing expectations — without disrupting your existing interaction paradigm.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

Operating system (OS)

macOS

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

dannyneira commented 3 weeks ago

Thanks for this feature request! I suggest you try using the Vim keybindings as this may provide a better command editing experience compared to the default input editor shortcuts (or use the mouse to move the cursor). https://docs.warp.dev/terminal/editor/vim

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

neilcitruslime commented 3 weeks ago

Thanks for this feature request! I suggest you try using the Vim keybindings as this may provide a better command editing experience compared to the default input editor shortcuts (or use the mouse to move the cursor). https://docs.warp.dev/terminal/editor/vim

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

Thank you for the VIM idea, I suspect thats too much of a change to my workflow, but I'll give it a whirl. I absolutely love Warp, I've introduced another couple of developer friends to it this week, this is literally my only frustration with the product I do a lot with multiline Azure portal commands and needing to use the mouse is a frustrating break to my flow.