mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 11:20:06 +08:00
Compare commits
3 Commits
057c0d5ed0
...
26e7f66fcd
Author | SHA1 | Date | |
---|---|---|---|
|
26e7f66fcd | ||
|
79d7fabd0e | ||
|
67b8ce78ff |
@ -26,8 +26,8 @@ EOT
|
||||
|
||||
main () {
|
||||
case "$1" in
|
||||
flygrep)
|
||||
git clone https://github.com/wsdjeg/FlyGrep.vim.git detach/$1
|
||||
FlyGrep.vim)
|
||||
git clone https://github.com/wsdjeg/$1.git detach/$1
|
||||
cd detach/$1
|
||||
_checkdir syntax/
|
||||
_checkdir autoload/SpaceVim/api
|
||||
@ -95,17 +95,8 @@ main () {
|
||||
# detach test vimrc
|
||||
_checkdir test
|
||||
_detact_bundle FlyGrep test/vimrc
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_flygrep https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/FlyGrep.vim.git
|
||||
git push wsdjeg_flygrep master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
dein-ui)
|
||||
dein-ui.vim)
|
||||
git clone https://github.com/wsdjeg/dein-ui.vim.git detach/$1
|
||||
cd detach/$1
|
||||
_checkdir syntax/
|
||||
@ -124,15 +115,6 @@ main () {
|
||||
_detact autoload/SpaceVim/api/vim/compatible.vim
|
||||
_detact syntax/SpaceVimPlugManager.vim
|
||||
_detact LICENSE
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_dein_ui https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/dein-ui.vim.git
|
||||
git push wsdjeg_dein_ui master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
cpicker.nvim)
|
||||
git clone https://github.com/wsdjeg/cpicker.nvim.git detach/$1
|
||||
@ -169,15 +151,6 @@ main () {
|
||||
_checkdir autoload/SpaceVim/api/neovim
|
||||
_detact autoload/SpaceVim/api/neovim/floatting.vim
|
||||
_detact LICENSE
|
||||
git add .
|
||||
git config user.email "eric@wsdjeg.net"
|
||||
git config user.name "Eric Wong"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_cpicker https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/cpicker.nvim.git
|
||||
git push wsdjeg_cpicker master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
SourceCounter.vim)
|
||||
git clone https://github.com/wsdjeg/SourceCounter.vim.git detach/$1
|
||||
@ -202,17 +175,8 @@ main () {
|
||||
_detact autoload/SpaceVim/api/vim/floatting.vim
|
||||
_checkdir autoload/SpaceVim/api/neovim
|
||||
_detact autoload/SpaceVim/api/neovim/floatting.vim
|
||||
git add .
|
||||
git config user.email "eric@wsdjeg.net"
|
||||
git config user.name "Eric Wong"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_sourcecounter https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/SourceCounter.vim.git
|
||||
git push wsdjeg_sourcecounter master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
iedit)
|
||||
iedit.vim)
|
||||
git clone https://github.com/wsdjeg/iedit.vim.git detach/$1
|
||||
cd detach/$1
|
||||
_checkdir autoload/SpaceVim/api/vim
|
||||
@ -246,15 +210,6 @@ command! -nargs=0 Iedit call SpaceVim#plugins#iedit#start()
|
||||
EOT
|
||||
_detact LICENSE
|
||||
_default_readme "iedit.vim" "multiple cussor support for Vim/Neovim"
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update"
|
||||
git remote add wsdjeg_vim_todo https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/iedit.vim.git
|
||||
git push wsdjeg_vim_todo master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
vim-todo)
|
||||
git clone https://github.com/wsdjeg/vim-todo.git detach/$1
|
||||
@ -290,15 +245,6 @@ EOT
|
||||
command! OpenTodo call todo#open()
|
||||
EOT
|
||||
_detact LICENSE
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update"
|
||||
git remote add wsdjeg_vim_todo https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/vim-todo.git
|
||||
git push wsdjeg_vim_todo master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
vim-chat)
|
||||
git clone https://github.com/wsdjeg/vim-chat.git detach/$1
|
||||
@ -320,15 +266,6 @@ EOT
|
||||
_detact_bundle vim-chat syntax/vimchat.vim
|
||||
_detact_bundle vim-chat addon-info.json
|
||||
_detact_bundle vim-chat README.md
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_vim_chat https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/vim-chat.git
|
||||
git push wsdjeg_vim_chat master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
JavaUnit.vim)
|
||||
git clone https://github.com/wsdjeg/JavaUnit.vim.git detach/$1
|
||||
@ -339,15 +276,6 @@ EOT
|
||||
# _detact autoload/SpaceVim/api/job.vim
|
||||
# _checkdir autoload/chat/
|
||||
_detact_bundle JavaUnit.vim README.md
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_javaunit_vim https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/JavaUnit.vim.git
|
||||
git push wsdjeg_javaunit_vim master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
git.vim)
|
||||
git clone https://github.com/wsdjeg/git.vim.git detach/$1
|
||||
@ -397,15 +325,47 @@ EOT
|
||||
_detact_bundle git.vim syntax/git-reflog.vim
|
||||
_checkdir test
|
||||
_detact_bundle git.vim test/vimrc
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_git_vim https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/git.vim.git
|
||||
git push wsdjeg_git_vim master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
_checkdir lua/spacevim/api
|
||||
_detact lua/spacevim/api/job.lua
|
||||
_detact lua/spacevim/api/logger.lua
|
||||
_detact lua/spacevim/api.lua
|
||||
_detact lua/spacevim/logger.lua
|
||||
_detact lua/spacevim.lua
|
||||
_detact lua/spacevim/api/notify.lua
|
||||
_detact lua/spacevim/api/password.lua
|
||||
_checkdir lua/git/command
|
||||
_checkdir lua/git/ui
|
||||
_detact_bundle git.vim lua/git/init.lua
|
||||
_detact_bundle git.vim lua/git/log.lua
|
||||
_detact_bundle git.vim lua/git/command/add.lua
|
||||
_detach_bundle git.vim lua/git/command/add.lua
|
||||
_detach_bundle git.vim lua/git/command/blame.lua
|
||||
_detach_bundle git.vim lua/git/command/branch.lua
|
||||
_detach_bundle git.vim lua/git/command/checkout.lua
|
||||
_detach_bundle git.vim lua/git/command/cherry-pick.lua
|
||||
_detach_bundle git.vim lua/git/command/clean.lua
|
||||
_detach_bundle git.vim lua/git/command/commit.lua
|
||||
_detach_bundle git.vim lua/git/command/config.lua
|
||||
_detach_bundle git.vim lua/git/command/diff.lua
|
||||
_detach_bundle git.vim lua/git/command/fetch.lua
|
||||
_detach_bundle git.vim lua/git/command/grep.lua
|
||||
_detach_bundle git.vim lua/git/command/log.lua
|
||||
_detach_bundle git.vim lua/git/command/merge.lua
|
||||
_detach_bundle git.vim lua/git/command/mv.lua
|
||||
_detach_bundle git.vim lua/git/command/pull.lua
|
||||
_detach_bundle git.vim lua/git/command/push.lua
|
||||
_detach_bundle git.vim lua/git/command/rebase.lua
|
||||
_detach_bundle git.vim lua/git/command/reflog.lua
|
||||
_detach_bundle git.vim lua/git/command/remote.lua
|
||||
_detach_bundle git.vim lua/git/command/reset.lua
|
||||
_detach_bundle git.vim lua/git/command/rm.lua
|
||||
_detach_bundle git.vim lua/git/command/shortlog.lua
|
||||
_detach_bundle git.vim lua/git/command/stash.lua
|
||||
_detach_bundle git.vim lua/git/command/status.lua
|
||||
_detach_bundle git.vim lua/git/command/tag.lua
|
||||
_detach_bundle git.vim lua/git/command/update-index.lua
|
||||
_detach_bundle git.vim lua/git/ui/branch.lua
|
||||
_detach_bundle git.vim lua/git/ui/remote.lua
|
||||
;;
|
||||
vim-cheat)
|
||||
git clone https://github.com/wsdjeg/vim-cheat.git detach/$1
|
||||
@ -420,15 +380,6 @@ EOT
|
||||
_detact_bundle vim-cheat .vintrc.yaml
|
||||
_checkdir doc/
|
||||
_detact_bundle vim-cheat doc/vim-cheat.txt
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_vim_cheat https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/vim-cheat.git
|
||||
git push wsdjeg_vim_cheat master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
xmake.vim)
|
||||
git clone https://github.com/wsdjeg/xmake.vim.git detach/$1
|
||||
@ -471,15 +422,6 @@ EOT
|
||||
_detact_bundle xmake.vim rplugin/python3/deoplete/sources/docs/set_symbols
|
||||
_detact_bundle xmake.vim rplugin/python3/deoplete/sources/docs/set_targetdir
|
||||
_detact_bundle xmake.vim rplugin/python3/deoplete/sources/docs/set_warnings
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_xmake_vim https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/xmake.vim.git
|
||||
git push wsdjeg_xmake_vim master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
scrollbar.vim)
|
||||
git clone https://github.com/wsdjeg/scrollbar.vim.git detach/$1
|
||||
@ -494,17 +436,8 @@ EOT
|
||||
_detact autoload/SpaceVim/plugins/scrollbar.vim
|
||||
_detact LICENSE
|
||||
_default_readme "scrollbar.vim" "floating scrollbar support for neovim/vim[wip]"
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_scrollbar https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/scrollbar.vim.git
|
||||
git push wsdjeg_scrollbar master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
github.vim)
|
||||
GitHub.vim)
|
||||
git clone https://github.com/wsdjeg/GitHub.vim.git detach/$1
|
||||
cd detach/$1
|
||||
_checkdir plugin/
|
||||
@ -515,19 +448,17 @@ EOT
|
||||
_default_readme "GitHub.vim" "GitHub API support for neovim/vim[wip]"
|
||||
_checkdir doc/
|
||||
_detact_bundle github doc/github.txt
|
||||
git add .
|
||||
git config user.email "wsdjeg@qq.com"
|
||||
git config user.name "SpaceVimBot"
|
||||
git commit -m "Auto Update based on https://github.com/SpaceVim/SpaceVim/commit/${GITHUB_SHA}"
|
||||
git remote add wsdjeg_github_vim https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/GitHub.vim.git
|
||||
git push wsdjeg_github_vim master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
;;
|
||||
spacevim-theme)
|
||||
exit 0
|
||||
esac
|
||||
git add .
|
||||
git config user.email "eric@wsdjeg.net"
|
||||
git config user.name "Eric Wong"
|
||||
git commit -m "${SpaceVim_COMMIT_MSG}"
|
||||
git remote add wsdjeg_$1 https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/$1.git
|
||||
git push wsdjeg_$1 master
|
||||
cd -
|
||||
rm -rf detach/$1
|
||||
exit 0
|
||||
}
|
||||
|
||||
main $@
|
||||
|
3
.github/workflows/async.yml
vendored
3
.github/workflows/async.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "github.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim", "SourceCounter.vim"]
|
||||
detachPlugin: ["FlyGrep.vim", "dein-ui.vim", "vim-todo", "iedit.vim", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "GitHub.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim", "SourceCounter.vim"]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -15,4 +15,5 @@ jobs:
|
||||
- name: Detach ${{ matrix.detachPlugin }}
|
||||
env:
|
||||
BOTSECRET: ${{ secrets.BOTSECRET_GITHUB }}
|
||||
SpaceVim_COMMIT_MSG: ${{ github.event.commits[0].message }}
|
||||
run: .ci/detach_plugin.sh ${{ matrix.detachPlugin }}
|
||||
|
@ -9,6 +9,10 @@
|
||||
|
||||
### Options
|
||||
|
||||
- `-d`: specific directories
|
||||
|
||||
### Options
|
||||
|
||||
- `g:source_counter_sort` : sort method of result, by default, it is `files`, and if you want to sort by lines, use `let g:source_counter_sort = 'lines'`
|
||||
|
||||
### Screenshot
|
||||
|
@ -1,20 +1,35 @@
|
||||
# git.vim
|
||||
|
||||
> _git.vim_ is a plugin to use _git_ command in vim and neovim.
|
||||
|
||||
[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org)
|
||||
|
||||
Use git in SpaceVim
|
||||
|
||||
This plugin adds extensive support for [git](https://git-scm.com/).
|
||||
[![GPLv3 License](https://img.spacevim.org/license-GPLv3-blue.svg)](LICENSE)
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [usage](#usage)
|
||||
- [Install](#install)
|
||||
- [Usage](#usage)
|
||||
- [Screenshot](#screenshot)
|
||||
- [Feedback](#feedback)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## usage
|
||||
## Install
|
||||
|
||||
1. Using `git.vim` in SpaceVim:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = 'git'
|
||||
```
|
||||
|
||||
2. Using `git.vim` without SpaceVim:
|
||||
|
||||
```
|
||||
Plug 'wsdjeg/git.vim'
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
- `:Git add %`: stage current file.
|
||||
- `:Git add .`: stage all files
|
||||
@ -53,7 +68,6 @@ This plugin adds extensive support for [git](https://git-scm.com/).
|
||||
|
||||
![git-log](https://img.spacevim.org/70444048-39015900-1ad4-11ea-9522-1711c0c67098.png)
|
||||
|
||||
|
||||
## Feedback
|
||||
|
||||
The development of this plugin is in [`SpaceVim/bundle/git.vim`](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/git.vim) directory.
|
||||
|
Loading…
Reference in New Issue
Block a user