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.
#Use of the +Esc key
3 messages · Page 1 of 1 (latest)
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.