Hacker News new | ask | show | jobs
by hawaiian 2301 days ago
Bash already has autocomplete and there are shells with richer feature sets.

What I would like to see is something like CLUI to be integrated with an IDE or a productivity tool like Adobe Photoshop. PyCharm/JetBrains already embraces the keyboard with double-Shift => Search Everywhere, and other similar shortcuts. Similarly, Photoshop would benefit from keyboard interaction for common tasks. We already have single-pixel nudge actions via the arrow keys, but a CLI prompt you could conjure up and type into would be a game changer for actions that require repetition and precision.

That is, rather than bringing GUI to the CLI, bring CLI to the GUI.

3 comments

> Bash already has autocomplete

What kind of autocomplete does bash have? Do I need to enable it? I've just tried bash 5.0.16. I don't see any. For example, I've typed `pw`, but `pwd` was not suggested to me.

(I know there's Tab-completion, this is not what I'm talking about. I'm looking for automatic completion. Similar to Google's search suggestions and CLUI demo.)

I think fish has that?
Thanks! Fish is close, but not there yet. It provides only a single autocomplete suggestion. I had to press Tab to get a list of suggestions. So:

bash: no auto suggestion at all, Tab twice to see a list

fish: shows single auto suggestion, Tab once to get a list

zsh + zsh-autosuggestions: looks similar to fish behaviour

Is there some combination of shell/plugin/terminal that provides multiple auto suggestions?

Tab twice.
The feature you are looking for exists in `fish`
> Photoshop would benefit from keyboard interaction for common tasks

Out of curiosity, how often do you use Photoshop, and for what tasks?

Yep, that's the plan -- we're adding to our IDE. Will report back results.