You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 need sudo 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:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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