I'm glad that you like the idea. And understand that it may be not clear. But I have tried to implement it maximally effeciently.
There is too many words on the screen and i think mark them all is not too good. We can't to select columns before lines because for each line must be different columns in each line. So I just try to show how it works. For example I have the next terminal: ________________________________________ / Asking a working writer what he thinks \ | about critics is like asking a | | lamp-post how it feels about dogs. -- | \ Christopher Hampton / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || Lets select the "critics" word. I'm pressing "Alt+W" ` ______________`_______________`________ 1 Asking a worki1g writer what h1 thinks \ 2 about critics 2s like asking a2 | 3 lamp-post how 3t feels about d3gs. -- | 4 Christopher Ha4pton 4 / 5 --------------5---------------5-------- 6 ......\ ^__^ 7 .......\ (oo)7_______ 8 ..........(__)8 )\/\ 9 ..............9|----w | 0 ..............0| || The line labels repeats each 16 columns to more easy find it with eyes. So I have to press "2" to select the "about critics is like asking a" line. I'm pressing "2" the first time (start line of selection), then this line labels reverts to be sure that you do something, and when press "2" the second time (end line of selection). After that I see: ________________________________________ `3 7 0 \ ru [ s g l zv , | about critics is like asking a | `3 7 0 \ ru [ s g l zv , \ Christopher Hampton / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || And I press "\" the first time (start of selection), and then "\" the second time (end of selection). If I use "Alt+C" instead of "Alt+W" I will see instead of the last shot: ________________________________________ `123567890-=qwertyuip[]asdfgjkl;'zxcbnm,./ | about critics is like asking a | `123567890-=qwertyuip[]asdfgjkl;'zxcbnm,./ \ Christopher Hampton / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || And then I will press "9" and "e" to select the same word. I just don't know how to make better the color tunable. For me enough to change it in the my code :-) After selecting lines you see two lines of labels - it may be different if you select two different lines in words selecton mode. Why we select it in order (y1, y2 x1, x2) and not (y1, x1) (y2, x2)? It is because when you see lines labels it is more easier press the same key two times fast or two near keys than press one key, then look aside to press column number and when again see which you must press key again for line. On Thu, Jan 26, 2012 at 08:59:36AM +0000, Nicholas Marriott wrote: > This idea is nice, but I'm not sure about your implementation: > > I think the user interface is too unclear. I read your description and > tried to use this and I couldn't figure out what I was selecting at all. > > If I was doing this I think there are two ways I would consider making > it work... > > 1) It could split the screen into a grid and allow you to select, > so first it would give you: > > 0 1 2 3 4 5 .... > mytext here > more text here and here > another line > > You press 0 and it highlights column from 0-1, then gives youL > > 01234 > mytex > > You then press 2,3 to select the range of columns 2-3. And then the > same for the rows. So 4 keys to select any rectangular region on > screen (it could work by cell or by word). > > 2) It walks the whole screen and gives each word a key and prints > the character, so something like: > > 0ytext 1ere > 2ore 3ext 4ere 5nd 6ere > 7another 8ine > > Then you press 0,2 to select all text between the m in "mytext" and > the e in "more". It highlights that then you press Enter or C-w or > whatever to do the copy. So two or three keys to select any region > between two words on screen. > > I like the second way, which I think is sort of what your code does. > > In either case, the keys should run 0-9a-zA-z then meta+0-9a-zA-z then > the symbols last. > > Also you should use mode-bg and mode-fg I think not fixed blue > colours. There is an existing word-separators option too. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users