||8 months ago|
|autoload||8 months ago|
|doc||8 months ago|
|ftdetect||8 months ago|
|plugin||8 months ago|
|test||8 months ago|
|LICENSE||1 year ago|
|README.md||8 months ago|
|screenshot.png||9 months ago|
(This is an actively maintaned fork of
ihsanturk/neuron.vim that works with newer versions of
neuron and changes basically everything, with extra features, commands and different options.)
Plug 'junegunn/fzf.vim' Plug 'fiatjaf/neuron.vim'
- Open a zettel with
nvimit should a. Show a virtual floating text on the first line saying how many backlinks it has. b. Show a virtual title for each linked zettel in the body.
gzZto show a list of backlinks. Selecting one will navigate to it.
gzzto show a list of all zettels, you can search their titles. Selecting one will navigate to it.
gzito show the same
gzzlist. Selecting one will insert a link to it right in front of the your cursor.
gzIinstead will insert a folgezettel link (
- If you put your cursor on top of a link to another zettel and press
gzoyou'll navigate to that.
gzlwill insert a link to the previous zettel you visited.
gzLwill do the same but with a folgezettel.
- To go back after editing another zettel type
gzurepeatedly multiple times will cycle between the two last visited zettels.
- If you want to go back multiple times in the history of visited zettels, use
gzPwill go forward).
- To create a new blank zettel, type
- If you type
gzNyou will create a new zettel using the current word under the cursor as its title. If you're in visual selection mode
gzNwill instead use the selected text (only the first line if there are more than one selected).
gzNwill always replace the selected text or current word with a link to the newly-created zettel.
gzz, but instead it searches the content of the zettels, not only the title. For this it calls the external command
neuron.vimuses a custom function to generate ids for new zettels that it creates, bypassing
neuron newcompletely. By default it generates a random hex string of 8 characters. You can hook into the process by defining a function
.vimrcthat takes an optional
titleargument. For example:
To make it use the title as kebab-cased ID (when using
func! g:CustomNeuronIDGenerator(title) return substitute(a:title, " ", "-", "g") endf
g:CustomNeuronIDGeneratoris not defined in your
.vimrcor returns an empty string,
neuron.vimwill fall back to generating random IDs.