best emacs command for search-navigating your command-line - Super User


i've noticed navigation of own command-line rather clunky, e.g. command like:

 % somecommand.pl --foo 123 --bar 456 --foobar 789  

my cursor begins on "9" , want move after "3". rather dumb combination of jumping beginning of words, end of word.

i'd rather "jump-to-this-specific-character" command. emacs have command? there shorter key sequence me want?

the problem doing ctrl-s incremental search is:

  • i have explicitly hit "esc" out of search mode
  • if overshoot search, end searching older commands in command-line history, don't want. want jump around in current command.

am over-thinking this?

the elisp code fragment

 (setq saved-point (point)) (begining-of-line) (and (searchforward string (line-end-position) t)      (goto-char saved-point)) 

will first occurence of string on current line, , leave cursor @ current point if there isn't such occurence.

how want incorporate such code practice? bind key prefix waits next key, , looks string containing character.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User