X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fdirhistory%2FREADME.md;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fdirhistory%2FREADME.md;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=ede9b541010b88f6f5606a3aef9c0953cbbf90ad;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/dirhistory/README.md b/stow/oh-my-zsh/.oh-my-zsh/plugins/dirhistory/README.md deleted file mode 100644 index ede9b54..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/dirhistory/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# Dirhistory plugin - -This plugin adds keyboard shortcuts for navigating directory history and hierarchy. - -To use it, add `dirhistory` to the plugins array in your zshrc file: - -```zsh -plugins=(... dirhistory) -``` - -## Keyboard Shortcuts - -| Shortcut | Description | -|-----------------------------------|-----------------------------------------------------------| -| Alt + Left | Go to previous directory | -| Alt + Right | Go to next directory | -| Alt + Up | Move into the parent directory | -| Alt + Down | Move into the first child directory by alphabetical order | - -**For macOS: use the Option key (⌥) instead of Alt**. - -> NOTE: some terminals might override the Alt + Arrows key bindings (e.g. Windows Terminal). -> If these don't work check your terminal settings and change them to a different keyboard shortcut. - -## Usage - -This plugin allows you to navigate the history of previous working directories using Alt + Left -and Alt + Right. Alt + Left moves to past directories, and -Alt + Right goes back to recent directories. - -**NOTE: the maximum directory history size is 30.** - -You can also navigate **directory hierarchies** using Alt + Up and Alt + Down. -Alt + Up moves to the parent directory, while Alt + Down moves into the first -child directory found in alphabetical order (useful to navigate long empty directories, e.g. Java packages). - -For example, if the shell was started, and the following commands were entered: - -```shell -cd ~ -cd /usr -cd share -cd doc -``` - -the directory stack (`dirs -v`) would look like this: - -```console -$ dirs -v -0 /usr/share/doc -1 /usr/share -2 /usr -3 ~ -``` - -then entering Alt + Left at the prompt would change directory from `/usr/share/doc` to `/usr/share`, -then if pressed again to `/usr`, then `~`. If Alt + Right were pressed the directory would be changed -to `/usr` again. - -After that, Alt + Down will probably go to `/usr/bin` if `bin` is the first directory in alphabetical -order (depends on your `/usr` folder structure). Alt + Up will return to `/usr`, and once more will get -you to the root folder (`/`).