Release v0.11
[0.11] 2020-04-09
Added
-
New provider
:Clap grep2
with cache and dynamic refresh support.grep2
is much faster than the previousgrep
provider as it'll reuse the cached contents from previous run and do the filtering with dynamic results.grep2
is not a typical grep tool but a fuzzy filter tool, for it tries to collect all the output and then filtering on the results.grep
is merely to dispatch the rg command and show the results returned by rg directly, no fuzzy filter actually. (#383) -
Double bang version of
:Clap!!
, shortcut for:Clap [provider_id_or_alias] +no-cache
, e.g.,:Clap!! files ~
is same to:Clap files +no-cache ~
.
Changed
- Change
ITEMS_TO_SHOW
from100
to 30,UPDATE_INTERVAL
from 200ms to 300ms. A normal screen can only show about 50 rows, 30 rows should look like the same to 100 rows as the default clap window size is 1/3 of the screen height, but it reduces the overhead of communication between vim and maple significantly. - Add
using_cache
status tog:clap_forerunner_status_sign
, the default sign is*
, which indicates clap is using the cached file which could be outdated. Use+no-cache
to run without cache and also rebuild the cache accordingly, e.g.,:Clap files +no-cache /
. - The cache directory name changed to
vim.clap
fromclap_cache
in your systemtemp_dir
.
Improved
- [perf]Try using the cached file when rerunning the same command under the same directory. The cache directory uses https://doc.rust-lang.org/std/env/fn.temp_dir.html which will be purged when you restart the computer. Or you can use
maple cache --list
to list the current cached info.
Fixed
has('gui_running')
does not work for neovim. #378- Wrong Vim job stop API usage.(#377)
- #371 (comment)
- The postponed preview action can be triggered when the main window is closed. #382