Discussion:
YAOS users - feedback requested.
(too old to reply)
Dave Saville
2013-07-29 12:31:49 UTC
Permalink
Making a few tweaks to YAOS and Alex Taylor, who is kindly beta
testing for me, complained that CTRL-<left arrow> no longer worked.
This is supposed to backspace the cursor to the beginning of the
previous word.

In doing some genel code clean up I had broken this function. The fix
was to move a ')' :-) However I noticed in passing that the code for
both word forward and word backward actually was testing for a-z 0-9
disregarding case.

So given "abc def" with the cursor at the end it first goes to the "d"
and a second invocation goes to "a"

But given "abc d-f" it will go "-" "d" "a".

The question is should it not really be testing for whte space? Does
anyone other than Alex actually use this? TBH I never knew it was
there. :-)
--
Regards
Dave Saville
Alex Taylor
2013-07-30 00:45:54 UTC
Permalink
Post by Dave Saville
Making a few tweaks to YAOS and Alex Taylor, who is kindly beta
testing for me, complained that CTRL-<left arrow> no longer worked.
This is supposed to backspace the cursor to the beginning of the
previous word.
In doing some genel code clean up I had broken this function. The fix
was to move a ')' :-) However I noticed in passing that the code for
both word forward and word backward actually was testing for a-z 0-9
disregarding case.
So given "abc def" with the cursor at the end it first goes to the "d"
and a second invocation goes to "a"
But given "abc d-f" it will go "-" "d" "a".
The question is should it not really be testing for whte space? Does
anyone other than Alex actually use this? TBH I never knew it was
there. :-)
I justed checked to see how CMD.EXE does it, and it appears to test
for whitespace, as you suggest.

Of course, you could always make it a configurable option. :p
--
Alex Taylor
http://www.altsan.org

Please take off hat when replying.
Steve Wendt
2013-07-31 05:19:38 UTC
Permalink
Post by Dave Saville
So given "abc def" with the cursor at the end it first goes to the "d"
and a second invocation goes to "a"
But given "abc d-f" it will go "-" "d" "a".
Given \a\long\directory\path\on\the\command\line, it's useful to look at
more than just white-space.
Dave Saville
2013-07-31 08:07:11 UTC
Permalink
Post by Steve Wendt
Post by Dave Saville
So given "abc def" with the cursor at the end it first goes to the "d"
and a second invocation goes to "a"
But given "abc d-f" it will go "-" "d" "a".
Given \a\long\directory\path\on\the\command\line, it's useful to look at
more than just white-space.
I agree. Recall I did not know about this feature - I just maintain
and enhance the code. I did not write the original so there are most
likely several other bits I have no direct knowledge of. I realised
the advantage WRT to path names after I posted the question - as so
often happens :-) Guess I will leave as is then.

Should have a new relase RSN.
--
Regards
Dave Saville
Loading...