yujinyuz / gitpad.nvim Goto Github PK
View Code? Open in Web Editor NEWminimal neovim plugin for taking down notes for git projects, branch, etc.
Home Page: https://yujinyuz.github.io/gitpad.nvim/
License: MIT License
minimal neovim plugin for taking down notes for git projects, branch, etc.
Home Page: https://yujinyuz.github.io/gitpad.nvim/
License: MIT License
This plugin looks really helpful !
I'm getting an issue though when trying to toggle any gitpad (project, branch, ..)
Error:
[gitpad.nvim] Unable to create file: /home/mattydebie/.local/share/nvim/gitpad/xxx/gitpad.md
E5108: Error executing lua: ...e/.local/share/nvim/lazy/gitpad.nvim/lua/gitpad/init.lua:154: Vim:E32: No file name
stack traceback:
[C]: in function 'edit'
...e/.local/share/nvim/lazy/gitpad.nvim/lua/gitpad/init.lua:154: in function 'open_window'
...e/.local/share/nvim/lazy/gitpad.nvim/lua/gitpad/init.lua:187: in function 'toggle_window'
...e/.local/share/nvim/lazy/gitpad.nvim/lua/gitpad/init.lua:194: in function 'toggle_gitpad'
...e/mattydebie/.config/nvim/lua/madebit/plugins/gitpad.lua:10: in function <...e/mattydebie/.config/nvim/lua/madebit/plugins/gitpad.lua:9>
Config in lazy:
return {
'yujinyuz/gitpad.nvim',
config = function()
require('gitpad').setup()
end,
keys = {
{
'<leader>pp',
function()
require('gitpad').toggle_gitpad()
end,
desc = 'gitpad project',
},
{
'<leader>pb',
function()
require('gitpad').toggle_gitpad_branch()
end,
desc = 'gitpad branch',
},
-- Daily notes
{
'<leader>pd',
function()
local date_filename = 'daily-' .. os.date('%Y-%m-%d.md')
require('gitpad').toggle_gitpad({ filename = date_filename })
end,
desc = 'gitpad daily notes',
},
},
}
Terminal emulator: kitty
Terminal: zsh
Neovim version: 0.9.5
Thank you for this plugin! It is awesome and exactly what I want. :)
I have a few ideas that I believe would be great additions:
Thank you again.
This plugin is amazing... just what I needed!
One thing I find myself wanting is to create default_text dynamically via a function. Is this something you would consider? allowing to define as a function and then providing function parameters of the filename and also would be nice if could provide the type of gitpad (project, branch, daily note, or current file) so that we can do some conditional logic based on the type of gitpad. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.