|
Congratulations !
When you say: "And in some ways, UWP makes it a little harder to create an ugly UI," I want to ask what you use for basic controls ... checkboxes, or panels, or date-time picking. Are there robust 3rd. party controls, like a grid, or, or treeview, out there ?
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
I've found that UWP has more "look and feel" properties that you can't arbitrarily mess with (like a minimum size / height).
All the "built-in" UWP controls work well. They are supplemented with 2 main Nugets that provide extra controls that would be in WPF but not UWP currently or are just different. And UWP has some nice controls that WPF doesn't (mostly "flash" IMO).
The Treeview was a Nuget; worked as advertised. Made my own out of a ListView because it was more customizable (but I have particular demands). DataGrid is also a Nuget. Works. (With row templating, "data grids" are not such a big deal anymore).
Virtualy every control (UWP, Windows and WPF) can be reduced to a few primitives: a button, text block or a list.
UWP lets you roll your own just like in Win Forms or WPF. (And no sign of MVVM).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Thanks for that thoughtful reply, Gerry !
I look forward to reading your future articles on UWP development
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
I'm better at answering questions than writing about what I don't know.
The worst sin is being boring.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Gerry Schmitz wrote: better at answering questions than writing about what I don't know. Ahh, if you say so I find trying to write about what code does/should do is a valuable experience ... even better, imho, is trying to teach others.
I see you like Blaise Pascal: are you familiar with his statement: “Nature is a fearful sphere, whose center is everywhere and whose circumference is nowhere.” (Pensées, 1669). The great Argentinian writer, Jorge Borges, discovered this had been mistranslated from the French as "infinite sphere."
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
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?
|
|
|
|
|
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
|
|
|
|
|
Gerry Schmitz wrote: sort of AI like. But not like Clippy
clippy was artificial?
Message Signature
(Click to edit ->)
|
|
|
|
|
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
|
|
|
|
|
I imagine it could show you ghost letters of what the result of pressing tab could be, or maybe some kind of overlay similar to the IntelliSense menu that could could traverse with up/down keys. I never liked how you can wipe out what you're typing by pressing the up key anyway so that's functionality we can afford to lose.
What could be cooler is some NLU that could convert plain English (or whatever language) into commands - who needs autocomplete if you could just type
FOO=$(nlu-cmd "list of all markdown files that have been updated this year")
|
|
|
|
|
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!
|
|
|
|
|
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
|
|
|
|
|
PowerShell is what I had in mind as a model.
VS Code has some nice extensions that provide context-sensitive IntelliSense for PowerShell, probably because PowerShell has some pretty clear rules and established standards.
|
|
|
|
|
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
|
|
|
|
|
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, 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
|
|
|
|
|
Definitely! And it's even more than just that double tab idea: 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
|
|
|
|
|
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.
|
|
|
|
|
That's exactly what I had in mind. If the IDE can do it, then it sure would be nice (I have to think) to also have that right at an interactive command prompt.
|
|
|
|
|
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!
|
|
|
|
|
Already available (in a text UI) with bash, and probably with zsh or fish 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
|
|
|
|
|
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.
|
|
|
|