Zsh-autocomplete: history menu opens slow with large history file

Created on 31 Aug 2020  路  6Comments  路  Source: marlonrichert/zsh-autocomplete

Describe the bug


There is a considerable delay when opening the history menu with thousands of entries

To Reproduce

Steps to reproduce the behavior:
Have large zsh_history file (mine is 250k with 9000+ lines) and open history menu

# *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
% source path/to/zsh-autocomplete.plugin.zsh
% # Insert your steps here

Expected behavior


History menu opens without considerable delay

Actual behavior


History menu opens after a considerable delay

Desktop

  • OS + distribution: Arch Linux 5.4.61-1-lts
  • Zsh version: 5.8
  • Plugin version: cb01fad1c99b56183fedb6fc43b096f6a9e92e05

Additional context

Bug report

Most helpful comment

Available now on master.

All 6 comments

@windowswithoutborders I pushed in a fix (plus a bunch of other history-related features) on the dev branch. Want to give it a try?

Is there a quick way to unbind the up arrow from being taken by zsh-autocomplete?

On the dev branch I get .autocomplete.patch:37: maximum nested function level reached; increase FUNCNEST?

Is there a quick way to unbind the up arrow from being taken by zsh-autocomplete?

Instructions for disabling automatic keybinds can be found in the Readme: https://github.com/marlonrichert/zsh-autocomplete/blob/master/README.md#advanced-choose-your-own-key-bindings

On the dev branch I get .autocomplete.patch:37: maximum nested function level reached; increase FUNCNEST?

I'm not seeing that. Can you open a separate issue for it, please?

@daxmc99

just tried out the dev branch. can confirm it is perfectly snappy on my end. thanks! This is shaping up to be a must have zsh extension as far as I'm concerned.

Available now on master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daxmc99 picture daxmc99  路  3Comments

jcassee picture jcassee  路  6Comments

jcassee picture jcassee  路  7Comments

pcjmfranken picture pcjmfranken  路  5Comments

g4cm4n picture g4cm4n  路  6Comments