Replies: 4 comments 7 replies
-
I'm looking for the same thing (but for lua)! |
Beta Was this translation helpful? Give feedback.
-
You can create a user command that calls that script on the current file. Here's an example. vim.api.nvim_create_user_command('OrgTangle', function()
local cmd = string.format('terminal org-babel-tangle.py %s', vim.fn.expand('%'))
vim.cmd(cmd)
end, {buffer = true}) |
Beta Was this translation helpful? Give feedback.
-
This is cool. I tried it, and it works. Thank you for posting this :-) P.S. |
Beta Was this translation helpful? Give feedback.
-
After some playing with |
Beta Was this translation helpful? Give feedback.
-
Is it possible to export the code segments of a .org file to its own file? For example, can I export Python snippets throughout a file called README.org to a file called config.py?
Update: I found a Python script called org-babel-tangle.py that does tangling from the command line so I don't need to use Emacs. I'm still wondering if there's any way to implement it as a Neovim plugin, though.
Beta Was this translation helpful? Give feedback.
All reactions