~adigitoleo/vis-fzf-unicode

Search and insert unicode characters in vis
fbb82698 — adigitoleo 5 months ago
docs: Update README
7df7eb00 — adigitoleo 5 months ago
fix: Check for INSERT or REPLACE modes only
d7bf6fe0 — adigitoleo 5 months ago
feat: Register action instead of command

clone

read-only
https://git.sr.ht/~adigitoleo/vis-fzf-unicode
read/write
git@git.sr.ht:~adigitoleo/vis-fzf-unicode

You can also use your local clone with git send-email.

#fzf-unicode

Search and insert unicode characters in vis. Requires the fzf fuzzy search utility.

#Usage

Bind the .action member of the module to a key or key sequence in insert or replace mode:

local fzf_unicode = require('plugins/<path-to-fzf-unicode-plugin>')
-- replace <C-f> with your keybinding of choice
vis:map(vis.modes.INSERT, '<C-f>', fzf_unicode.action)

Search for the symbol by its LaTeX name. Hit <Enter> to insert the symbol only.

#Configuration

In your visrc.lua:

local fzf_unicode = require('plugins/<path-to-fzf-unicode-plugin>')

-- Change path to fzf binary (default: "fzf")
fzf_unicode.fzf_bin = "/usr/bin/fzf"

-- Change path to latex symbol table (must match format of provided table)
-- (default: "latex_symbols.txt" in the same directory as the plugin script)
fzf_unicode.latex_symbols = "path/to/latex_symbols.txt"

-- Add arguments to be passed to fzf (no arguments by default)
fzf_unicode.fzf_args = "--height=20%"

The mailing list for this repo is ~adigitoleo/vis-fzf-unicode-develop@lists.sr.ht. See also https://git-send-email.io/.