On 9/17/06, Beni Cherniavsky <[EMAIL PROTECTED]> wrote: > I tried today to implement in fish M-. (as in bash). I also plain to > add M-/ (as in emacs), C-t and M-t and some more... I got it > partially working but only partially and with ugly hacks. Here are > the features I miss: > > * Allow ``commandline -o CMD`` to tokenize CMD instead of current > command line (saving, replacing, tokenizing and restoring amazingly > does work but is too ugly).
Definitely. What does -o stand for, cOmmand? If so, I guess --command should be the GNU-style name. > * Expose the whole history in $history as recently discussed. I did this in my internal tree. Observations: * This makes the output of 'set' meaningless, since $history alone is several screenfulls. * The indexes for history items change all the time, making it hard to keep track of history items. In conclusion, a $history variable seems to me to be a solution that is great on paper and a pain in practice. My way was bad and the bash way is better. Unless someone has some good arguments, I'm going to implement a history builtin like in bash. > * Expose the history of command-line editing commands in > $__fish_edit_history or something like that. The motivation is > commands like M-. that notice when they are used repeatedly. A detailed suggestion of exactly how this should be exposed, and what information is critical would be needed. > * Add options to ``commandline`` for quering and moving the cursor position. Definitely. How about using -C/--cursor-pos to set the commandline buitlin in 'cursor-mode', so that 'commandline -C' will output the cursor position, and 'commandline -C POS' will move the cursor to POS? > > -- > Beni Cherniavsky <[EMAIL PROTECTED]>, who can only read email on weekends. > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
