Commit Graph

290 Commits

Author SHA1 Message Date
Ajeet D'Souza
7532fe98d8 Add PWD hook for POSIX shells 2020-05-02 16:31:53 +05:30
Ajeet D'Souza
7eed1ed9c3 Switch default hook to PWD. 2020-05-02 01:25:57 +05:30
Cole Helbling
58969e22a2
Fix cding home when no matching directory in fish (#64)
Fix `cd`ing into `$HOME` when no match is found in `fish` shell
2020-04-11 10:09:34 +05:30
Ajeet D'Souza
0d860503ae Remove unnecessary derive 2020-04-11 03:00:50 +05:30
Jason Shirk
a4b202f9da
Canonicalize to regular paths instead of UNC paths on Windows 2020-04-10 00:13:16 +05:30
Ajeet D'Souza
aab37dfab9 Update ranger plugin 2020-04-08 01:36:15 +05:30
Radu Ioan Fericean
f4cf811155
Fix ranger plugin (#59)
Remove query prefix from ranger plugin
2020-04-08 01:06:01 +05:30
Ajeet D'Souza
56218f35d3 Interactive mode for zoxide remove 2020-04-06 08:41:28 +05:30
Ajeet D'Souza
b21dbefa22 Don't show error if fzf exits gracefully 2020-04-05 22:31:32 +05:30
Ajeet D'Souza
2f73465d8d Saving DB should clear the modified flag 2020-04-05 21:39:21 +05:30
Ajeet D'Souza
bf76a4e9c1 Update README 2020-04-05 20:45:59 +05:30
Ajeet D'Souza
342954cda0 Performance improvements 2020-04-05 20:44:23 +05:30
Ajeet D'Souza
4414898a06 Release v0.3.1 2020-04-03 18:44:38 +05:30
Ajeet D'Souza
0155812949 Update CHANGELOG 2020-04-03 18:32:31 +05:30
Ajeet D'Souza
ede121ef8b Add flag to change z command 2020-04-03 12:03:38 +05:30
Ajeet D'Souza
d3e49bde66 Remove 'query: ' prefix from 'zoxide query' 2020-04-03 02:22:50 +05:30
Ajeet D'Souza
fdf46d34b9 Check for top-level directory match 2020-04-03 02:20:59 +05:30
Thomas Harmon
ee923c6822
Add note to README about fix for v0.2->v0.3 db incompatability error (#53) 2020-04-02 19:10:30 +05:30
Cole Helbling
1e333dfb33
Show commit hash in version number 2020-04-01 03:24:45 +05:30
Ajeet D'Souza
0191eead52 Prepare v0.3.0 release 2020-03-30 07:13:18 +05:30
Ajeet D'Souza
8abba828ea
Merge pull request #46 from ajeetdsouza/v0.3
zoxide v0.3
2020-03-30 07:09:01 +05:30
Ajeet D'Souza
9d0222383f Style nits 2020-03-30 06:49:41 +05:30
Ajeet D'Souza
ad96db844c Add CHANGELOG.md 2020-03-30 06:48:49 +05:30
Ajeet D'Souza
3c7d100ab1 Guarantee unique file names for temporary database 2020-03-30 03:32:21 +05:30
Ajeet D'Souza
78a3d0a3d9 Remove indoc dependency 2020-03-30 03:32:21 +05:30
Cole Helbling
9af0251bd6 Rework database fallback for v0.3 (#47)
Support migration from old database
2020-03-30 03:32:21 +05:30
Ajeet D'Souza
d4c8297f9b Use UUID4 for temporary database file name 2020-03-30 03:32:21 +05:30
Ajeet D'Souza
057ed96c0a Refactor DB architecture 2020-03-30 03:32:21 +05:30
Cole Helbling
91cced7333 Document _ZO_EXCLUDE_DIRS env var 2020-03-30 03:32:21 +05:30
Cole Helbling
1190106849 Implement _ZO_EXCLUDE_DIRS
_ZO_EXCLUDE_DIRS is a list of paths (separated by colons, `:`, on
Unix-based systems, and semicolons, `;`, on Windows) that should be
excluded from the database. Example:

    _ZO_EXCLUDE_DIRS="$HOME:$HOME/something/super/secret:$HOME/caused/by/background/cds"
2020-03-30 03:32:21 +05:30
Ajeet D'Souza
f29b642ffc Remove FIXME 2020-03-30 03:32:21 +05:30
Ajeet D'Souza
d4fb1a05cf Manually parse environment variables 2020-03-30 03:32:21 +05:30
Ajeet D'Souza
5547fb4b80 Rename migrate command to import 2020-03-30 03:31:22 +05:30
Ajeet D'Souza
76dfaad9a1 Set max DB size to 8 MiB 2020-03-30 03:30:12 +05:30
Ajeet D'Souza
890185176e Store paths as PathBuf rather than String 2020-03-30 03:30:12 +05:30
Ajeet D'Souza
857e15c65f Remove conversion to i64 when sorting 2020-03-30 03:30:12 +05:30
Ajeet D'Souza
5d709bded5 Remove i32 conversion from fzf helper 2020-03-30 03:30:12 +05:30
Cole Helbling
dc5f965b0c
Add POSIX shell support (#43)
Add POSIX shell support

Any users of a shell that adheres to the POSIX standard should now be
supported. Shells that were tested while this feature was in development
include `mrsh`, `dash`, busybox `ash`, and `bash --posix`.

The hook works by defining a `_zoxide_hook` function and adding it to
the shell's `PS1` (causing it to be evaluated every time the prompt is
redrawn).

The PWD hook has been removed, because it is impossible to implement in
a POSIX-compliant and satisfactory way.
2020-03-30 03:24:37 +05:30
Ajeet D'Souza
a14060335a Prepare for upgrade to v0.2.2 2020-03-20 01:18:52 +05:30
Douglas Campos
e5a051f679
add armv7 release step (#38) 2020-03-18 12:22:57 +05:30
Ajeet D'Souza
69546f8b11 Update README 2020-03-17 21:51:42 +05:30
Ajeet D'Souza
b3470de799 Remove flock 2020-03-17 13:05:10 +05:30
Ajeet D'Souza
03e8cd47a2 Fix exit codes in z and fzf 2020-03-17 12:34:53 +05:30
Ajeet D'Souza
146e5709fb Fix exit codes in 'z' command 2020-03-16 14:26:59 +05:30
Ajeet D'Souza
a5369beaa4 Prepare for release v0.2.1 2020-03-16 00:08:28 +05:30
Cole Helbling
083a834310
Allow merging when migrating from z (#33)
If the user passes the `--merge` flag to the `migrate` subcommand, all
duplicate entries will have their ranks and epochs updated: the rank
will be the sum of the stored rank and the newly-parsed rank, while the
epoch will be the maximum of the stored epoch and the newly-parsed
epoch.

This allows one to import from the `z` database even after having used
`zoxide` for any amount of time. This also permits a user who has
already sourced the init script to import their old database without
needing to do something like `rm ~/.zo && zoxide migrate ~/.z`.
2020-03-15 23:48:59 +05:30
Ajeet D'Souza
f4cd1159c5 Add $_ZO_ECHO to echo match before navigating 2020-03-15 17:55:54 +05:30
Ajeet D'Souza
f31fcf2d1f Add ranger plugin 2020-03-14 12:05:38 +05:30
Ajeet D'Souza
eb21727868 Use envy to parse environment variables 2020-03-13 14:12:20 +05:30
Ajeet D'Souza
41aabccb8f Add PWD hook for bash + fish 2020-03-13 07:09:21 +05:30