Commit Graph

37 Commits

Author SHA1 Message Date
Blonteractor
2c2286cea2
Added better output in query when already in the matched directory (#463) 2023-01-09 15:55:33 +05:30
Ajeet D'Souza
0f3ae894f1 Use formatter from nightly 2022-09-16 22:24:46 +05:30
Ajeet D'Souza
e8a1e11848 Fix remove not throwing errors 2022-09-07 11:56:38 +05:30
Ajeet D'Souza
e4aa0692a4 Return exit code from main 2022-09-07 04:19:45 +05:30
Ajeet D'Souza
f830fbd670 Add minimum supported version for Fish 2022-07-01 15:03:30 +05:30
Ajeet D'Souza
58430d8c54 Add z completions for zsh (#309) 2021-12-05 14:51:32 +05:30
Ajeet D'Souza
3e03ccccd6 Use better defaults for fzf 2021-12-02 00:55:33 +05:30
Ajeet D'Souza
a60a305279 Fix formatting 2021-09-13 13:31:58 +05:30
Ajeet D'Souza
02029aef98 Replace make with xtask 2021-09-13 03:06:21 +05:30
Ajeet D'Souza
11535a3fb6 Fix lints 2021-08-31 11:54:39 +05:30
Ajeet D'Souza
9ef2ef5a6d Ignore directories with \r and \n in path 2021-05-27 11:39:57 +05:30
Ajeet D'Souza
22a9f6c32d
Remove deleted entries if not accessed in the last 90 days (#213) 2021-05-17 21:46:42 +05:30
Ajeet D'Souza
0eb4418fd6
_ZO_EXCLUDE_DIRS should default to "$HOME" (#194) 2021-04-29 01:24:25 +05:30
Ajeet D'Souza
1a5d14a825
Handle write errors gracefully (#143) 2021-01-30 03:06:18 +05:30
Ajeet D'Souza
dcdcec4a78
Use zero copy deserialization (#138) 2021-01-08 20:45:47 +05:30
Ajeet D'Souza
5c3af59ba6 Add interactive query/remove and import 2020-10-27 00:11:40 +05:30
Ajeet D'Souza
20d62524bf Improve error handling on Xonsh 2020-10-20 23:29:28 +05:30
Ajeet D'Souza
aca2477b68 Split crates 2020-10-18 14:52:13 +05:30
Ajeet D'Souza
5cfcd79c39 Support globs in _ZO_EXCLUDE_DIRS 2020-09-16 02:50:58 +05:30
Ajeet D'Souza
f4525db02f Rewrite init commands 2020-09-16 02:21:28 +05:30
Anthony Ruhier
d49a2c1495 Add _ZO_RESOLVE_SYMLINKS to resolve or not symlinks (#85)
Fixes #80.

Disable by default the symlinks resolution, making a symlink and its
target 2 different entries in the database. Adds the
_ZO_RESOLVE_SYMLINKS env variable to re-enable it.

Example:
  /tmp/foo-target is a directory
  /tmp/foo symlinks to /tmp/foo-target

With _ZO_RESOLVE_SYMLINKS=1, `z add /tmp/foo` adds `/tmp/foo-target` in the database.

With _ZO_RESOLVE_SYMLINKS=0 or unset, `z add /tmp/foo` adds `/tmp/foo` in the database.
2020-07-03 12:12:47 +05:30
Ajeet D'Souza
19bac0b31a Add option to list all query results 2020-06-28 00:11:43 +05:30
Ajeet D'Souza
e8eb685e58 Add _ZO_FZF_OPTS to specify fzf options 2020-06-28 00:11:43 +05:30
Ajeet D'Souza
9b056fb58c Removed help menus for z and zri functions 2020-06-28 00:10:35 +05:30
Stavros Korokithakis
1ce74baf3b
Increase the _ZO_MAXAGE default (#84) 2020-06-08 13:14:36 +05:30
Ajeet D'Souza
eaf6ef5900 Minor refactor 2020-05-25 00:39:27 +05:30
Ajeet D'Souza
edf3c68a7c Avoid long variable names 2020-05-16 18:23:38 +05:30
Ajeet D'Souza
208a6a9eb8 Convert paths to String 2020-05-16 17:31:11 +05:30
Ajeet D'Souza
0c1143fe34 Remove streaming serde for database 2020-05-15 18:13:24 +05:30
Ajeet D'Souza
9d0222383f Style nits 2020-03-30 06:49:41 +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
057ed96c0a Refactor DB architecture 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
d4fb1a05cf Manually parse environment variables 2020-03-30 03:32:21 +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
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