Forked off from https://github.com/lyz-code/telescope-orgmode.nvim with custom hacky extensions
Go to file
2022-11-02 01:26:30 +01:00
lua Rename repo 2022-11-02 00:55:26 +01:00
LICENSE Add MIT LICENSE 2022-11-02 00:41:49 +01:00
README.md Add README.md 2022-11-02 01:26:30 +01:00

telescope-orgmode.nvim

Integration for orgmode with telescope.nvim.

Demo

TODO

Setup

You can setup the extension by doing:

require('telescope').load_extension('orgmode')

To replace the default refile prompt:

vim.api.nvim_create_autocmd('FileType', {
  pattern = 'org',
  group = vim.api.nvim_create_augroup('orgmode_telescope_nvim', { clear = true })
  callback = function()
    vim.keymap.set('n', '<leader>or', require('telescope').extensions.orgmode.refile_heading)
  end,
})

Available commands

:Telescope orgmode search_headings
:Telescope orgmode refile_heading

Available functions

require('telescope').extensions.orgmode.search_headings
require('telescope').extensions.orgmode.refile_heading