Suggestion: Click Cursor Position in CLI

A forum for general AmigaOS 4.x support questions that are not platform-specific

Suggestion: Click Cursor Position in CLI

Postby fingus » Tue Aug 02, 2011 11:20 am

Suggestion:

Click a Cursor Position on a CLI command.

example:
workbench:> assign work:test/

Click with the Mouse on w of "work" to change it to backup
User avatar
fingus
 
Posts: 35
Joined: Sat Jun 18, 2011 7:10 pm

Re: Suggestion: Click Cursor Position in CLI

Postby Thomas Frieden » Tue Aug 02, 2011 12:02 pm

fingus wrote:Suggestion:

Click a Cursor Position on a CLI command.

example:
workbench:> assign work:test/

Click with the Mouse on w of "work" to change it to backup


What would that actually do ? Where does "backup" come from and how should the mouseclick know what to exchange the word for ?
User avatar
Thomas Frieden
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 147
Joined: Fri Dec 10, 2010 4:21 pm

Re: Suggestion: Click Cursor Position in CLI

Postby ChrisH » Wed Aug 03, 2011 12:32 am

@Thomas
I guess (only guess!) that clicking on "w" would highlight the whole word, allowing you delete it & replace with "backup" or whatever? I'd suggest it would need to be a double-click though.

I suppose it you could try to detect that it was a path (KingCON does something similar when you press Tab IIRC) but I don't see that would be particularly helpful.
User avatar
ChrisH
Beta Tester
Beta Tester
 
Posts: 912
Joined: Mon Dec 20, 2010 10:09 pm

Re: Suggestion: Click Cursor Position in CLI

Postby tonyw » Wed Aug 03, 2011 2:17 am

You can think of lots of "shortcuts" like that, but you end up with so many low-level features that only a few users can remember them and most people don't use them. Also (and this is the worst part) maintaining such code is a horrible job.

If that is what fingus wants, I'd suggest that back-spacing to the "work" string, erasing it and typing "b<HT>" would get the same result faster.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1312
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: Suggestion: Click Cursor Position in CLI

Postby fingus » Wed Aug 03, 2011 10:19 am

Thomas Frieden wrote:
fingus wrote:Suggestion:

Click a Cursor Position on a CLI command.

example:
workbench:> assign work:test/

Click with the Mouse on w of "work" to change it to backup


What would that actually do ? Where does "backup" come from and how should the mouseclick know what to exchange the word for ?


Ok, my example was not really clear, i try it again:

You have three partitions named:

Workbench:
Work:
Backup:

And now you open a cli and type or paste from a readme something like this:

assign blah: NotyourHDDName:blah/

It would be a nice feature to click the Cursor for example to the first char of "NotyourHDDName" to delete manually by Keyboard the Drive-Name to type in one fitting Name of your system. Otherwise you have to press Backspace or Cursor left a few times to reach "NotyourHDDName" to change it. Auto-Highlighting would also be a very nice feature to have, but in my case its not a must.
User avatar
fingus
 
Posts: 35
Joined: Sat Jun 18, 2011 7:10 pm

Re: Suggestion: Click Cursor Position in CLI

Postby Hans-Joerg Frieden » Wed Aug 03, 2011 12:24 pm

fingus wrote:It would be a nice feature to click the Cursor for example to the first char of "NotyourHDDName" to delete manually by Keyboard the Drive-Name to type in one fitting Name of your system. Otherwise you have to press Backspace or Cursor left a few times to reach "NotyourHDDName" to change it. Auto-Highlighting would also be a very nice feature to have, but in my case its not a must.


What if you have typed
Assign blah: "RAM Disk:blah/"

Will your proposed feature stop at the space? At the ':'? at the quote? EIther way you do it, it doesn't really work. It's either a "select word" or a "select volume", in any case the use of such a feature is extremely narrow, for a situation that hardly ever arises.
NOTICE: If you want to contact me, use E-Mail. I cannot be contacted via the forum/private messages anymore
User avatar
Hans-Joerg Frieden
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 223
Joined: Wed Dec 08, 2010 4:52 pm

Re: Suggestion: Click Cursor Position in CLI

Postby chris » Wed Aug 03, 2011 9:01 pm

Hans-Joerg Frieden wrote:What if you have typed
Assign blah: "RAM Disk:blah/"

Will your proposed feature stop at the space? At the ':'? at the quote? EIther way you do it, it doesn't really work. It's either a "select word" or a "select volume", in any case the use of such a feature is extremely narrow, for a situation that hardly ever arises.


I think he means, when you click the mouse in the Shell/a console window, the cursor should move to that place. No other cleverness. This would actually be very useful.
chris
 
Posts: 551
Joined: Sat Jun 18, 2011 12:05 pm

Re: Suggestion: Click Cursor Position in CLI

Postby Hans-Joerg Frieden » Wed Aug 03, 2011 10:41 pm

chris wrote:I think he means, when you click the mouse in the Shell/a console window, the cursor should move to that place. No other cleverness. This would actually be very useful.


That would be usable indeed. Also, double clicking a word to select it would be useful.
NOTICE: If you want to contact me, use E-Mail. I cannot be contacted via the forum/private messages anymore
User avatar
Hans-Joerg Frieden
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 223
Joined: Wed Dec 08, 2010 4:52 pm

Re: Suggestion: Click Cursor Position in CLI

Postby fingus » Thu Aug 04, 2011 9:32 am

chris wrote:
Hans-Joerg Frieden wrote:What if you have typed
Assign blah: "RAM Disk:blah/"

Will your proposed feature stop at the space? At the ':'? at the quote? EIther way you do it, it doesn't really work. It's either a "select word" or a "select volume", in any case the use of such a feature is extremely narrow, for a situation that hardly ever arises.


I think he means, when you click the mouse in the Shell/a console window, the cursor should move to that place. No other cleverness. This would actually be very useful.


Thats excatly what i meant. There should be a german speaking section here to prevent such misunderstanding. ;-)
User avatar
fingus
 
Posts: 35
Joined: Sat Jun 18, 2011 7:10 pm

Re: Suggestion: Click Cursor Position in CLI

Postby xenic » Wed Aug 10, 2011 4:39 pm

@fingus
I don't think it is necessarily a language issue. Like other KingCON users, I immediately knew that you were suggesting an editable command line in the Amiga shell (console actually). Most of us would like to see most of the additional features in KingCon included in the Amiga console (scrollable windows, buffer saving, command line editing etc.)
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1120
Joined: Sun Jun 19, 2011 1:06 am

Next

Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 4 guests

cron