Command prompt idea...aye or nay?
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
You can look at (in a VM, of course) some old text editors, WPs, and IDEs to get an idea how similar things were done before windowed apps became the norm. Some are quite easy to use and intuitive, so they might give you some good ideas. Have a browse through abandonware sites, to find them.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
dandy72 wrote:
a waste of time?
It depends on how much you have... The tab-competition feature came after more than a decade... History still local (if you close the command window or restart the computer it start afresh)... If you are looking for extend/improve something it is probably better to go with PowerShell...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
dandy72 wrote:
with full context sensitivity for the command prompt yet...
Because it would be a huge overengineering ? Not sure what is your job, but for the few times I have to use the command prompt, completion tab was fully sufficient.
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
You already have that, in the PowerShell IDE. Would it help to have it while using PS or CMD? Well, maybe. I'd give it an upvote.
I only have a signature in order to let @DalekDave follow my posts.
-
Nothing wrong with the idea. You can do an incremental search and display in another window while a user is typing (like a "spell checker"). (I think the extra window makes it more impressive ... sort of AI like. But not like Clippy).
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
Intellisense has the bad habit of always insisting on showing me only what I don't intend to use and carefully avoids showing that variable I just had declared only after I am as good as done typing its name. Sometimes of course it is unable to when I did not care to declare anything previously. It's just too dumb to follow my course of thinking, since I refuse to be trained to the One Microsoft Way (TM) of doing things by this silly gadget.
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
dandy72 wrote:
a waste of time?
It depends on how much you have... The tab-competition feature came after more than a decade... History still local (if you close the command window or restart the computer it start afresh)... If you are looking for extend/improve something it is probably better to go with PowerShell...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
Ever used bash with autocompletion? It's a huge timesaver.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
dandy72 wrote:
with full context sensitivity for the command prompt yet...
Because it would be a huge overengineering ? Not sure what is your job, but for the few times I have to use the command prompt, completion tab was fully sufficient.
Rage wrote:
Because it would be a huge overengineering ?
As per one of my responses above, VS Code has some PowerShell extensions that can do a very nice job of it because PowerShell has some pretty standard methods for exposing methods, params, help and such. If we could get those for Powershell sessions, rather than just editors, I think it'd be a great start.
-
You already have that, in the PowerShell IDE. Would it help to have it while using PS or CMD? Well, maybe. I'd give it an upvote.
I only have a signature in order to let @DalekDave follow my posts.
-
Intellisense has the bad habit of always insisting on showing me only what I don't intend to use and carefully avoids showing that variable I just had declared only after I am as good as done typing its name. Sometimes of course it is unable to when I did not care to declare anything previously. It's just too dumb to follow my course of thinking, since I refuse to be trained to the One Microsoft Way (TM) of doing things by this silly gadget.
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
I "had" to turn it off at one time; I felt as you did (different MS tool). Distracting. Now it's the team member that you were told to find a place for. And one can improve on what came before.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
Spent some time with the PowerShell ISE yesterday which has IntelliSense and hell yes, it helped a huge lot. From that perspective, it being great on the console itself is a no-brainer, roll it!
-
Doesn't tab just cycle through available options? I'm thinking rather some sort of popup window like you get in the VS IDE.
Not in bash (well - you have options - **many** options!). WIth bash, if you press TAB twice, it lists the options you have, whether that's files, commands or command options. For example - if I type `git c` at the command line and then TAB twice, I get the following: ``` u404261@cabbage:/h/GR6-Detector$ git c checkout cherry-pick clang-format-6.0 clean co config cherry ci clang-format-7 clone commit ``` These are the available completions (and I wasn't aware of `git-clang-format` before, so I've learnt something there!). And going by [this page](https://askubuntu.com/questions/707202/select-a-particular-result-from-completion-suggestions), you can then bind keys to select from that list...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
[Already available (in a text UI) with bash](https://askubuntu.com/questions/707202/select-a-particular-result-from-completion-suggestions), and probably with [zsh](http://zsh.sourceforge.net/) or [fish](https://fishshell.com/) as well. Full context sensitivity really requires help from the programs you use, if it's going to provide useful suggestions for things like program options. For example, if I type `git c` at a command line, I get a list of git commands starting with 'c'. I've just looked in the various bash autocompletion areas on my WSL install, and there's close to 1000 completion scripts for different programs' options, all installed when I `apt install` a package.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
Research the HP/DEC/Digital Vax VMS VERB architecture. A structured command line definition like that would be easy to provide intellisense for versus scads of external .exe files. It made it easy to add and remove commands(VERBS) from a user's login assigned cmd shell.
-
Genuinely wondering how well IntelliSense would work at a command prompt. We're all familiar with how it works in VS, VS Code and other environments that have implemented the idea. I'm trying to picture the same thing at a command prompt (cmd.exe or a PowerShell session)...would it help, or just get in the way? Although in an ideal world this would be a user setting. The history buffer (up/down) and tab completion are already big time savers...so why haven't we seen an all-out version of IntelliSense with full context sensitivity for the command prompt yet...? Would this get any upvote on a MS feedback page (or Windows Insider), or is this a waste of time?
I use a command prompt A LOT... Auto complete (TAB) is wonderful. a CTRL-TAB feature that shoves the COMMAND REFERENCE in the status bar, or opens a new command window with [COMMAND] /HELP, just to remind me the parameters/options, would be an 80/20 solution that I would think was almost trivial to implement! For windows, I used AutoHotKey and created Win-G which (although G is for Google, I use DuckDuckGo), it takes the selected text and does a search on it in a browser page. I use it 90% of the time for spell checking in unfriendly programs, and sometimes to do a quick lookup... (It does not work on a CMD prompt, but it is not my target, either)...
-
Ever used bash with autocompletion? It's a huge timesaver.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
Definitely! And it's even more than just that double tab idea: [https://www.thegeekstuff.com/2013/12/bash-completion-complete/\](https://www.thegeekstuff.com/2013/12/bash-completion-complete/) Though I think tying onto the manpage as an NCurses "pop-up-window" may even be surpassing this. Unfortunately I don't know how to get that working. Would likely need to have some specialized terminal client. Haven't used this before, but from the feature set it seems to come close: [fish shell](https://fishshell.com/)