Warp icon indicating copy to clipboard operation
Warp copied to clipboard

[ESC + .] does not work in Warp

Open huxiang opened this issue 2 years ago • 21 comments

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

huxiang avatar Jul 11 '22 06:07 huxiang

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

rushi avatar Jul 18 '22 08:07 rushi

This is the most missing feature for me

hazemuxbert avatar Jul 20 '22 08:07 hazemuxbert

Quick workaround - You can type $_

mkdir foo
cd $_

rushi avatar Jul 24 '22 04:07 rushi

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

elviskahoro avatar Aug 28 '22 04:08 elviskahoro

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 avatar Sep 29 '22 19:09 jab

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 avatar Sep 29 '22 19:09 jab

Quick workaround - You can type $_

This does not work in fish shell.

jab avatar Sep 29 '22 19:09 jab

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 ---

warpdotdev-devx avatar Sep 30 '22 07:09 warpdotdev-devx

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.

eleeaz95 avatar Sep 30 '22 15:09 eleeaz95

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

warpdotdev-devx avatar Sep 30 '22 21:09 warpdotdev-devx

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

eleeaz95 avatar Sep 30 '22 22:09 eleeaz95

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

jab avatar Oct 01 '22 13:10 jab

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

elviskahoro avatar Oct 03 '22 21:10 elviskahoro

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?

kr3cj avatar Mar 20 '23 20:03 kr3cj

Doesn't work for me either.

lubokkanev avatar Mar 30 '23 11:03 lubokkanev

@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.

xidiot avatar Aug 15 '23 19:08 xidiot

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

dannyneira avatar Nov 21 '23 19:11 dannyneira

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.

sladinji avatar Jan 22 '24 22:01 sladinji

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!

huxiang avatar Jan 23 '24 02:01 huxiang

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.

jab avatar Jan 23 '24 22:01 jab