You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,11 +355,32 @@ The new alias `zh` (jump to history) uses a parameter `-t` to sort the result by
355
355
356
356
The first column indicates how many seconds ago you have visited, and the second column is the path name. With `zh`, you can type some character to use string matching in fzf, or use `<Up>`/`<Down>` (as well as `CTRL+j/k`) to move the selector (red `>`) up and down.
357
357
358
-
At last, press `<enter>` to accept or `<ESC>` to give up.
358
+
At last, press `<enter>` to accept or `<ESC>` to give up.
359
+
360
+
Version `v1.5.1` has introduced a simulated "dir stack", which can be manipulated by `z -`, `z --` and `z -{num}`:
361
+
362
+
```bash
363
+
# display current dir stack
364
+
$ z --
365
+
0 /home/skywind/work/match/memory-match
366
+
1 /home/skywind/.local/etc
367
+
2 /home/skywind/software/vifm-0.9.1
368
+
3 /home/skywind/work
369
+
4 /home/skywind/work/match
370
+
371
+
# cd to the 2nd directory in the stack
372
+
$ z -2
373
+
=>cd /home/skywind/software/vifm-0.9.1
374
+
375
+
# popup stacktop (cd to previous directory), same as "z -0"
376
+
$ z -
377
+
=>cd -
378
+
```
359
379
360
380
Remember to enable the [enhanced matching](#enhanced-matching) algorithm, the current working directory can be skipped with it.
361
381
362
382
383
+
363
384
## Tips
364
385
365
386
Recommended aliases you may find useful:
@@ -427,6 +448,7 @@ As you see, z.lua is the fastest one and requires less resource.
427
448
428
449
## History
429
450
451
+
- 1.5.1 (2019-02-15): new: simulated dir stack by `z -`, `z --` and `z -{num}`.
430
452
- 1.5.0 (2019-02-14): fixed minor issues in backward jumping.
431
453
- 1.4.7 (2019-02-13): Don't use regex in backward jumping (use plain text instead).
432
454
- 1.4.6 (2019-02-12): change: `_ZL_EXCLUDE_DIRS` to a comma separated list of dirs to exclude.
0 commit comments