Skip to content

Bindings for marking (m) and jumping (', `) between directories in ZLE vicmd

Notifications You must be signed in to change notification settings

zsh-vi-more/directory-marks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This plugin may get renamed to vi-directory-jump and add implementations for Ctrl-o, Ctrl-i, and :ju[mps].

Directory Marks

Save directories and jump between them with vi-like marks.

Bindings added:

Map Keybinding Action
vicmd '<char> `<char> Jump to mark
vicmd m<char> create mark at current working directory
(none) widget name: "marks" list marks

I recommend bindkey -M vicmd : execute-named-cmd, so that :marks works like vi(m).

Functions added

  • vi-dir-marks::sync: Read in any missing global marks, write out global marks to a cache file (prioritizes global marks present in local session)
  • vi-dir-marks::list: Lists all marks.
  • vi-dir-marks::{mark,jump}: These are primarily widget functions, but they work outside of ZLE.

Differences with Vim

There are no special marks at this time. '', '<, '(, etc. are all normal local marks.

If you have ideas for implementing these, please open an issue.

About

Bindings for marking (m) and jumping (', `) between directories in ZLE vicmd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages