warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.97k stars 359 forks source link

[ESC + .] does not work in Warp #1597

Open huxiang opened 2 years ago

huxiang commented 2 years ago

Discord username (optional)

No response

Describe the bug

[ECS + .] in other terminal programs is "last word of last command": https://tutonics.com/2012/05/handy-bash-shortcuts.html

it does not work in Wrap

To Reproduce

Steps to reproduce:

  1. Open Warp
  2. Run command ls /tmp
  3. Type find and then press [ECS+.]

Expected behaviour

It becomes find /tmp

Screenshots

No response

Operating System

MacOS

OS Version

12.4

Shell Version

5.8.1

Warp Version

v0.2022.07.04.09.08.stable_01

Additional context

BTW, I cannot copy Warp version info from UI...

Does this block you from using Warp daily?

Yes

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

rushi commented 2 years ago

I came here to report this as well. This feature is basically <meta> + .. When you select "Left Option Key is Meta" or "Right Optoin Key is Meta" in Warp, doing ⌥. should return the last argument of the previous command, but instead it outputs

Note: This works on Terminal & iTerm too

hazemuxbert commented 2 years ago

This is the most missing feature for me

rushi commented 2 years ago

Quick workaround - You can type $_

mkdir foo
cd $_
elviskahoro commented 2 years ago

Will cirlce back with yall once there are updates. But I don't see any coming anytime soon. :(

jab commented 1 year ago

Just heard about Warp and was excited to try it right away, then hit this within my first minute of trying it. Would it be worth adding a warning to the relevant part of the settings UI, which currently makes it seem like option-as-meta is going to Just Work?

Screen Shot 2022-09-29 at 3 51 52 PM

jab commented 1 year ago

Also could a Warp team member please update this ticket's title to fix the typos, namely "ESC" rather than "ECS" and "Warp" rather than "Wrap"?

jab commented 1 year ago

Quick workaround - You can type $_

This does not work in fish shell.

warpdotdev-devx commented 1 year ago

This should have been fixed today!

--- original message --- On September 29, 2022 at 3:55 PM EDT @.*** wrote:

Quick workaround - You can type $_

This does not work in fish shell.

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- You received this message because you are subscribed to the Google Groups "github" group. To unsubscribe from this group and stop receiving emails from it, send an email to @.*** --- end of original message ---

eleeaz95 commented 1 year ago

ESC key has other uses apart from ESC+. Why set up a new "meta" key for that? I think it would be better to use ESC in the same way as other shells.

warpdotdev-devx commented 1 year ago

Can you elaborate some on what the ideal product experience would be for you!

eleeaz95 commented 1 year ago

Well, I frequently use the [ESC+.] on other terminals to bring the last word of the last command (usually directories). For me will be a good experience to have that, or to have the option to set ESC as a meta key. ESC has other uses aswell, you can see some examples here: https://tutonics.com/2012/05/handy-bash-shortcuts.html

jab commented 1 year ago

This should have been fixed today!

Nice, thanks for the quick fix! Any idea how soon before we can update to a release with the fix? Checked https://github.com/warpdotdev/Warp/releases and the latest release is from April.

@elviskahoro, thanks for fixing one of the typos in the issue title. The other typo still needs to be fixed: Wrap -> Warp

elviskahoro commented 1 year ago

@jab Warp should auto-update. We don't actively maintain the GitHub releases section. You can also install Warp with brew

kr3cj commented 1 year ago

I'm running version v0.2023.03.07.08.02.stable_03 of warp which is latest stable at the time of writing. I have unchecked both Left Option key is Meta and Right Option key is Meta as mentioned above. My shell is zsh. However, when trying to use Esc + ., it still won't work for me in warp. It just inserts the period as if I wasn't pushing Esc. It works okay in terminal and iTerm2. Same result if I check both the Meta options. Any tips?

lubokkanev commented 1 year ago

Doesn't work for me either.

xidiot commented 1 year ago

@elviskahoro , this is still a BUG. Should we ope a new issue or? Matter of fact I'm trying to set this shortcut to whatever - it doesn't matter - it simply does not work.

dannyneira commented 10 months ago

Hey Folks, we've implemented this functionality as META-., will keep this open for ESC-. support, but the current implementation should help with the use case. Please enable the Left/Right Option as Meta in Settings > Features > Keys. Please test this feature and let us know if any issues.

https://github.com/warpdotdev/Warp/assets/16809145/b698ee99-307b-4ad9-888a-234aa0bb4fc7

sladinji commented 8 months ago

Hey Folks, we've implemented this functionality as META-., will keep this open for ESC-. support, but the current implementation should help with the use case. Please enable the Left/Right Option as Meta in Settings > Features > Keys. Please test this feature and let us know if any issues. CleanShot.2023-11-21.at.14.03.43.mp4

It does not work with my keyboard layout (FR). I tested with English layout and it works fine but unfortunately no way to make it work with my layout.

huxiang commented 8 months ago

Hey Folks, we've implemented this functionality as META-., will keep this open for ESC-. support, but the current implementation should help with the use case. Please enable the Left/Right Option as Meta in Settings > Features > Keys. Please test this feature and let us know if any issues.

CleanShot.2023-11-21.at.14.03.43.mp4

META-. works for me, thanks for implementing it!

jab commented 8 months ago

Although META-. now works in the shell, it is still not working in other readline-enabled programs like the python or ipython REPLs, where it still results in being echoed rather than inserting the last word of the previous line.

Zer0x00 commented 2 months ago

Hey Folks, we've implemented this functionality as META-., will keep this open for ESC-. support, but the current implementation should help with the use case. Please enable the Left/Right Option as Meta in Settings > Features > Keys. Please test this feature and let us know if any issues. CleanShot.2023-11-21.at.14.03.43.mp4

It does not work with my keyboard layout (FR). I tested with English layout and it works fine but unfortunately no way to make it work with my layout.

Same here with a German keyboard layout. Works in SSH but not in nano.