Use shortcodes to return a choice value in arg
immidiately
#557
Replies: 2 comments 2 replies
-
I love the way you think! 😁 I'm not quite open to PRs yet, although I'd be happy to help you set up a dev environment this week. I'll put some instructions together tomorrow. I like the convention you suggested: name: [B]anana Where "b" would automatically select the choice. I'll figure out how to get that into the app. You can get the general idea of input handling here: https://github.com/johnlindquist/kitapp/blob/alpha/src/components/input.tsx
|
Beta Was this translation helpful? Give feedback.
-
@davelosert Added #562 to the latest build. Enjoy! |
Beta Was this translation helpful? Give feedback.
-
Hi there 👋🏻 ,
first of all: I really love this tool as it makes automating workflows sooo easy, it's incredible. So: Great work! ❤️
One little idea I had that would be great in my workflows: Having the abilty to make
arg
return the value of a choice with a single hotkey or shortcode immidiately. Kind of like the emacs or neovimswhich-key
plugin.Forgive me if this was already proposed or already works somehow, I looked through all ideas and docs and couldn't quite find it (the closest to it maybe being #133).
I found out that this kind of works already (even though it is not documented for
arg
yet) like the following:With this, I can now quick select either option with
y<space>
orn<space>
.However, I'd love to not have to hit
<space>
but just return the value fromarg
immidiately after hitting eithery
orn
.Of course, this would mean the options are not filterable anymore, so this kind of
arg
would have to be configurable. Maybe something like:What do you think?
If you are open for PRs, I'd be happy to send one.
Beta Was this translation helpful? Give feedback.
All reactions