#Use of the +Esc key

3 messages · Page 1 of 1 (latest)

regal helm
#

On iTerm I often used Esc+. (or Option+. with Option configured as +Esc in the keys settings) to get the last parameter of the previous command, which is a very very useful shortcut (think mkdir somedir followed by cd somedir).
Is there a way to achieve that in Warp? I have tried enabling the "use as Meta" settings in the preferences but that doesn't help.

compact gardenBOT
#

Hi @regal helm. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information from the provided extracts, it appears that the ESC+. or Option+. keybinding to retrieve the last parameter of the previous command is a known issue in Warp. This feature, which is common in other terminals, is currently not fully supported in Warp.

In the Github Issue 1597 (https://github.com/warpdotdev/Warp/issues/1597), Warp's team mentioned that they have implemented this functionality as META-. and suggested enabling the Left/Right Option as Meta in Settings > Features > Keys. However, some users reported that this workaround doesn't work for all keyboard layouts or in all contexts.

In Github Issue 537 (https://github.com/warpdotdev/Warp/issues/537), a member asked if there are plans to do left option as ESC+ instead of Meta, indicating that this feature might not be fully implemented yet.

As a temporary workaround, one user suggested using $_ to retrieve the last argument of the previous command, but this doesn't work in the fish shell.

It's recommended to keep an eye on the open Github issues for updates on this feature. If you're experiencing this issue, you might want to contribute to the discussion there or open a new issue if your specific problem hasn't been addressed.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: