Skip to content
Discussion options

You must be logged in to vote

Ah sorry, didn't notice that part. If you really want, you can use API to do this. There is refile function, and you can do something like this:

vim.keymap.set('n', '<leader>odn', function()
  local org = require('orgmode.api')
  local source= org.current():get_closest_headline()
  local destination = org.load('/full/path/to/done.org')
  org.refile(source, destination)
end, { desc = 'Refile to done.org' })

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kristijanhusak
Comment options

Answer selected by Laytongentleman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants