[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  shift-tab popup should use command history instead of function list
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

shift-tab popup should use command history instead of function list

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Mon 20 Jun 2011 06:20 AM (UTC)
Message
using shift-tab while typing on the command line should pop up a selection of matching command history instead of a function list. It would be like a more complete tab completion.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 20 Jun 2011 09:26 AM (UTC)
Message
And if you are trying to shift-tab-complete some script command? Which I do quite often?

That command area is a nifty way of grabbing the exact spelling of scripting commands, which you then copy into Crimson Editor.

But perhaps it could do what you suggest if the line doesn't start with the scripting prefix?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #2 on Mon 20 Jun 2011 09:31 AM (UTC)
Message
Nick Gammon said:
But perhaps it could do what you suggest if the line doesn't start with the scripting prefix?

Seems like a sensible way to go about things.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #3 on Mon 20 Jun 2011 10:43 AM (UTC)
Message
Shift-Tab might also offer matching words from the spellcheck dictionary when the command-line isn't fully empty and there's no scripting going on, just like normal Tab does for recent lines in the output window. I realize that is a conflicting request compared to Fiendish wish for the key combination, but maybe it can be a world or global configuration option as his idea is something I would probably never have a use for.

For example, some words I can't ever learn how to spell properly despite having been corrected a hundred times (guarantee <-?-> garantuee as an example), and having an easy way to type it and check the proper spelling would be a great saver compared to visiting dictionary.com, wait 10s for it to load, type the word, and waiting another 10s. (That website is so damn slow.)

One might argue I should get in the habit of using Ctrl-J (spellcheck) more often, as it technically does what I want (assuming earlier words on the command line are all recognized, which isn't a given either).. but it pops up half a screen away from my cursor and makes the check a more interruptive one than I feel it ought to be.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 21 Jun 2011 04:15 AM (UTC)
Message
Fiendish said:

using shift-tab while typing on the command line should pop up a selection of matching command history instead of a function list. It would be like a more complete tab completion.


Now just to expand on this idea ...

Do you mean, pop up a list of (whole) commands that match ... what? The word next to the cursor? Everything you have typed? Or just candidate words for insertion into the text? I can see this working in different ways.

For example, say you typed "cast fire<shift+tab>" ...

Would it look backwards for things starting (or containing maybe) "fire" and put up a list like:


firestorm
fireball
firestarter
fireplace


And then you choose one, and it inserts it into the command instead of "fire" (like a tab-completion with choices)?

Or, if you typed "cast<shift+tab>" ...

Would it look backwards for whole lines matching (or starting with) "cast <something>, eg.


cast fireball
cast heal
cast recall
cast frost


And then when you choose one it puts the whole matching line into the command window, replacing what you had there?

I think the idea needs fleshing out, or you (or someone) will say that whatever-I-do isn't what you wanted.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Tue 21 Jun 2011 04:32 AM (UTC)
Message
I think it should attempt to complete the entire line. The way it was described to me was like how firefox suggests completions for URLs typed into the address bar.

I believe the second depiction, using cast, is about right.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Thu 23 Jun 2011 12:43 AM (UTC)
Message
OK, and if the list is populated like you say, what order would you expect it in?


  • Alphabetical (helps find a particular command)
  • Most recent at the top
  • Most recent at the bottom


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #7 on Thu 23 Jun 2011 12:45 AM (UTC)

Amended on Thu 23 Jun 2011 12:57 AM (UTC) by Worstje

Message
I still would appreciate the ability to have Shift-Tab pop up a list of dictionary words that could (auto-)complete the current word or correct it (using that Levenschtein distance used for the spellcheck window). The idea is to easily correct / pick the correct spelling for a word when you know you have trouble spelling it correctly.

But that's the last time I'll post about that wish of mine.
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Thu 23 Jun 2011 01:00 AM (UTC)
Message
Worstje, is this something you could achieve with an accelerator key and a little scripting?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #9 on Thu 23 Jun 2011 03:02 AM (UTC)
Message
Nick Gammon said:

OK, and if the list is populated like you say, what order would you expect it in?

*Alphabetical (helps find a particular command)
*Most recent at the top
*Most recent at the bottom


Since I don't know what "top" and "bottom" are, I think I'd go with most recent at the nearest so that recently used commands require the least effort to bring back.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #10 on Thu 23 Jun 2011 04:21 AM (UTC)
Message
@Nick Gammon: Probably to the same extent Fiendish could achieve his idea with a bit of scripting. But if I make a few concessions, aye I could script it with miniwindows.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,946 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]