1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:10:06 +08:00

feat(dev): update fellowing head vim function

This commit is contained in:
Eric Wong 2024-02-27 01:42:51 +08:00
parent b9cc3e76e9
commit b9741e7c2b
3 changed files with 322 additions and 192 deletions

View File

@ -7,12 +7,40 @@
"=============================================================================
let s:AUTODOC = SpaceVim#api#import('dev#autodoc')
let s:AUTODOC.begin = '^<!-- SpaceVim follow HEAD en start -->$'
let s:AUTODOC.end = '^<!-- SpaceVim follow HEAD en end -->$'
let s:AUTODOC.begin = '^<!-- SpaceVim follow HEAD start -->$'
let s:AUTODOC.end = '^<!-- SpaceVim follow HEAD end -->$'
function! s:generate_content(lang) abort
let content = SpaceVim#dev#releases#parser_prs(a:lang)
return content
if a:lang == 'cn'
let features = ['## 新特性', '']
let bugfixs = ['', '## 问题修复', '']
let docs = ['', '## 文档更新', '']
let tests = ['', '## 测试', '']
let others = ['', '## 其他', '']
else
let features = ['## New features', '']
let bugfixs = ['', '## Bugfixs', '']
let docs = ['', '## Docs', '']
let tests = ['', '## Tests', '']
let others = ['', '## Others', '']
endif
let logs = systemlist('git log --oneline --pretty="- %s" 8a7ec458..HEAD')
for l in logs
if l =~ '^- feat(' || l =~ '^- perf('
call add(features, l)
elseif l =~ '^- fix('
call add(bugfixs, l)
elseif l =~ '^- docs('
call add(docs, l)
elseif l =~ '^- test('
call add(tests, l)
else
call add(others, l)
endif
endfor
return features + bugfixs + docs + tests + others
endfunction
let s:AUTODOC.content_func = function('s:generate_content')

View File

@ -24,151 +24,202 @@ lang: zh
下一个版本号为 v2.3.0
<!-- SpaceVim follow HEAD start -->
## 新特性
- feat(git): add `:Git tag` command
- perf(neoyank): use notify api
- feat(git): quit git log win when it is last win
- feat(git): display root path of repo
- feat(todo): update todo list when switch project
- feat(projectmanager): make reg_callback support description
- feat(git): update remote manager context when switch project
- feat(colorscheme): support treesitter highlight group
- perf(telescope): use telescope 0.1.2 for nvim 0.7.0
- perf(git): open remote branch log in new tab
- feat(git): make `<Cr>` show git log in remote manager
- feat(git): add git remote manager
- feat(git.vim): complete shortlog command
- feat(git.vim): add `:Git shortlog` command
- feat(alternate): make `:A` command support toml
- feat(api): add lua job api
- feat(ctags): implement ctags#update in lua
- feat(flygrep): use job api instead of vim.fn.jobstart
- feat(git): add `:Git blame`
- feat(git): add `:Git cherry-pick` command
- feat(git): add `:Git clean` command
- feat(git): add `:Git fetch` command
- feat(git): add `:Git mv` command
- feat(git): add `:Git remote` for git.lua
- feat(git): add `:Git reset` command
- feat(git): add `:Git rm` command
- feat(git): implement git.lua
- feat(gtags): add the shortcut for jumping to a symbol
- feat(guide): rewrite leader guide in lua
- feat(job): improve job api
- feat(job): support detached opt
- feat(job): support env and clear_env opt
- feat(log): improve logger api
- feat(pastebin): add pastebin.lua
- feat(pastebin): use lua pastebin for nvim 0.9.0+
- feat(repl): add spinners
- feat(repl): rewrite repl plugin in lua
- feat(runner): rewrite code runner in lua
- feat(scrollbar): implement scrollbar in lua
- feat(tasks): implement tasks.lua
- feat(toml): add `data.toml` api
- feat(toml): add lua toml previewer
- feat(vim): add functions
- perf(a.lua): log alternate file name
- perf(git): display stderr on exit
- perf(git): update GitGutter status
- perf(git): use notify api && redrawstatus
- perf(job): use table for job stdout/stderr data
- perf(notify): change notify borderchars
- feat(log): improve logger api
- feat(git): add `:Git blame`
- perf(repl): update statusline on exit
- perf(scrollbar): set scrollbar zindex to 10
- perf(spinners): handle none exist data
- perf(spinners): handle spinners function error
- feat(repl): add spinners
- feat(repl): rewrite repl plugin in lua
- feat(guide): rewrite leader guide in lua
- feat(git): add `:Git rm` command
- feat(git): add `:Git reset` command
- feat(git): add `:Git cherry-pick` command
- feat(git): add `:Git fetch` command
- feat(tasks): implement tasks.lua
- feat(toml): add lua toml previewer
- feat(alternate): make `:A` command support toml
- feat(toml): add `data.toml` api
- perf(git): update GitGutter status
- perf(git): display stderr on exit
- feat(git): add `:Git mv` command
- feat(git): add `:Git clean` command
- perf(notify): change notify borderchars
- feat(git): add `:Git remote` for git.lua
- feat(git): implement git.lua
- perf(a.lua): log alternate file name
- feat(pastebin): use lua pastebin for nvim 0.9.0+
- feat(pastebin): add pastebin.lua
- feat(job): improve job api
- perf(statusline): indent statusline mode text
- revert(rtp): remove `:GrepRtp` command
- revert(ui): revert indent-blankline config
- revert(url)!: revert url
- feat(runner): rewrite code runner in lua
- perf(scrollbar): set scrollbar zindex to 10
- perf(git): use notify api && redrawstatus
- feat(vim): add functions
- feat(job): support env and clear_env opt
- feat(job): support detached opt
- feat(ctags): implement ctags#update in lua
- feat(flygrep): use job api instead of vim.fn.jobstart
- perf(job): use table for job stdout/stderr data
- feat(api): add lua job api
## 问题修复
- fix(scrollbar): fix unsaved error
- fix(git): ignore remote manager when close win
- fix(telescope): fix telescope loadconf
- fix(git): skip unsupported subcommand
- fix(git): make error message clear
- fix(git): fix git log command
- fix(git): fix wrong branch name
- fix(git): fix wrong remote line number
- fix(git): rename cherry_pick to cherry-pick
- fix(cmdlinemenu): fix cmdlinemenu lua api
- fix(git.vim): fix plog_jobid
- fix(shortlog): fix `:Git shortlog` command
- fix(docker): update init.toml url
- fix(flygrep): fix version checking
- fix(indent-blankline): set max_indent_increase = 1
- fix(install): update repo url in install.cmd
- fix(tasks): use `vim.tbl_extend` instead
- fix(scala): use old fork ensime-vim
- fix(cmdlinemenu): fix cmdlinemenu lua api
- fix(toml): use integer instead
- fix(toml): fix E706
- fix(typescript): fix lsp key binding for typescript
- fix(job): close stdout/stderr on exit
- fix(runner): add get function
- fix(pastebin): fix pastebin get visual selection
- fix(pastebin): change url on stdout
- fix(job): support cwd option and check executable
- fix(flygrep): fix version checking
- fix(job): support shell/shellcmdflag opt
- fix(opt): remove guioption for nvim
- fix(pastebin): change url on stdout
- fix(pastebin): fix pastebin get visual selection
- fix(runner): add get function
- fix(scala): use old fork ensime-vim
- fix(tasks): use `vim.tbl_extend` instead
- fix(toml): fix E706
- fix(toml): use integer instead
- fix(typescript): fix lsp key binding for typescript
- fix(indent-blankline): set max_indent_increase = 1
## 文档更新
- docs(index): update index page
- docs(help): add `:h SpaceVim-dev-merge-request`
- docs(faq): change repo url
- docs(roadmap): update roadmap page
- docs(community): update community page
- docs(index): update index page
- docs(index): remote shields link
- docs(roadmap): update completed item
- docs(roadmap): update roadmap page
- docs(community): update community en page
- docs(community): add link to x account
- docs(website): update index page
- docs(roadmap): update roadmap page
- docs(job): update `:h spacevim-api-job`
- docs(alternate): update doc for toml configuration file
- docs(chat): remove IRC rooms from community page
- docs(chat): update chat link
- docs(fhead): update following-head page
- docs(git.vim): remove duplicate tag
- docs(dev): update development page
- docs(website): update following head page
- docs(development): update merge request steps
- docs(dev): update upstream url
- docs(remote): use custom remote url
- docs(website): move language link to menu
- docs(website): fix language link
- docs(website): add language link
- docs(development): update development page
- docs(index): update description
- docs(following-head): update following-head page
- docs(sponsors): update website
- docs(community): remove twitter account
- docs(community): use mail list only
- docs(doc): remove github link
- docs(faq): update spacevim repo link
- docs(feedback): remove matrix room from development page
- docs(font): update doc for default font
- docs(img): use img.spacevim.org for img url
- docs(index): remove github action list
- docs(index): remove matrix link
- docs(doc): remove github link
- docs(font): update doc for default font
- docs(faq): update spacevim repo link
- docs(readme): update link to community page
- docs(readme): update readme of gitlab
- docs(website): clear badges
- docs(index): update cn index
- docs(index): update index page
- docs(readme): update readme
- docs(job): update `:h spacevim-api-job`
- docs(logger): update doc for `:h SpaceVim#logger#derive`
- docs(lua): add lua post
- docs(readme): add link to development page
- docs(feedback): remove matrix room from development page
- docs(readme): clear readme
- docs(index): remove matrix link
- docs(community): use mail list only
- docs(chat): remove IRC rooms from community page
- docs(alternate): update doc for toml configuration file
- docs(roadmap): update roadmap and todos
- docs(task): doc for lua task provider
- docs(img): use img.spacevim.org for img url
- docs(readme): add link to development page
- docs(readme): remove cn readme
- docs(readme): remove project layout
- docs(readme): update link to community page
- docs(readme): update readme
- docs(readme): update readme of gitlab
- docs(roadmap): update roadmap and todos
- docs(sponsors): update website
- docs(task): doc for lua task provider
- docs(website): clear badges
- docs(chat): update chat link
## 测试
- test(nvim): fix nvim test in linux
- test(flygrep): fix input_list test
- test(nvim): use `--headless` for neovim test
- test(win): fix win test
- test(win): add codecov
- test(win): fix windows test
- test(nvim): add test for nvim 0.7.0 - 0.9.1
- test(a.lua): fix test for a.lua
- test(a.vim): fix alternate test
- test(alternate): remove alternate file test for wiki
- test(flygrep): fix input_list test
- test(nvim): add test for nvim 0.7.0 - 0.9.1
- test(nvim): fix nvim test in linux
- test(nvim): use `--headless` for neovim test
- test(win): add codecov
- test(win): fix win test
- test(win): fix windows test
- ci(Makefile): remove coverage
- ci(gitlab): add gitlab-ci.yml
- ci(gitlab): update ci file
- ci(page): remove gitlab-ci
- ci(script): remove script
## 其他
- chore(conduct): remove CODE_OF_CONDUCT.md
- chore(todo): add todo item for git log
- chore(telescope): update telescope to 0.1.5
- ci(script): remove script
- ci(Makefile): remove coverage
- Merge branch 'xinfengwu-master-patch-82221' into 'master'
- Merge branch 'xinfengwu-master-patch-44776' into 'master'
- Merge branch 'nouzername-master-patch-09495' into 'master'
- Replace the original function Chinese2Digit with the equivalent function...
- Update cscope.md
- Update cscope.md
- add the shortcut for jumping to a symbol
- Update cscope.md
- Update cscope.md
- build(vader): use headless option
- chore(a.lua): remove alternate json conf
- chore(dev): remove github specific files
- chore(git): use gitlab instead
- chore(gitignore): add public directory to gitignore
- chore(install): switch to gitlab
- chore(issue): remove default title
- chore(issue): remove title
- chore(linguist): ignore iconv file
- chore(linguist): update gitattributes
- chore(spinners): change file format
- chore(ui): update bundle indent-blankline.nvim
- chore(url): change to dev.spacevim.org
- chore(version): update version to v2.3.0-dev
- chore(website): bundle jquery 1.7.1
- ci(page): remove gitlab-ci
- chore(website): remove github corner
- chore(install): switch to gitlab
- chore(git): use gitlab instead
- ci(gitlab): update ci file
- chore(gitignore): add public directory to gitignore
- ci(gitlab): add gitlab-ci.yml
- chore(dev): remove github specific files
- revert(rtp): remove `:GrepRtp` command
- chore(spinners): change file format
- revert(url)!: revert url
- chore(url): change to dev.spacevim.org
- chore(a.lua): remove alternate json conf
- chore(linguist): update gitattributes
- chore(linguist): ignore iconv file
- chore(issue): remove title
- chore(issue): remove default title
- revert(ui): revert indent-blankline config
- chore(ui): update bundle indent-blankline.nvim
- chore(version): update version to v2.3.0-dev
<!-- SpaceVim follow HEAD end -->
## 上一个版本

View File

@ -23,151 +23,202 @@ This page documents changes in master branch since last release v2.2.0
The next release is `v0.2.3`
<!-- SpaceVim follow HEAD start -->
## New features
- feat(git): add `:Git tag` command
- perf(neoyank): use notify api
- feat(git): quit git log win when it is last win
- feat(git): display root path of repo
- feat(todo): update todo list when switch project
- feat(projectmanager): make reg_callback support description
- feat(git): update remote manager context when switch project
- feat(colorscheme): support treesitter highlight group
- perf(telescope): use telescope 0.1.2 for nvim 0.7.0
- perf(git): open remote branch log in new tab
- feat(git): make `<Cr>` show git log in remote manager
- feat(git): add git remote manager
- feat(git.vim): complete shortlog command
- feat(git.vim): add `:Git shortlog` command
- feat(alternate): make `:A` command support toml
- feat(api): add lua job api
- feat(ctags): implement ctags#update in lua
- feat(flygrep): use job api instead of vim.fn.jobstart
- feat(git): add `:Git blame`
- feat(git): add `:Git cherry-pick` command
- feat(git): add `:Git clean` command
- feat(git): add `:Git fetch` command
- feat(git): add `:Git mv` command
- feat(git): add `:Git remote` for git.lua
- feat(git): add `:Git reset` command
- feat(git): add `:Git rm` command
- feat(git): implement git.lua
- feat(gtags): add the shortcut for jumping to a symbol
- feat(guide): rewrite leader guide in lua
- feat(job): improve job api
- feat(job): support detached opt
- feat(job): support env and clear_env opt
- feat(log): improve logger api
- feat(pastebin): add pastebin.lua
- feat(pastebin): use lua pastebin for nvim 0.9.0+
- feat(repl): add spinners
- feat(repl): rewrite repl plugin in lua
- feat(runner): rewrite code runner in lua
- feat(scrollbar): implement scrollbar in lua
- feat(tasks): implement tasks.lua
- feat(toml): add `data.toml` api
- feat(toml): add lua toml previewer
- feat(vim): add functions
- perf(a.lua): log alternate file name
- perf(git): display stderr on exit
- perf(git): update GitGutter status
- perf(git): use notify api && redrawstatus
- perf(job): use table for job stdout/stderr data
- perf(notify): change notify borderchars
- feat(log): improve logger api
- feat(git): add `:Git blame`
- perf(repl): update statusline on exit
- perf(scrollbar): set scrollbar zindex to 10
- perf(spinners): handle none exist data
- perf(spinners): handle spinners function error
- feat(repl): add spinners
- feat(repl): rewrite repl plugin in lua
- feat(guide): rewrite leader guide in lua
- feat(git): add `:Git rm` command
- feat(git): add `:Git reset` command
- feat(git): add `:Git cherry-pick` command
- feat(git): add `:Git fetch` command
- feat(tasks): implement tasks.lua
- feat(toml): add lua toml previewer
- feat(alternate): make `:A` command support toml
- feat(toml): add `data.toml` api
- perf(git): update GitGutter status
- perf(git): display stderr on exit
- feat(git): add `:Git mv` command
- feat(git): add `:Git clean` command
- perf(notify): change notify borderchars
- feat(git): add `:Git remote` for git.lua
- feat(git): implement git.lua
- perf(a.lua): log alternate file name
- feat(pastebin): use lua pastebin for nvim 0.9.0+
- feat(pastebin): add pastebin.lua
- feat(job): improve job api
- perf(statusline): indent statusline mode text
- revert(rtp): remove `:GrepRtp` command
- revert(ui): revert indent-blankline config
- revert(url)!: revert url
- feat(runner): rewrite code runner in lua
- perf(scrollbar): set scrollbar zindex to 10
- perf(git): use notify api && redrawstatus
- feat(vim): add functions
- feat(job): support env and clear_env opt
- feat(job): support detached opt
- feat(ctags): implement ctags#update in lua
- feat(flygrep): use job api instead of vim.fn.jobstart
- perf(job): use table for job stdout/stderr data
- feat(api): add lua job api
## Bugfixs
- fix(scrollbar): fix unsaved error
- fix(git): ignore remote manager when close win
- fix(telescope): fix telescope loadconf
- fix(git): skip unsupported subcommand
- fix(git): make error message clear
- fix(git): fix git log command
- fix(git): fix wrong branch name
- fix(git): fix wrong remote line number
- fix(git): rename cherry_pick to cherry-pick
- fix(cmdlinemenu): fix cmdlinemenu lua api
- fix(git.vim): fix plog_jobid
- fix(shortlog): fix `:Git shortlog` command
- fix(docker): update init.toml url
- fix(flygrep): fix version checking
- fix(indent-blankline): set max_indent_increase = 1
- fix(install): update repo url in install.cmd
- fix(tasks): use `vim.tbl_extend` instead
- fix(scala): use old fork ensime-vim
- fix(cmdlinemenu): fix cmdlinemenu lua api
- fix(toml): use integer instead
- fix(toml): fix E706
- fix(typescript): fix lsp key binding for typescript
- fix(job): close stdout/stderr on exit
- fix(runner): add get function
- fix(pastebin): fix pastebin get visual selection
- fix(pastebin): change url on stdout
- fix(job): support cwd option and check executable
- fix(flygrep): fix version checking
- fix(job): support shell/shellcmdflag opt
- fix(opt): remove guioption for nvim
- fix(pastebin): change url on stdout
- fix(pastebin): fix pastebin get visual selection
- fix(runner): add get function
- fix(scala): use old fork ensime-vim
- fix(tasks): use `vim.tbl_extend` instead
- fix(toml): fix E706
- fix(toml): use integer instead
- fix(typescript): fix lsp key binding for typescript
- fix(indent-blankline): set max_indent_increase = 1
## Docs
- docs(index): update index page
- docs(help): add `:h SpaceVim-dev-merge-request`
- docs(faq): change repo url
- docs(roadmap): update roadmap page
- docs(community): update community page
- docs(index): update index page
- docs(index): remote shields link
- docs(roadmap): update completed item
- docs(roadmap): update roadmap page
- docs(community): update community en page
- docs(community): add link to x account
- docs(website): update index page
- docs(roadmap): update roadmap page
- docs(job): update `:h spacevim-api-job`
- docs(alternate): update doc for toml configuration file
- docs(chat): remove IRC rooms from community page
- docs(chat): update chat link
- docs(fhead): update following-head page
- docs(git.vim): remove duplicate tag
- docs(dev): update development page
- docs(website): update following head page
- docs(development): update merge request steps
- docs(dev): update upstream url
- docs(remote): use custom remote url
- docs(website): move language link to menu
- docs(website): fix language link
- docs(website): add language link
- docs(development): update development page
- docs(index): update description
- docs(following-head): update following-head page
- docs(sponsors): update website
- docs(community): remove twitter account
- docs(community): use mail list only
- docs(doc): remove github link
- docs(faq): update spacevim repo link
- docs(feedback): remove matrix room from development page
- docs(font): update doc for default font
- docs(img): use img.spacevim.org for img url
- docs(index): remove github action list
- docs(index): remove matrix link
- docs(doc): remove github link
- docs(font): update doc for default font
- docs(faq): update spacevim repo link
- docs(readme): update link to community page
- docs(readme): update readme of gitlab
- docs(website): clear badges
- docs(index): update cn index
- docs(index): update index page
- docs(readme): update readme
- docs(job): update `:h spacevim-api-job`
- docs(logger): update doc for `:h SpaceVim#logger#derive`
- docs(lua): add lua post
- docs(readme): add link to development page
- docs(feedback): remove matrix room from development page
- docs(readme): clear readme
- docs(index): remove matrix link
- docs(community): use mail list only
- docs(chat): remove IRC rooms from community page
- docs(alternate): update doc for toml configuration file
- docs(roadmap): update roadmap and todos
- docs(task): doc for lua task provider
- docs(img): use img.spacevim.org for img url
- docs(readme): add link to development page
- docs(readme): remove cn readme
- docs(readme): remove project layout
- docs(readme): update link to community page
- docs(readme): update readme
- docs(readme): update readme of gitlab
- docs(roadmap): update roadmap and todos
- docs(sponsors): update website
- docs(task): doc for lua task provider
- docs(website): clear badges
- docs(chat): update chat link
## Tests
- test(nvim): fix nvim test in linux
- test(flygrep): fix input_list test
- test(nvim): use `--headless` for neovim test
- test(win): fix win test
- test(win): add codecov
- test(win): fix windows test
- test(nvim): add test for nvim 0.7.0 - 0.9.1
- test(a.lua): fix test for a.lua
- test(a.vim): fix alternate test
- test(alternate): remove alternate file test for wiki
- test(flygrep): fix input_list test
- test(nvim): add test for nvim 0.7.0 - 0.9.1
- test(nvim): fix nvim test in linux
- test(nvim): use `--headless` for neovim test
- test(win): add codecov
- test(win): fix win test
- test(win): fix windows test
- ci(Makefile): remove coverage
- ci(gitlab): add gitlab-ci.yml
- ci(gitlab): update ci file
- ci(page): remove gitlab-ci
- ci(script): remove script
## Others
- chore(conduct): remove CODE_OF_CONDUCT.md
- chore(todo): add todo item for git log
- chore(telescope): update telescope to 0.1.5
- ci(script): remove script
- ci(Makefile): remove coverage
- Merge branch 'xinfengwu-master-patch-82221' into 'master'
- Merge branch 'xinfengwu-master-patch-44776' into 'master'
- Merge branch 'nouzername-master-patch-09495' into 'master'
- Replace the original function Chinese2Digit with the equivalent function...
- Update cscope.md
- Update cscope.md
- add the shortcut for jumping to a symbol
- Update cscope.md
- Update cscope.md
- build(vader): use headless option
- chore(a.lua): remove alternate json conf
- chore(dev): remove github specific files
- chore(git): use gitlab instead
- chore(gitignore): add public directory to gitignore
- chore(install): switch to gitlab
- chore(issue): remove default title
- chore(issue): remove title
- chore(linguist): ignore iconv file
- chore(linguist): update gitattributes
- chore(spinners): change file format
- chore(ui): update bundle indent-blankline.nvim
- chore(url): change to dev.spacevim.org
- chore(version): update version to v2.3.0-dev
- chore(website): bundle jquery 1.7.1
- ci(page): remove gitlab-ci
- chore(website): remove github corner
- chore(install): switch to gitlab
- chore(git): use gitlab instead
- ci(gitlab): update ci file
- chore(gitignore): add public directory to gitignore
- ci(gitlab): add gitlab-ci.yml
- chore(dev): remove github specific files
- revert(rtp): remove `:GrepRtp` command
- chore(spinners): change file format
- revert(url)!: revert url
- chore(url): change to dev.spacevim.org
- chore(a.lua): remove alternate json conf
- chore(linguist): update gitattributes
- chore(linguist): ignore iconv file
- chore(issue): remove title
- chore(issue): remove default title
- revert(ui): revert indent-blankline config
- chore(ui): update bundle indent-blankline.nvim
- chore(version): update version to v2.3.0-dev
<!-- SpaceVim follow HEAD end -->
## Latest Release