Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 3.01 KB

index.org

File metadata and controls

77 lines (64 loc) · 3.01 KB

Nvim Orgmode

Nvim orgmode is a clone of Emacs Orgmode for Neovim 0.10.0+. It aims to be a feature-complete implementation of Orgmode features in Neovim.

Online version of this documentation is available at https://nvim-orgmode.github.io.

To view this documentation offline in Neovim, run :Org help. More info in Globals and commands section.

Quick start

  • Install with lazy.nvim:
    {
      'nvim-orgmode/orgmode',
      event = 'VeryLazy',
      config = function()
        -- Setup orgmode
        require('orgmode').setup({
          org_agenda_files = '~/orgfiles/**/*',
          org_default_notes_file = '~/orgfiles/refile.org',
        })
      end,
    }
        
  • Capture youf first note with <leader>oc
  • Open up the prompt for agenda with <leader>oa

For more details about the installation and usage, check Installation page.

To see all configuration options, check Configuration page.

Getting started with orgmode

To get a basic idea how Orgmode works, check our hands-on tutorial.

You can also check this screencast from @dhruvasagar that demonstrates how the similar Orgmode clone vim-dotoo works.

https://www.youtube.com/watch?v=nsv33iOnH34

API docs

Nvim-orgmode exposes a Lua API that can be used to interact with the orgmode. To view it, check orgmode-api.txt or do :h OrgApi in Neovim.

Globals and commands

There are 2 additional ways to interact with Orgmode:
  1. Through the :Org command
  2. Through Org Lua global variable

List of available actions:

  • :Org help - Open this documentation in new tab, set working directory to the docs folder for the tab to allow browsing
  • :Org helpgrep - Open search agenda view that allows searching through the documentation
  • :Org agenda {type?} - Open agenda view by the shortcut, for example :Org agenda M will open tags_todo view. When type is omitted, it opens up Agenda view.
  • :Org capture {type?} - Open capture template by the shortcut, for example :Org capture t. When type is omitted, it opens up Capture prompt.
  • :Org install_treesitter_grammar - Install the treesitter grammar for Orgmode. If installed, prompt to reinstall. Grammar is installed automatically on first run, but this is useful in case when there are issues with the grammar.

All of the commands above can be executed through the global Lua Org variable. Examples:

  • Org.help()
  • Org.helpgrep()
  • Org.install_treesitter_grammar()
  • Org.agenda() - Opens agenda prompt
  • Org.agenda.m() - Opens tags view
  • Org.capture() - Opens capture prompt
  • Org.capture.t() - Opens capture template for t shortcut