On 10/9/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: [...] > Only the token under the cursor is tested. Inserting a space means > that you are no longer under the current cursor, you are between > tokens.
OK. Then, strictly speaking, as soon as the first space is entered, the underlining should be removed too, right? Also, if you press Enter after completing a file name, it stays underlined. So that will stay on screen. Inconsistent? But I think neither of these are issues. It just seemed unpredictable > Motivations for doing only one token: > > * Underlining all tokens that can be files would introduce seriously > clutter. The fish prompt already has a serious pink flamingo factor. My intuition is different. Once it is completed, your gaze is on the next part of the command. So the underlining is not distracting. Removing the underlining is distracting, because something changes where you're not typing! The less magic like this, the better. I was confused by it. What does the prompt have to do with it?? I thought only what the user types is checked, not what is printed by the shell. And don't you mean pink salmon? > * Checking if all tokens could be files could be files would be very > slow in some cases, like if $PWD is on a remote file system. I don't understand. You don't have to underline ``$PWD'' typed literally. Why would you have to check all tokens? Just check the token under the cursor and after the cursor moves away, don't change the underlining unless the cursor moves to the token again. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
