Zsh-autocomplete: Cannot disable frecent dirs feature

Created on 30 Jul 2020  Â·  6Comments  Â·  Source: marlonrichert/zsh-autocomplete

Describe the bug

The readme says zstyle ':autocomplete:*' frecent-dirs off can be used to turn the frecent dirs feature off. However, that does not seem to work. Also, grep -r frecent . at commit 3c7e78daf32f19d3091c088d041942c545d208f1 does not find anything.

To Reproduce

Steps to reproduce the behavior:

# *Always* test with the following three steps:
$ cd "$(mktemp -d)"  # Create a temp dir and enter it
$ ZDOTDIR=$PWD HOME=$PWD zsh -df  # Start a subshell without config files
% zstyle ':autocomplete:*' frecent-dirs off
% source path/to/zsh-autocomplete.plugin.zsh
% echo |

The completion for echo will list frecent dirs.

Expected behavior

The zstyle ':autocomplete:*' frecent-dirs off setting will disable the frecent dirs feature.

Actual behavior

The feature is enabled.

Desktop

  • OS + distribution: Ubuntu 20.04
  • Zsh version: 5.8
  • Plugin version: 3c7e78daf32f19d3091c088d041942c545d208f1
Bug report

All 6 comments

Thanks for reporting. I know what causes this. It will be easy to fix.

@jcassee This should be fixed now on the dev branch. Please test. Oh, and note that there was a typo in the Readme: The setting is named recent-dirs (not frecent-dirs).

@marlonrichert Indeed, now works as advertised. Thanks!

Merged to master.

@jcassee It is now possible to individually disable any and all extra completions that zsh-autocomplete adds: https://github.com/marlonrichert/zsh-autocomplete/blob/master/README.md#disable-particular-completions

Nice! You are really putting in a lot of thought and effort. Thank you.

Was this page helpful?
0 / 5 - 0 ratings