This pull request implements some features related to zoxide:
Make :z behave more like zoxides z command: in the first place, act like :cd, only if this behaviour fails, query the zoxide database and naviagate to the found match (resolves #240)
Introduced an opt in feature that updates the zoxide database after every directory change (notably also with manual navigation or :cd). The configuration option is called zoxide_update. (resolves #459)
Support for arguments passed to the zoxide interactive (:zi) command (resolves #395)
Support for command aliases with arguments (note: only aliases that do not contain spaces support arguments) (resolves #452)
One question related to the debug assertion introduced here: this is required for the zoxide update to work correctly, but will this always hold? I am confident that this holds when coming from change_directory::change_directory, but the function is also called from open_file::open, where I am not entirely sure.
This pull request implements some features related to zoxide:
:z
behave more like zoxidesz
command: in the first place, act like:cd
, only if this behaviour fails, query the zoxide database and naviagate to the found match (resolves #240):cd
). The configuration option is calledzoxide_update
. (resolves #459):zi
) command (resolves #395)One question related to the debug assertion introduced here: this is required for the zoxide update to work correctly, but will this always hold? I am confident that this holds when coming from
change_directory::change_directory
, but the function is also called fromopen_file::open
, where I am not entirely sure.