mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 08:00:04 +08:00
Compare commits
4 Commits
64438a033e
...
a0b86e67e8
Author | SHA1 | Date | |
---|---|---|---|
|
a0b86e67e8 | ||
|
88f1c5ec5b | ||
|
6bb0e44000 | ||
|
700aee7395 |
@ -519,7 +519,7 @@ EOT
|
||||
;;
|
||||
esac
|
||||
git add .
|
||||
git config user.email "eric@wsdjeg.net"
|
||||
git config user.email "wsdjeg@outlook.com"
|
||||
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
|
||||
|
@ -7,46 +7,52 @@
|
||||
" :Git add %
|
||||
" <
|
||||
|
||||
let s:JOB = SpaceVim#api#import('job')
|
||||
let s:NOTI = SpaceVim#api#import('notify')
|
||||
if has('nvim-0.9.0')
|
||||
function! git#add#complete(ArgLead, CmdLine, CursorPos) abort
|
||||
return luaeval('require("git.command.add").complete(vim.api.nvim_eval("a:ArgLead"), vim.api.nvim_eval("a:CmdLine"), vim.api.nvim_eval("a:CursorPos"))')
|
||||
endfunction
|
||||
else
|
||||
let s:JOB = SpaceVim#api#import('job')
|
||||
let s:NOTI = SpaceVim#api#import('notify')
|
||||
|
||||
function! s:replace_argvs(argvs) abort
|
||||
let argvs = []
|
||||
for argv in a:argvs
|
||||
if argv ==# '%'
|
||||
call insert(argvs, expand('%'))
|
||||
else
|
||||
call insert(argvs, argv)
|
||||
endif
|
||||
endfor
|
||||
return argvs
|
||||
endfunction
|
||||
function! s:replace_argvs(argvs) abort
|
||||
let argvs = []
|
||||
for argv in a:argvs
|
||||
if argv ==# '%'
|
||||
call insert(argvs, expand('%'))
|
||||
else
|
||||
call insert(argvs, argv)
|
||||
endif
|
||||
endfor
|
||||
return argvs
|
||||
endfunction
|
||||
|
||||
function! git#add#run(argvs) abort
|
||||
let cmd = ['git', 'add'] + s:replace_argvs(a:argvs)
|
||||
call git#logger#debug('git-add cmd:' . string(cmd))
|
||||
call s:JOB.start(cmd,
|
||||
\ {
|
||||
function! git#add#run(argvs) abort
|
||||
let cmd = ['git', 'add'] + s:replace_argvs(a:argvs)
|
||||
call git#logger#debug('git-add cmd:' . string(cmd))
|
||||
call s:JOB.start(cmd,
|
||||
\ {
|
||||
\ 'on_exit' : function('s:on_exit'),
|
||||
\ }
|
||||
\ )
|
||||
|
||||
endfunction
|
||||
endfunction
|
||||
|
||||
function! s:on_exit(id, data, event) abort
|
||||
call git#logger#debug('git-add exit data:' . string(a:data))
|
||||
if a:data ==# 0
|
||||
if exists(':GitGutter')
|
||||
GitGutter
|
||||
function! s:on_exit(id, data, event) abort
|
||||
call git#logger#debug('git-add exit data:' . string(a:data))
|
||||
if a:data ==# 0
|
||||
if exists(':GitGutter')
|
||||
GitGutter
|
||||
endif
|
||||
call s:NOTI.notify('stage files done!')
|
||||
else
|
||||
call s:NOTI.notify('stage files failed!')
|
||||
endif
|
||||
call s:NOTI.notify('stage files done!')
|
||||
else
|
||||
call s:NOTI.notify('stage files failed!')
|
||||
endif
|
||||
endfunction
|
||||
endfunction
|
||||
|
||||
function! git#add#complete(ArgLead, CmdLine, CursorPos) abort
|
||||
function! git#add#complete(ArgLead, CmdLine, CursorPos) abort
|
||||
|
||||
return "%\n" . join(getcompletion(a:ArgLead, 'file'), "\n")
|
||||
return "%\n" . join(getcompletion(a:ArgLead, 'file'), "\n")
|
||||
|
||||
endfunction
|
||||
endfunction
|
||||
endif
|
||||
|
@ -39,4 +39,10 @@ function M.run(argv)
|
||||
job.start(cmd, { on_exit = on_exit })
|
||||
end
|
||||
|
||||
function M.complete(ArgLead, CmdLine, CursorPos)
|
||||
local rst = vim.fn.getcompletion(ArgLead, 'file')
|
||||
table.insert(rst, '%')
|
||||
return table.concat(rst, '\n')
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -1,8 +1,8 @@
|
||||
## SpaceVim in DockerHub
|
||||
|
||||
![Docker Automated build](https://img.shields.io/docker/automated/spacevim/spacevim)
|
||||
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/spacevim/spacevim?sort=date)
|
||||
[![Docker Pulls](https://img.shields.io/docker/pulls/spacevim/spacevim)](https://hub.docker.com/r/spacevim/spacevim)
|
||||
[![Docker Automated build](https://img.shields.io/docker/automated/wsdjeg2/spacevim)](https://hub.docker.com/r/wsdjeg2/spacevim)
|
||||
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wsdjeg2/spacevim?sort=date)](https://hub.docker.com/r/wsdjeg2/spacevim)
|
||||
[![Docker Pulls](https://img.shields.io/docker/pulls/wsdjeg2/spacevim)](https://hub.docker.com/r/wsdjeg2/spacevim)
|
||||
|
||||
This Dockerfile builds neovim `HEAD` and installs the latest available version of SpaceVim. You might want to use this for several reasons:
|
||||
|
||||
|
@ -31,6 +31,37 @@ call SpaceVim#dev#followHEAD#update('cn')
|
||||
<!-- SpaceVim follow HEAD start -->
|
||||
## 新特性
|
||||
|
||||
- feat(git): implement lua complete for git-add
|
||||
- feat(markdown): add `SPC l t` to toggle todo
|
||||
- feat(zettelkasten): sort tags in sidebar
|
||||
- feat(git.vim): complete git push command
|
||||
- feat(git): improve git branch detection
|
||||
- feat(zettelkasten): use `<Enter>` to open note
|
||||
- perf(zettelkasten): set winfixwidth option
|
||||
- feat(zktagstree): support `<LeftRelease>` key
|
||||
- feat(zettelkasten): add zk tags tree
|
||||
- feat(zkbrowser): use `<LeftRelease>` to filter tag
|
||||
- feat(zettelkasten): filter zk tags
|
||||
- feat(zettelkasten): detach vim-zettelkasten plugin
|
||||
- feat(git): complete checkout command
|
||||
- feat(zettelkasten): improve zettelkasten plugin
|
||||
- feat(telescope): add `hidden` & `no_ignore` opt
|
||||
- feat(cpicker): change cursor highlight
|
||||
- feat(flygrep): use `ctrl-h` toggle hidden files
|
||||
- perf(shell): add `center-float` position
|
||||
- perf(SourceCounter): import sourcecounter
|
||||
- feat(cpicker.nvim): detact_bundle cpicker.nvim
|
||||
- feat(cpicker): add xyz color space
|
||||
- feat(cpicker): add linear and lab color space
|
||||
- feat(cpicker): add hwb color-mix
|
||||
- feat(cpicker): add color-mix-method
|
||||
- feat(cpicker): add color-mix function
|
||||
- feat(cpicker): picker color from cursor
|
||||
- feat(cpicker): change color code background
|
||||
- feat(cpicker): add hwb color space
|
||||
- feat(cpicker): add cmyk color space
|
||||
- feat(hsv): add hsv format
|
||||
- feat(cpicker): use Enter to copy color
|
||||
- feat(cpicker): add tools#cpicker layer
|
||||
- feat(core): add logevent plugin
|
||||
- feat(github): add ci files
|
||||
@ -118,6 +149,30 @@ call SpaceVim#dev#followHEAD#update('cn')
|
||||
|
||||
## 问题修复
|
||||
|
||||
- fix(tasks): update vim-zettelkasten task
|
||||
- fix(zettelkasten): test zettelkasten plugin
|
||||
- fix(cmp): fix return nil behavior
|
||||
- fix(guide): update language specified mapping
|
||||
- fix(messletters): make bubble_num avoid nil
|
||||
- fix(telescope): remove on_cmd option
|
||||
- fix(cmp): fix nvim-cmp mapping
|
||||
- fix(guide): fix `g` guide map
|
||||
- fix(javavi): include jar files
|
||||
- fix(opt): check belloff opt
|
||||
- fix(cpicker): fix unknow function
|
||||
- fix(scrollbar): detach apis
|
||||
- fix(scrollbar): detach logger
|
||||
- fix(cpicker): init data_dir
|
||||
- fix(cpicker): set wrap opt for win
|
||||
- fix(flygrep): detach job api
|
||||
- fix(detach): fix detach url
|
||||
- fix(bootstrap): use timer for bootstrap_after
|
||||
- fix(cpicker): disable number and wrap opt
|
||||
- fix(chat): fix vim chat statusline
|
||||
- fix(cpicker): remove extra space
|
||||
- fix(color): add missing functions
|
||||
- fix(cpicker): fix get cursor color function
|
||||
- fix(color): use math.round instead of floor
|
||||
- fix(mapping): fix SPC a r/o
|
||||
- fix(mapping): fix SPC b d key binding
|
||||
- fix(tabline): update tabline on buflisted changed
|
||||
@ -187,6 +242,19 @@ call SpaceVim#dev#followHEAD#update('cn')
|
||||
|
||||
## 文档更新
|
||||
|
||||
- docs(docker): update docker link
|
||||
- docs(zettelkasten): update vim-zettelkasten readme
|
||||
- docs(git): update readme of git.vim
|
||||
- docs(development): use github issue & pull request
|
||||
- docs(matrix): remove all chatting rooms
|
||||
- docs(scrollbar): update requirements
|
||||
- docs(scrollbar): add scrollbar img
|
||||
- docs(flygrep): update flygrep readme
|
||||
- docs(api): add prompt doc
|
||||
- docs(git): update README
|
||||
- docs(development): fix dev link
|
||||
- docs(cpicker): update key bindings
|
||||
- docs(website): update layer list
|
||||
- docs(readme): update readme
|
||||
- docs(bundle-plugins): add neo-tree link
|
||||
- docs(autocomplete): update doc
|
||||
@ -228,10 +296,28 @@ call SpaceVim#dev#followHEAD#update('cn')
|
||||
|
||||
## 测试
|
||||
|
||||
- test(zettelkasten): fix test script
|
||||
- test(scrollbar): fix scrollbar task
|
||||
- test(scrollbar): add scrollbar task
|
||||
- test(vader): fix vader test
|
||||
|
||||
## 其他
|
||||
|
||||
- ci(plugin): change commit email
|
||||
- ci(detach): fix detach script
|
||||
- ci(version)! remove old tests
|
||||
- typo(guide): Key binding not defined
|
||||
- ci(detach): fix scrollbar detach script
|
||||
- ci(runner): switch to ubuntu-22.04
|
||||
- ci(scrollbar): detach lua scrollbar
|
||||
- refactor(scrollbar): detach scrollbar
|
||||
- ci(detach): detach lua git plugin
|
||||
- ci(detach): update detach script
|
||||
- chore(async): detach SourceCounter.vim
|
||||
- ci(async): add cpicker.nvim
|
||||
- chore(log): remove log.txt
|
||||
- chore(cpicker): remove duplicate code
|
||||
- chore(typo): typo in cpicker
|
||||
- build(docker): use new docker repo
|
||||
- build(makefile): update makefile
|
||||
- chore(colorscheme): use bundle vim-hybrid
|
||||
|
@ -30,6 +30,37 @@ call SpaceVim#dev#followHEAD#update('en')
|
||||
<!-- SpaceVim follow HEAD start -->
|
||||
## New features
|
||||
|
||||
- feat(git): implement lua complete for git-add
|
||||
- feat(markdown): add `SPC l t` to toggle todo
|
||||
- feat(zettelkasten): sort tags in sidebar
|
||||
- feat(git.vim): complete git push command
|
||||
- feat(git): improve git branch detection
|
||||
- feat(zettelkasten): use `<Enter>` to open note
|
||||
- perf(zettelkasten): set winfixwidth option
|
||||
- feat(zktagstree): support `<LeftRelease>` key
|
||||
- feat(zettelkasten): add zk tags tree
|
||||
- feat(zkbrowser): use `<LeftRelease>` to filter tag
|
||||
- feat(zettelkasten): filter zk tags
|
||||
- feat(zettelkasten): detach vim-zettelkasten plugin
|
||||
- feat(git): complete checkout command
|
||||
- feat(zettelkasten): improve zettelkasten plugin
|
||||
- feat(telescope): add `hidden` & `no_ignore` opt
|
||||
- feat(cpicker): change cursor highlight
|
||||
- feat(flygrep): use `ctrl-h` toggle hidden files
|
||||
- perf(shell): add `center-float` position
|
||||
- perf(SourceCounter): import sourcecounter
|
||||
- feat(cpicker.nvim): detact_bundle cpicker.nvim
|
||||
- feat(cpicker): add xyz color space
|
||||
- feat(cpicker): add linear and lab color space
|
||||
- feat(cpicker): add hwb color-mix
|
||||
- feat(cpicker): add color-mix-method
|
||||
- feat(cpicker): add color-mix function
|
||||
- feat(cpicker): picker color from cursor
|
||||
- feat(cpicker): change color code background
|
||||
- feat(cpicker): add hwb color space
|
||||
- feat(cpicker): add cmyk color space
|
||||
- feat(hsv): add hsv format
|
||||
- feat(cpicker): use Enter to copy color
|
||||
- feat(cpicker): add tools#cpicker layer
|
||||
- feat(core): add logevent plugin
|
||||
- feat(github): add ci files
|
||||
@ -117,6 +148,30 @@ call SpaceVim#dev#followHEAD#update('en')
|
||||
|
||||
## Bugfixs
|
||||
|
||||
- fix(tasks): update vim-zettelkasten task
|
||||
- fix(zettelkasten): test zettelkasten plugin
|
||||
- fix(cmp): fix return nil behavior
|
||||
- fix(guide): update language specified mapping
|
||||
- fix(messletters): make bubble_num avoid nil
|
||||
- fix(telescope): remove on_cmd option
|
||||
- fix(cmp): fix nvim-cmp mapping
|
||||
- fix(guide): fix `g` guide map
|
||||
- fix(javavi): include jar files
|
||||
- fix(opt): check belloff opt
|
||||
- fix(cpicker): fix unknow function
|
||||
- fix(scrollbar): detach apis
|
||||
- fix(scrollbar): detach logger
|
||||
- fix(cpicker): init data_dir
|
||||
- fix(cpicker): set wrap opt for win
|
||||
- fix(flygrep): detach job api
|
||||
- fix(detach): fix detach url
|
||||
- fix(bootstrap): use timer for bootstrap_after
|
||||
- fix(cpicker): disable number and wrap opt
|
||||
- fix(chat): fix vim chat statusline
|
||||
- fix(cpicker): remove extra space
|
||||
- fix(color): add missing functions
|
||||
- fix(cpicker): fix get cursor color function
|
||||
- fix(color): use math.round instead of floor
|
||||
- fix(mapping): fix SPC a r/o
|
||||
- fix(mapping): fix SPC b d key binding
|
||||
- fix(tabline): update tabline on buflisted changed
|
||||
@ -186,6 +241,19 @@ call SpaceVim#dev#followHEAD#update('en')
|
||||
|
||||
## Docs
|
||||
|
||||
- docs(docker): update docker link
|
||||
- docs(zettelkasten): update vim-zettelkasten readme
|
||||
- docs(git): update readme of git.vim
|
||||
- docs(development): use github issue & pull request
|
||||
- docs(matrix): remove all chatting rooms
|
||||
- docs(scrollbar): update requirements
|
||||
- docs(scrollbar): add scrollbar img
|
||||
- docs(flygrep): update flygrep readme
|
||||
- docs(api): add prompt doc
|
||||
- docs(git): update README
|
||||
- docs(development): fix dev link
|
||||
- docs(cpicker): update key bindings
|
||||
- docs(website): update layer list
|
||||
- docs(readme): update readme
|
||||
- docs(bundle-plugins): add neo-tree link
|
||||
- docs(autocomplete): update doc
|
||||
@ -227,10 +295,28 @@ call SpaceVim#dev#followHEAD#update('en')
|
||||
|
||||
## Tests
|
||||
|
||||
- test(zettelkasten): fix test script
|
||||
- test(scrollbar): fix scrollbar task
|
||||
- test(scrollbar): add scrollbar task
|
||||
- test(vader): fix vader test
|
||||
|
||||
## Others
|
||||
|
||||
- ci(plugin): change commit email
|
||||
- ci(detach): fix detach script
|
||||
- ci(version)! remove old tests
|
||||
- typo(guide): Key binding not defined
|
||||
- ci(detach): fix scrollbar detach script
|
||||
- ci(runner): switch to ubuntu-22.04
|
||||
- ci(scrollbar): detach lua scrollbar
|
||||
- refactor(scrollbar): detach scrollbar
|
||||
- ci(detach): detach lua git plugin
|
||||
- ci(detach): update detach script
|
||||
- chore(async): detach SourceCounter.vim
|
||||
- ci(async): add cpicker.nvim
|
||||
- chore(log): remove log.txt
|
||||
- chore(cpicker): remove duplicate code
|
||||
- chore(typo): typo in cpicker
|
||||
- build(docker): use new docker repo
|
||||
- build(makefile): update makefile
|
||||
- chore(colorscheme): use bundle vim-hybrid
|
||||
|
Loading…
Reference in New Issue
Block a user