Module lua.nd.actions

Expose actions to neovim.

Some of the telescope actions implement these to fill lists. If you're looking to implement some UI around this yourself you should use these directly. If you just want to zoom through your notes use the UI provided by telescope.

Functions

jump () Jump to a link under cursor.
new () Create a new note.
gather () Force gathering of notes asynchronously.
list () List all notes.
notes_with_tag (tag) List all notes with a specific tag.
tags () List all tags
tags_in () List all tags in the current note.
links_to_note () List all links to the current open note.
links_from_note () List all links from the current open note to others.
sync_links () Sync links from the current note
sync_all_links () Sync links of all notes


Functions

jump ()
Jump to a link under cursor. Uses vim expansion to get the current word. Opens the target with :e $target
new ()
Create a new note. Asks for a title, uses the template in settings for initial content.
gather ()
Force gathering of notes asynchronously.
list ()
List all notes.

Returns:

    table: A table/list of note objects
notes_with_tag (tag)
List all notes with a specific tag.

Parameters:

  • tag

Returns:

    table: A table/list of note objects
tags ()
List all tags

Returns:

    table: A table/list of tags
tags_in ()
List all tags in the current note.

Returns:

    table: List of tags
links_to_note ()
List all links to the current open note. Also syncs the notes, just to be sure.

Returns:

    table: List of notes
links_from_note ()
List all links from the current open note to others.

Returns:

    table: A list of notes
sync_links ()
Sync links from the current note
sync_all_links ()
Sync links of all notes
generated by LDoc 1.4.6 Last updated 2021-12-19 19:09:44