Closed neckhair closed 8 years ago
This is already possible - put this in your shell's dotfile:
alias markoff="open -a Markoff"
OK, thanks @frou. That solves it for me. An included "binary" would nice anyway ;-)
It would be nice if you could specify the file to open. Do we know if this is possible?
@ajwhite You would do that with open -a Markoff filename.md
.
This is now in my init.vim
:
augroup Markdown
autocmd FileType markdown nnoremap <buffer> <leader>m :call OpenMarkoff()<CR>
autocmd FileType markdown :call OpenMarkoff()<CR>
augroup END
function OpenMarkoff()
if (&diff ==# 0)
exe '! open -a Markoff '.expand('%')
endif
endfunction
What I'd really like is a way to tell Markoff to open at a specific line number (which I would set to be the current line Neovim).
Even better would be a clean way to have Markoff "open" STDOUT
It would be very nice to launch Markoff directly from the command line (
markoff file.md
).