in short, type @z foo bar and jump to most-recent location with "foo" and "bar" in path.
Installation
zump runs as an alias. Enter this in the addressbar to define the alias:
Code: Select all
@z=::global $G_zump_pattern='<@0>'; load "<xyscripts>/_alias/zump.xys";
The "z" in @z is the alias name. It may contain any character apart from "=", "/", and space. It may even be empty, in which case "@" alone calls zump.
Usage
Run from the address bar:
@z [/options] pattern [pattern ...]
Run from within xyscripts:
goto "@z [/options] pattern [pattern ...]";
Recognized options:
/l: list matching dirs /h: include pane history in search candidates /r: go to last matching dir /n: go to nth matching dir /-n: go to nth-to-last matching dir
• To include pane history by default, set
::perm $P_ZUMP_APPEND_HISTORY=1;
• To search in reverse by default, set
::perm $P_ZUMP_SEARCH_REVERSE=1;
Notes:
• Each single quote in pattern must be typed twice.
• Patterns are always matched from left to right.
• Nested quotes are not supported.
Examples
Code: Select all
@z foo bar // goto latest dir with "foo" and "bar" in path
@z "foo bar" // goto latest dir with exactly "foo bar" in path
@z foo\bar // match foo and bar at different path levels
@z /l foo bar // list dirs that match given pattern
@z /r foo bar // goto last matching dir (reverse order)
@z /2 foo bar // goto 2nd matching dir
@z /-1 foo bar // goto last matching dir
@z /lr foo bar // list matching dirs in reversed order
@z /lh foo bar // list matching dirs, history inclusive
Downloads
Latest release: -------------------------------------------------------------------------
older releases: