moyiz / git-dev.nvim Goto Github PK
View Code? Open in Web Editor NEWOpen remote git repositories in the comfort of Neovim.
License: BSD 3-Clause "New" or "Revised" License
Open remote git repositories in the comfort of Neovim.
License: BSD 3-Clause "New" or "Revised" License
The following URL fails: https://gitlab.com/infai/rdf-diagram-framework/-/blob/typeScriptRewrite/rdf-diagram-drawio/src/plugins/rdf-diagram.ts
Introduced in v0.4.0
.
Steps to reproduce:
GitDevOpen <uri>
.It could relate to the fact that opener
is now called from within a scheduled function.
Need to investigate.
Just putting out the idea.
This would probably be easier to add after switching to async (which I see you have in future plans ๐ ).
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.
please modify like this:
my config:
require 'git-dev'.setup {
repositories_dir = B.rep_slash(vim.fn.stdpath 'cache' .. '/git-dev'),
git = {
base_uri_format = '[email protected]:%s.git',
},
verbose = true,
}
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.
It would be awesome to also support git@
urls, so that users don't need to care about which one they used in the browser
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:
https://github.com/moyiz/git-dev.nvim/blob/5808fe220441a7ed70a2882d91912353337c6035/README.md
https://github.com/neovim/neovim/tree/release-0.9
Happy to help with a PR.
Thanks for the awesome plugin!
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
I would love to see
Gitea open with <IDE>
:
https://blog.gitea.com/release-of-1.22.0/#rocket-customizable-open-with-ide-menu-29320
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:
ephemeral
ones for git-devlocal
Repos I am working onI 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:
local
folderlocal
ephemeral
...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.