Populate text in terminal for a tldr'ed command #10100
sufyandaredevil
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know whether this correlates with the idea behind tldr, but I was wondering if there could be a feature where I search for a command usage normally I used to in tldr (For example: I type the command
tldr nmap
, assuming each example for that command has a number) and the cursor keeps waiting for an input, and this input should be asking for a number i.e. if I wanna type any of the example command shown instead of typing it out I can use the number and hit Enter so that the specific command(nmap
) example for the given number automatically gets populated with the text in the typing area and only type out the{{variable}}
part and cycle through them with the Tab key if multiple{{variables}}
are present.Below is a mockup I created for the above example. I haven't created one for the Tab cycling thing I mentioned but hope the following makes sense. Also, some additions have to be done for commands like
nmap
that needsudo
as a prefix to use certain flags.I've added numbers (1), (2) for each example shown for the command
nmap
:User enters number (1) and hit the ENTER Key:
Here user would type the
{{ip_or_hostname}}
variable part and again hits ENTER key:Command getting executed normally in the terminal:
Beta Was this translation helpful? Give feedback.
All reactions