Commit Graph

24 Commits

Author SHA1 Message Date
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