custom_config.h to cycle through the last argument of previous shell commands using ESC
DOT
(ZMK)
#381
Replies: 2 comments 2 replies
-
I've marked this post as Show and tell, because it contains a custom config with a temporary solution. I will update the post with a final solution if that turns out to be possible. I didn't see how to label the post "Miryoku ZMK", hence the postfix in the title. |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing your Fun has basic versions of the other left thumbs so they can be held, but has To add extra mods (including Esc as a mod) I'd suggest replacing Alternatively, to preserve the same fingers, an Or disable layer tap on Or enable I apply the labels manually, done now. |
Beta Was this translation helpful? Give feedback.
-
In a shell (command line, Terminal, bash, zsh etc.) I often want to quickly summon the last argument of a previously entered shell command(s), by pressing
ESC
DOT
, for example:Currently, without customizations Miryoku does not support this, because holding my (emulated third thumb)
ESC
will activate the media layer. Consequently, pressing the key that hasDOT
in the base layer activates bluetooth#3.By learning the Miryoku layout, I've memorized tapping
ESC
with my thumb, so ideally I'd be able to hold it down (activating the media layer) and press the physical key that acts as theDOT
in the base layer. That should trigger the combinationESC
+DOT
.For starters, by following the Substitute Layer instructions in the Miryoku Customisation Documentation #85 , I have moved the bluetooth keys to the top row (since I don't have RGB on my keyboard that needs controlling) and out of the way – at least I won't trigger those accidentally anymore.
For the time being, I have overridden the base layer with a new combo using the top-left key on my keyboard
U_MT(ESC, Q)
. My muscle memory still remembers that an Escape key can be found in the top-left.custom_config.h
Note
I'm aware that I can typ
!$
to summon the last argument of just the previous command:❯ cp !$
However, I prefer to use the
ESC
DOT
combo for several reasons: per motto "Make full use of the thumbs", my mind expects to use theESC
there, and because it saves me an uncomfortable additional keystroke with the left ring finger (holding symbol layer, followed by pressing the!
and$
consecutively)Beta Was this translation helpful? Give feedback.
All reactions