Coder Social home page Coder Social logo

moyiz / git-dev.nvim Goto Github PK

View Code? Open in Web Editor NEW
83.0 83.0 1.0 71 KB

Open remote git repositories in the comfort of Neovim.

License: BSD 3-Clause "New" or "Revised" License

Lua 96.71% Makefile 3.29%
git neovim neovim-plugin nvim nvim-lua nvim-plugin

git-dev.nvim's People

Contributors

moyiz 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  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

snoweuph

git-dev.nvim's Issues

Bug: Parser fails with GitLab URL

The following URL fails: https://gitlab.com/infai/rdf-diagram-framework/-/blob/typeScriptRewrite/rdf-diagram-drawio/src/plugins/rdf-diagram.ts

[Bug] Existing buffers disappear when a repository is opened

Introduced in v0.4.0.

Steps to reproduce:

  • Start Neovim.
  • Open a buffer or more.
  • Run GitDevOpen <uri>.
  • Witness previously opened buffer disappear.

It could relate to the fact that opener is now called from within a scheduled function.
Need to investigate.

Feature: GitDevClean command

It would be nice to have a GitDevClean command to clean the current repo if no args are passed, which would close all buffers that are open containing files from the repo and then delete the repo directory.

The command could also support an argument to clean a specific repo, e.g. GitDevClean moyiz/git-dev.nvim would only clean the given repo.

Additionally, it would be nice if the repo name was tab-completable from the list of local cached repos.

Feature: Promote an ephemeral repo into a persisted repo

Cool plugin! It would be cool if there were a command which would make an ephemeral cloned repo into a persistent, editable repo. For example, :GitDevPersist or :GitDevSave. Maybe with an optional argument to move the repo's root directory to a new path.

Feature Idea: Advanced Git Parsing

It would be useful to have advance git parsing.

Could possibly use https://github.com/linrongbin16/giturlparser.lua

This would allow for some neat features:

  • Opening directly to a file:

https://github.com/moyiz/git-dev.nvim/blob/5808fe220441a7ed70a2882d91912353337c6035/README.md

  • Opening up with a specific branch checked out:

https://github.com/neovim/neovim/tree/release-0.9

Happy to help with a PR.

Thanks for the awesome plugin!

Some new update is forcing all files to be readonly

I started experiencing weird behavior from neovim today, where every file I would open in neovim would be opened as non-modifiable readonly by default. I did some testing with my plugins and narrowed it down to this plugin.

my config is the barebones config defined in the readme

return {
  "moyiz/git-dev.nvim",
  event = "VeryLazy",
  opts = {},
}

i also tried the "even lazier version" and everything is fine until i try to use any git-dev command (at which it imports the plugin and turns every buffer to read only.

let me know if there is any other information i can provide to help debug this issue, as I really appreciate this plugin and would love to be able to continue using it!

nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1693350652

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/gbns4aw2wrrf5p821jg0q1fcspm7i3hn-neovim-unwrapped-0.9.5/share/nvim
"

Run :checkhealth for more info

I am also using LazyVim for context

Feature request: Open file in local repo if it exists

I am using this function in tridactyl to run git-dev directly from the browser:

command browse_repo composite get_current_url | js -p tri.excmds.exclaim("alacritty -e zsh -c \"vi -c \'GitDevOpen " + JS_ARG + "\'\"")

But now there are two different kinds of repos:

  1. ephemeral ones for git-dev
  2. the local Repos I am working on

I do not want to just set the repositories_dir var to my local repos. (like you advised)

Could git-dev then use two repositories dirs one for caching and one for only for opening.

So that then GitDevOpen foo does the following:

  1. Check if the repo already exists in the local folder
    2a. If it exists: Open the file from local
    2b. If it does not exist, do the shallow clone in ephemeral...

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.