Skip to content

This is nvim plugin which will copy code into your markdown files

Notifications You must be signed in to change notification settings

lavixta/capturecodemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is nvim plugin to copy your code and paste to markdown file. I strongly suggest you to use this plugin with vimwiki as it will help you to take note of your code in you daily works easier

Requirement

Setup

Using packer.nvim

use {
  'lavixta/capturecodemd',
  requires = { {'nvim-telescope/telescope.nvim'} },
}

then you add your file path ( where you store all of your md files ):

 require("capturecodemd").setup({
 path ="your md path end with notes folder" --ex: /User/me/.config/mylibary/notes 
 })

Usage
Yank the code inside your nvim yank the code you want to copy yank code Then type ":Capturecode" or you can map it to make it more convient Then a Telescope appear and you select the file you want to paste into in the Telescope picker

telescope

If name of file you want to paste into does not available you can just type it into the telescope picker and it will create a new one

Then a commit message box appear and you can type your comment of the coppied code

comment

If you coppy the code outside your nvim. Just reapeat the step and specify type of your code (pyth:w) after wrtitting TODO

  • implement the taking note with cmp. To make note as completed suggestion when write code
  • Combine it with Vimwiki
  • Create a blog website with show off the note you have taken

About

This is nvim plugin which will copy code into your markdown files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published