summaryrefslogtreecommitdiff
path: root/plugins/jump
AgeCommit message (Collapse)Author
2020-02-11jump: fix for `marks' and CTRL+G key bindingMarc Cornellà
- marks printed an error when $MARKPATH didn't exist or didn't have any marks in it. - The CTRL+G key binding overwrote an argument when it couldn't match it to an existing mark.
2020-02-11jump: add support for directories starting with a dot (#4661)hqingyi
Closes #4661
2020-02-11jump: fix issues in plugin and document CTRL+G key bindingMarc Cornellà
- Fixes `readlink -e` dependency which isn't supported in macOS (fixes #3235). - Uses native zsh wildcard expansion instead of calls to `ls`. - Prepends commands with `command` and `builtin` to bypass aliases and functions. - Documents CTRL+G key binding to substitute mark name in the command line with the mark path (https://github.com/ohmyzsh/ohmyzsh/pull/2045#issuecomment-22826540).
2018-12-31Provide even spacing between marks (#7456)Alexander Huynh
Before, when typing the `marks` command, longer mark keys would cause the tabs to spill over to the next tab stop, like so: rc -> /home/ahlex/.rc repos -> /home/ahlex/repos a-longer-string -> /tmp Implement better key display by running through all of the marks twice, once to get the longest key length, and the second time to format everything according to that length: rc -> /home/ahlex/.rc repos -> /home/ahlex/repos a-longer-string -> /tmp
2018-10-05jump: add README (#7237)Rubén Durán Balda
2018-10-03jump: use more compatible flag for ln (#7205)Jonatan Skogsfors
The flag '-h' isn't universal across implementation. According to FreeBSD man page for ln you can use 'n'.
2018-10-03jump: fix behavior when reusing a mark (#7197)Rubén Durán Balda
Force the mark to point to the new dir, replacing the old one. Fixes #7195
2018-09-01jump: fix printf path output (#7105)Ross Lafferty
Using the `jump` plugin, using the `marks` command will yield this output: ``` $ marks desktop marks:printf:5: bad option: -> dotfiles marks:printf:5: bad option: -> home marks:printf:5: bad option: -> ``` the `marks` function uses `printf` with `->` and I believe `-` is used by `printf` for left-justification. changing this to `-- "->"` seems to render the appropriate output. ``` desktop -> /Users/uname/Desktop dotfiles -> /Users/uname/.dotfiles home -> /Users/uname ```
2016-10-07Add non 0 exit code for missing jump targets (#5500)diego
This allows for the user to combine the jump command with something else. In my example cd and jump are now combined like this: ```bash jumpcd() { jump $1 > /dev/null || cd $1 } alias cd="jumpcd" ```
2015-06-11Fixed jump pluging to display the right mark name on 'mark . 'Octavian Neamtu
2015-02-10Clean up appearance lib file and redundant `colors` calls in other filesMarc Cornellà
2014-11-06Change all pwd calls for $PWD variableMarc Cornellà
This avoids spawning additional processes as $PWD **always** contains the current working directory.
2014-06-28Plugin jump: autocompletion for numbers and dotsJannik Zschiesche
This change fixes the autocompletion for marks which contain numbers or dots. Fixes #2578 `\d` in sed regular expressions doesn't work (see http://stackoverflow.com/questions/14671293/why-does-d-doesnt-work-in-regular-expression-in-sed)
2013-09-18jump plugin: fix autocompletion with single markThomas Hipp
Autocompletion fails if there's only one mark, since the ls command will not display the parent directory with the trailing colon. Handling the single mark case separately and validating the symlink explicitly, resolves the issue.
2013-09-06Fix aliasing pwdJeroen Janssens
2013-09-06Mark function asks for confirmation and uses basename of directory when no ↵Jeroen Janssens
argument is given
2013-09-06Change marks function and remove 'function' keyword as suggested by ↵Jeroen Janssens
pielgrzym in https://github.com/robbyrussell/oh-my-zsh/pull/2045#issuecomment-22820224
2013-09-06Add _completemarks function as suggested by pielgrzym in ↵Jeroen Janssens
https://github.com/robbyrussell/oh-my-zsh/pull/2045#issuecomment-22826540
2013-09-05Better filename matchingJustin Aiken
2013-09-05Filter out missing links with jump autocompleteJustin Aiken
2013-08-18Add tab completion for jump pluginJeroen Janssens
2013-08-15Add jump plugin, which allows you to easily jump around the file systemJeroen Janssens