Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adigitoleo/vis-fzf-unicode

[MIRROR] Search and insert unicode characters in vis
https://github.com/adigitoleo/vis-fzf-unicode

vis-editor

Last synced: 27 days ago
JSON representation

[MIRROR] Search and insert unicode characters in vis

Awesome Lists containing this project

README

        

# fzf-unicode

Search and insert unicode characters in [vis](https://github.com/martanne/vis).
Requires the [fzf](https://github.com/junegunn/fzf) fuzzy search utility.
To regenerate the symbol list use `julia make.jl`, which requires [Julia](https://julialang.org/).

## Usage

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

```
local fzf_unicode = require('plugins/')
-- replace with your keybinding of choice
vis:map(vis.modes.INSERT, '', fzf_unicode.action)
```

Search for the symbol by its LaTeX name. Hit `` to insert the symbol only.

## Configuration

In your `visrc.lua`:

```
local fzf_unicode = require('plugins/')

-- 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%"
```

Please send patches/comments to my [public inbox](https://lists.sr.ht/~adigitoleo/public-inbox).