Modern performant fuzzy picker, tree-sitter highlighting, and more, for both Vim and NeoVim
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 4 years ago
check-release
command, you can use maple check-release --download
to download the latest release binary to bin
directory. And :Clap install-binary!
will run this command when possible. (#410)job(cmd)
is a String, the path containing spaces could be problematic on Windows(GVim). Use List instead. (#407)extracted_fzy
crate is incorrect. The pure Python fzy impl is consistent with the original fzy C implementation. (#409)Published by github-actions[bot] over 4 years ago
:Clap proj_tags
for project-wide tags.(#391):Clap files +name-only
to filter the file name only instead of the full file path. Require you have built the Python dynamic module or uses in the cached mode. (#389)action
property, you can delete the buffer in :Clap buffers
using the action dialog triggered by <S-Tab>
. (#396):Clap providers
.:Clap tags
will filter the tag name column only, same with :Clap proj_tags
....
to ..
for displaying one more useful char.ClapSearchText
highlight group misses some attributes. #390--winwidth
option, fix the unsuitable truncation for long matched lines.Published by github-actions[bot] over 4 years ago
--content-filtering
in maple. You can use :Clap files +name-only ~
to filter the file name instead of full file path, but you can only use it when clap is using the cached tempfile inside vim.grep2
will not match the file path by default. (#385)ITEMS_TO_SHOW
is fixed at the moment, only 30 rows can be shown correctly for dyn filter. https://github.com/liuchengxu/vim-clap/pull/385#issuecomment-611601076
Published by github-actions[bot] over 4 years ago
New provider :Clap grep2
with cache and dynamic refresh support. grep2
is much faster than the previous grep
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 ~
.
ITEMS_TO_SHOW
from 100
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.using_cache
status to g: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 /
.vim.clap
from clap_cache
in your system temp_dir
.maple cache --list
to list the current cached info.has('gui_running')
does not work for neovim. #378
Published by github-actions[bot] over 4 years ago
init
for Clap grep
, fill the content when query is empty for git repo.(#347)g:clap_popup_border
for adding the border for the preview popup. (#349)Clap lines
with ClapLinesBufname
and ClapLinesNumber
group added.lazy_static
for the icons, more info. Thanks to @ImmemorConsultrixContrarie .Clap filer
always selects the first entry when you narrow down and navigate the list. (#348)Published by github-actions[bot] over 4 years ago
g:clap_insert_mode_only
to disable the feature of other mode, use the insert mode only. (#335)g:clap_providers_relaunch_code
(@@
default). You can input @@
or use C-L to invoke :Clap
to reselect another provider at any time.(#328)Clap filer
.blines
subcommand in maple for always prepending the line number even there are 1M+ lines.:Clap grep ++query=@visual
to search the visual selection. (#336)Clap grep
, Clap blines
, Clap tags
, Clap marks
and Clap jumps
.<Del>
work in vim's popup.g:clap_popup_cursor_shape
from '|'
to ''
for using the new block-style cursor in vim's popup By @Bakudankun. (#340)Published by github-actions[bot] over 4 years ago
let g:clap_theme = 'atom_dark'
by @GoldsteinE.:Clap search_history
by @markwu. (#289):Clap maps
by @markwu. (#293)g:clap_project_root_markers
for specifing how vim-clap intentify a project root. Previously only the git-based project is supported, i.e., g:clap_project_root_markers = ['.git', '.git/']
. The default value of g:clap_project_root_markers
is ['.root', '.git', '.git/']
you can add .root
file under the directory you want to the project root.(#290)yanks
, buffers
, files
, git_files
and history
provider.ClapSelectedSign
and ClapCurrentSelectionSign
for the sign texthl
, they are linked to WarningMsg
by default.:Clap blines
.<C-d>
/<C-u>
and see ftplugin/clap_input.vim
.ClapDefaultPreview
for the light theme.<nowait>
to neovim's open action mappinngs.filer
to .&foldcoloumn
to 0 for neovim by default.g:clap_popup_input_delay
from 200ms to 100ms, use the Rust binary.clap_tags
syntax due to https://github.com/liuchengxu/vista.vim/pull/231.<Esc>
won't exit clap but enter the normal mode.#322
Published by github-actions[bot] over 4 years ago
:Clap filer
for ivy-like file explorer, this also introduces a new type of clap provider: stdio-based RPC provider. (#272):Clap help_tags
by @markwu. (#248)maple version
to get the detailed maple info and include it in :Clap debug
.(#262)g:clap_forerunner_status_sign
and deprecate g:clap_forerunner_status_sign_done
and g:clap_forerunner_status_sign_running
.source_type
for non-pure-async provider.(#270)g:ClapPrompt
which is Funcref to give more control of the prompt of clap, please see https://github.com/liuchengxu/vim-clap/issues/134#issuecomment-578503522 for the usage.(#265)init
property for each provider, which will be invoked when initializing the display window.(#280)['⠋', '⠙', '⠚', '⠞', '⠖', '⠦', '⠴', '⠲', '⠳', '⠓']
.' %spinner%%forerunner_status%%provider_id%:'
.coc_pairs
.Published by github-actions[bot] over 4 years ago
:Clap loclist
for listing the entries of current window's location list.(#244):Clap providers
for listing all the providers by splitting out the previous anonymous _
provider.(#242)g:clap_layout
to control the size and position of clap window. Now the default behaviour has been changed to window relative. If you prefer the previous behaviour, use let g:clap_layout = { 'relative': 'editor' }
.Clap files
and Clap git_files
.(#258)g:clap_theme
for changing the clap theme easily, the theme material_design_dark
is shipped by default.#259
maple
use subcommand instead of option for the various function, this refactor also makes adding new features easier.(#255):Clap debug
and require it in the bug report. (#241)Published by github-actions[bot] almost 5 years ago
history
provider.:Clap install-binary!
for buliding the binary locally or otherwise downloading the prebuilt binary.blines
provider so that you can jump back using <C-O>
.(#227)<PageDown>
and <PageUp>
keybindings. (#232)Published by github-actions[bot] almost 5 years ago
Since this release the binary will be provided via the GitHub Action service.
maple.exe
for windows, maple
for the other platforms.maple.exe
or maple
to bin/
.There will be a script to automate this process, now you have to do this job on your own.
syntax
property for provider to make enable the syntax highlight easier.(#217)g:clap_disable_bottom_top
( 0
by default) for disabling wrapping top-to-bottom when pressing ctrl-j/ctrl-k at the bottom/top of the results.:Clap buffers
.:Clap git_files
.<C-U>
mapping for clearning the input.Clap blines
provider in case of the buffer has 1 million lines.(#210)job
.(#185)Published by liuchengxu almost 5 years ago
The major feature of 0.3 is the performance problem has been soloved, see #140.
:Clap quickfix
by @kit494way.:Clap git_diff_files
by @kit494way.:Clap registers
. If the content of some register is too much to fit on one line, then it will be shown in the preview window, otherwise do nothing.:Clap tags
.:call clap#helper#build_all()
to build the optional Rust dependency.syntax
instead of filetype
for the highlight as setting filetype
can start some unexpected filetype related services.Published by liuchengxu almost 5 years ago
:Clap registers
.:Clap command
.:Clap
.:Clap jumps
.g:clap_spinner_frames
.g:clap_prompt_format
.g:clap_enable_icon
for configuring the icon functionality globally.g:clap_popup_cursor_shape
for configuring the mocked cursor shape.g:clap_fuzzy_match_hl_groups
for configuring the color of fuzzy matched items easier.clap#helper#build_maple()
for building maple easily in vim. Use :call clap#helper#build_maple()
to install maple inside vim.:Clap grep
.:Clap blines
.:Clap files
and :Clap grep
.:Clap grep
.(#150)call g:clap.provider.on_exit()
just before silent doautocmd <nomodeline> User ClapOnExit
in clap#_exit()
.jumps
to make the newer jump appear first.:Clap lines
.:Clap history
.:Clap yanks
thanks to @ratheesh.:Clap
listing all the builtin providers, thanks to @wookayin implementing the sink of it.:Clap marks
and :Clap jumps
.buffers
provider source to make it look more fancy.(#71)fzy
and fzf
. Every provider could run async if you have one of the external filters installed.g:clap_open_action
for configuring the default keybindings.:h g:clap_disable_run_rooter
if you don't like this behavior.:h g:clap_search_box_border_style
.(#85)g:clap_provider_grep_enable_icon
for disabling the icon drawing in :Clap grep
.g:clap_provider_grep_opts
for globally configuring the used command line options of rg, thanks to @Olical.:Clap files --hidden
.:Clap files ++finder=[YOUR FINDER] [FINDER ARGS]
.Various fixes.
g:clap_selected_sign_definition
to g:clap_selected_sign
.g:clap_current_selection_sign_definition
to g:clap_current_selection_sign
.g:clap_disable_run_from_project_root
to g:clap_disable_run_rooter
.:Clap grep <cword>
is changed to :Clap grep ++query=<cword>
.g:clap.context
and g:clap.provider.args
.