Commit Graph

43 Commits

Author SHA1 Message Date
Ajeet D'Souza
39f5aaa308 Formatting 2023-03-01 13:55:22 +05:30
Ajeet D'Souza
0f3ae894f1 Use formatter from nightly 2022-09-16 22:24:46 +05:30
Ajeet D'Souza
e4aa0692a4 Return exit code from main 2022-09-07 04:19:45 +05:30
Ajeet D'Souza
17365710af Copy owner from previous database file (#364) 2022-03-09 19:59:39 +05:30
Ajeet D'Souza
dc64d912ab Reuse values in shell tests 2022-03-07 12:06:04 +05:30
Ajeet D'Souza
b3366dd5b6 Upgrade to clap v3.1.0 2022-02-17 04:16:45 +05:30
Ajeet D'Souza
6bf966f18d
Upgrade to clap beta5 (#287) 2021-10-21 00:01:06 +05:30
Ajeet D'Souza
a60a305279 Fix formatting 2021-09-13 13:31:58 +05:30
Ajeet D'Souza
d33bfd111f
Add tests for completions (#204) 2021-05-07 13:04:44 +05:30
Ajeet D'Souza
1075ba5a50
Speed up imports (#203) 2021-05-04 11:45:28 +05:30
Ajeet D'Souza
6d3cb4bc99 Rename variables 2021-05-04 02:42:43 +05:30
XyLyXyRR
ef63b555a0
Add shell completions (#200) 2021-05-04 02:33:23 +05:30
Ajeet D'Souza
1a5d14a825
Handle write errors gracefully (#143) 2021-01-30 03:06:18 +05:30
Ajeet D'Souza
eeaf8af202
Forcibly disable backtraces (#130) 2020-12-13 11:15:01 +05:30
Ajeet D'Souza
c82ef66fac Release v0.5.0 2020-10-31 00:22:09 +05:30
Ajeet D'Souza
5c3af59ba6 Add interactive query/remove and import 2020-10-27 00:11:40 +05:30
Ajeet D'Souza
bc17c25cf6 Clobber conflicting definitions in shells 2020-10-25 01:01:18 +05:30
Cole Helbling
c0a1a78c29
fix init script generation (#112) 2020-10-20 23:33:38 +05:30
Ajeet D'Souza
aca2477b68 Split crates 2020-10-18 14:52:13 +05:30
Ajeet D'Souza
208a6a9eb8 Convert paths to String 2020-05-16 17:31:11 +05:30
Ajeet D'Souza
0c3a8a79c3 Remove compatibility with v0.2.x databases 2020-05-04 01:09:01 +05:30
Ajeet D'Souza
b21dbefa22 Don't show error if fzf exits gracefully 2020-04-05 22:31:32 +05:30
Cole Helbling
1e333dfb33
Show commit hash in version number 2020-04-01 03:24:45 +05:30
Ajeet D'Souza
057ed96c0a Refactor DB architecture 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
890185176e Store paths as PathBuf rather than String 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
03e8cd47a2 Fix exit codes in z and fzf 2020-03-17 12:34:53 +05:30
Ajeet D'Souza
a5369beaa4 Prepare for release v0.2.1 2020-03-16 00:08:28 +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
Ajeet D'Souza
9c8e8da71a Refactor + support PWD hook for zsh 2020-03-13 06:19:37 +05:30
Cole Helbling
4596716cc8
Migrate from z database (#29)
Migrate from `z` database

The new `migrate` subcommand takes in a path to the old `z` database and
naively parses it to add to the database. The command will fail if the user already has a database, so as to prevent tainting it in any way.
2020-03-13 05:15:06 +05:30
Ajeet D'Souza
65b37082b6 Add DB save to Drop trait 2020-03-12 23:07:50 +05:30
Ajeet D'Souza
e847847713 Fix spacing in z output 2020-03-12 01:04:52 +05:30
Ajeet D'Souza
ba5efffd24 Merge branch 'master' into v0.2.0 2020-03-11 04:42:28 +05:30
Ajeet D'Souza
15b30206df Add 'z -' capability to bash and zsh 2020-03-11 01:58:40 +05:30
Ajeet D'Souza
34ab8f3f8b Add --no-define-aliases flag to zoxide init 2020-03-11 01:23:49 +05:30
Ajeet D'Souza
f0c5e28fd7 * Add init subcommand for bash, fish, and zsh
* Migrate errors from failure to anyhow
* Migrate argument parsing from clap to structopt
* Empty z command now goes to $HOME
* DB updates are now atomic and isolated
2020-03-11 00:14:50 +05:30
Ajeet D'Souza
d28d566149 Improve query print dialog 2020-03-07 22:53:13 +05:30
Ajeet D'Souza
784ed10aad Add aging algorithm 2020-03-06 23:13:32 +05:30
Ajeet D'Souza
68a426216d Initial commit 2020-03-05 20:06:58 +05:30