Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adigitoleo/vis-fzf-unicode
- Owner: adigitoleo
- License: 0bsd
- Created: 2022-01-31T12:26:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T08:00:43.000Z (6 months ago)
- Last Synced: 2024-05-05T18:39:00.521Z (6 months ago)
- Topics: vis-editor
- Language: Lua
- Homepage: https://sr.ht/~adigitoleo/vis-fzf-unicode
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).