How to open neovim in org capture? #845
-
|
I want to have a system level keybinding to open a neovim window in org capture with a certain template selected. I looked through the code of nvim-orgmode a few months ago and wasn't able to figure it out. Any pointers would be much appreciated. Thank you 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I actually added this for me recently since I needed to capture some stuff on the fly.
#!/bin/sh
kitty nvim -c "autocmd BufEnter * only" -c "lua require('orgmode').capture:open_template_by_shortcut('t')"It opens up
nt() {
nvim -c "autocmd BufEnter * only" -c "lua require('orgmode').capture:open_template_by_shortcut('t')"
}If i'm in the terminal and I need to do something, I just do Hope this helps. |
Beta Was this translation helpful? Give feedback.
I actually added this for me recently since I needed to capture some stuff on the fly.
I have 2 things:
/usr/local/binwith this content:It opens up
kittyterminal window, starts nvim and selects a default capture template by my choice. Then I run this withrofiwhen needed. Once the capture is finished it closes everything out.If i'm in the terminal and I need to do somet…