GithubHelp home page GithubHelp logo

yujinyuz / gitpad.nvim Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 4.0 20 KB

minimal neovim plugin for taking down notes for git projects, branch, etc.

Home Page: https://yujinyuz.github.io/gitpad.nvim/

License: MIT License

Lua 100.00%
neovim neovim-plugin note-taking

gitpad.nvim's Introduction

gitpad.nvim's People

Contributors

gitmurf avatar krehwell avatar sudo-tee avatar yujinyuz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sudo-tee gitmurf

gitpad.nvim's Issues

Vim:E32: No file name

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

feature: bindings for checkboxes

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:

  • A binding to create a checkbox on the current line
  • A binding to complete a checkbox on the current line (if it exists)
  • Two bindings to jump to the previous and next daily note

Thank you again.

Can default_text have option to be a function? And then pass the filename as a parameter we can use?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.