Compare commits
2 Commits
5e7e5b6f33
...
40b17c99e4
Author | SHA1 | Date | |
---|---|---|---|
40b17c99e4 | |||
cf083e866b |
3
.bashrc
3
.bashrc
@ -21,7 +21,8 @@ export PATH="$HOME/.local/bin:$PATH:/home/linuxbrew/.linuxbrew/bin"
|
|||||||
set -o vi # VIM mode for bash
|
set -o vi # VIM mode for bash
|
||||||
bind -m vi-command 'Control-l: clear-screen'
|
bind -m vi-command 'Control-l: clear-screen'
|
||||||
bind -m vi-insert 'Control-l: clear-screen'
|
bind -m vi-insert 'Control-l: clear-screen'
|
||||||
export MANPAGER="/bin/sh -c \"sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | vim --appimage-extract-and-run --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
# export MANPAGER="/bin/sh -c \"sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | vim --appimage-extract-and-run --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
||||||
|
export MANPAGER="vim --appimage-extract-and-run +MANPAGER --not-a-term -c 'set ts=8 nolist' -"
|
||||||
shopt -s checkwinsize # dynamic columns update after every cmd
|
shopt -s checkwinsize # dynamic columns update after every cmd
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"description": "AI Browser",
|
"description": "AI Browser",
|
||||||
"glare": "AppImage",
|
"glare": "AppImage",
|
||||||
"last_update": "2024-09-17T15:03:29Z",
|
"last_update": "2025-01-01T14:34:08Z",
|
||||||
"version": "2.15.1",
|
"version": "3.2.0",
|
||||||
"downloads": "/home/jaandrle/bin/pinokio"
|
"downloads": "/home/jaandrle/bin/pinokio"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -112,9 +112,9 @@
|
|||||||
"group": "nondev",
|
"group": "nondev",
|
||||||
"file_name": "upscayl",
|
"file_name": "upscayl",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-06-01T14:48:20Z",
|
"last_update": "2024-12-25T13:44:34Z",
|
||||||
"downloads": "/home/jaandrle/bin/upscayl",
|
"downloads": "/home/jaandrle/bin/upscayl",
|
||||||
"version": "v2.11.5",
|
"version": "v2.15.0",
|
||||||
"glare": "AppImage"
|
"glare": "AppImage"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -134,11 +134,11 @@
|
|||||||
"name": "Fedistar",
|
"name": "Fedistar",
|
||||||
"description": "Multi-column Mastodon, Pleroma, and Friendica client for desktop",
|
"description": "Multi-column Mastodon, Pleroma, and Friendica client for desktop",
|
||||||
"group": "nondev",
|
"group": "nondev",
|
||||||
"file_name": "fedistar",
|
"file_name": "fedistar.appimage",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-10-23T12:45:06Z",
|
"last_update": "2025-01-04T02:33:29Z",
|
||||||
"downloads": "/home/jaandrle/bin/fedistar",
|
"downloads": "/home/jaandrle/bin/fedistar.appimage",
|
||||||
"version": "v1.9.12",
|
"version": "v1.10.1",
|
||||||
"glare": ".*amd64.*.AppImage"
|
"glare": ".*amd64.*.AppImage"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,9 +148,9 @@
|
|||||||
"group": "ai",
|
"group": "ai",
|
||||||
"file_name": "ollama",
|
"file_name": "ollama",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-11-08T19:58:30Z",
|
"last_update": "2024-12-17T21:54:59Z",
|
||||||
"downloads": "/home/jaandrle/bin/ollama",
|
"downloads": "/home/jaandrle/bin/ollama",
|
||||||
"version": "v0.4.1",
|
"version": "v0.5.4",
|
||||||
"glare": "linux-amd64"
|
"glare": "linux-amd64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -173,8 +173,8 @@
|
|||||||
"file_name": "vim",
|
"file_name": "vim",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"downloads": "/home/jaandrle/bin/vim",
|
"downloads": "/home/jaandrle/bin/vim",
|
||||||
"version": "v9.1.0857",
|
"version": "v9.1.0990",
|
||||||
"last_update": "2024-11-12T01:13:27Z",
|
"last_update": "2025-01-06T01:20:31Z",
|
||||||
"glare": "GVim.*x86_64.*.AppImage"
|
"glare": "GVim.*x86_64.*.AppImage"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -182,11 +182,11 @@
|
|||||||
"name": "Escrcpy",
|
"name": "Escrcpy",
|
||||||
"description": "📱 Graphical Scrcpy to display and control Android, devices powered by Electron. | 使用图形化的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动。",
|
"description": "📱 Graphical Scrcpy to display and control Android, devices powered by Electron. | 使用图形化的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动。",
|
||||||
"group": "dev",
|
"group": "dev",
|
||||||
"file_name": "escrcpy",
|
"file_name": "escrcpy.appimage",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-11-08T07:30:51Z",
|
"last_update": "2024-12-28T11:05:28Z",
|
||||||
"downloads": "/home/jaandrle/bin/escrcpy",
|
"downloads": "/home/jaandrle/bin/escrcpy.appimage",
|
||||||
"version": "v1.26.3",
|
"version": "v1.28.3",
|
||||||
"glare": ".*x86_64.*.AppImage"
|
"glare": ".*x86_64.*.AppImage"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -208,9 +208,9 @@
|
|||||||
"group": "ai",
|
"group": "ai",
|
||||||
"file_name": "jan",
|
"file_name": "jan",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-10-24T08:03:18Z",
|
"last_update": "2025-01-06T08:15:48Z",
|
||||||
"downloads": "/home/jaandrle/bin/jan",
|
"downloads": "/home/jaandrle/bin/jan",
|
||||||
"version": "v0.5.7",
|
"version": "v0.5.13",
|
||||||
"glare": ".*x86_64.*.AppImage"
|
"glare": ".*x86_64.*.AppImage"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -220,10 +220,22 @@
|
|||||||
"group": "ai",
|
"group": "ai",
|
||||||
"file_name": "Chatbox",
|
"file_name": "Chatbox",
|
||||||
"exec": "yes",
|
"exec": "yes",
|
||||||
"last_update": "2024-11-07T15:22:15Z",
|
"last_update": "2024-12-16T12:18:19Z",
|
||||||
"downloads": "/home/jaandrle/bin/Chatbox",
|
"downloads": "/home/jaandrle/bin/Chatbox",
|
||||||
"version": "v0.10.2",
|
"version": "v0.10.3",
|
||||||
"glare": ".*x86_64.*.AppImage"
|
"glare": ".*x86_64.*.AppImage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"repository": "Martichou/rquickshare",
|
||||||
|
"group": "nondev",
|
||||||
|
"name": "r-quick-share",
|
||||||
|
"description": "Rust implementation of NearbyShare/QuickShare from Android for Linux and macOS.",
|
||||||
|
"file_name": "r-quick-share",
|
||||||
|
"exec": "yes",
|
||||||
|
"downloads": "/home/jaandrle/bin/r-quick-share",
|
||||||
|
"glare": ".*main.*amd64.AppImage",
|
||||||
|
"last_update": "2024-08-21T21:17:54Z",
|
||||||
|
"version": "v0.11.2"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -26,5 +26,5 @@
|
|||||||
"complexity": ["error", 15]
|
"complexity": ["error", 15]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
61
.vimrc
61
.vimrc
@ -1,10 +1,13 @@
|
|||||||
""" VIM config file | Jan Andrle | 2024-10-21 (VIM >=9.1 AppImage)
|
""" VIM config file | Jan Andrle | 2025-01-07 (VIM >=9.1 AppImage)
|
||||||
"" #region B – Base
|
"" #region B – Base
|
||||||
scriptencoding utf-8 | set encoding=utf-8
|
scriptencoding utf-8 | set encoding=utf-8
|
||||||
set pythonthreedll=/lib/x86_64-linux-gnu/libpython3.10.so.1.0
|
set pythonthreedll=/lib/x86_64-linux-gnu/libpython3.10.so.1.0
|
||||||
let $BASH_ENV = "~/.bashrc"
|
let $BASH_ENV = "~/.bashrc"
|
||||||
set runtimepath^=~/.vim/bundle/*
|
set runtimepath^=~/.vim/bundle/*
|
||||||
packadd! matchit
|
packadd! matchit
|
||||||
|
packadd! cfilter
|
||||||
|
let g:ft_man_folding_enable = 1
|
||||||
|
runtime! ftplugin/man.vim
|
||||||
" set hidden
|
" set hidden
|
||||||
|
|
||||||
set title
|
set title
|
||||||
@ -51,10 +54,10 @@
|
|||||||
""" #endregion BB
|
""" #endregion BB
|
||||||
"" #endregion B
|
"" #endregion B
|
||||||
"" #region H – Helpers
|
"" #region H – Helpers
|
||||||
|
" TODO DEL
|
||||||
command! -nargs=? CLscratch 10split | enew | setlocal buftype=nofile bufhidden=wipe noswapfile nobuflisted | if <q-args>!='' | execute 'normal "'.<q-args>.'p' | endif | nnoremap <buffer> ;q :q<cr>
|
command! -nargs=? CLscratch 10split | enew | setlocal buftype=nofile bufhidden=wipe noswapfile nobuflisted | if <q-args>!='' | execute 'normal "'.<q-args>.'p' | endif | nnoremap <buffer> ;q :q<cr>
|
||||||
|
|
||||||
cabbrev ALTR ALTredrawSyntax
|
cabbrev ALTR ALTredrawSyntax
|
||||||
set grepprg=LC_ALL=C\ grep\ -nrsH
|
|
||||||
command! -nargs=0
|
command! -nargs=0
|
||||||
\ ALTredrawSyntax edit | exec 'normal `"' | exec 'set ft='.&ft
|
\ ALTredrawSyntax edit | exec 'normal `"' | exec 'set ft='.&ft
|
||||||
command! -complete=command -bar -range -nargs=+
|
command! -complete=command -bar -range -nargs=+
|
||||||
@ -77,16 +80,6 @@
|
|||||||
augroup quickfix
|
augroup quickfix
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd QuickFixCmdPost * call <sid>QuickFixCmdPost()
|
autocmd QuickFixCmdPost * call <sid>QuickFixCmdPost()
|
||||||
autocmd filetype qf
|
|
||||||
\ if filter(getwininfo(), {i,v -> v.winnr == winnr()})[0].loclist
|
|
||||||
\| nnoremap <buffer> ;q :lclose<cr>
|
|
||||||
\| nnoremap <buffer> ;w :lgetbuffer<CR>:lclose<CR>:lopen<CR>
|
|
||||||
\| nnoremap <buffer> ;s :ldo s///gc \| update<c-left><c-left><c-left><right><right>
|
|
||||||
\| else
|
|
||||||
\| nnoremap <buffer> ;q :cclose<cr>
|
|
||||||
\| nnoremap <buffer> ;w :cgetbuffer<CR>:cclose<CR>:copen<CR>
|
|
||||||
\| nnoremap <buffer> ;s :cdo s///gc \| update<c-left><c-left><c-left><right><right>
|
|
||||||
\| endif
|
|
||||||
augroup END
|
augroup END
|
||||||
"" #endregion H
|
"" #endregion H
|
||||||
"" #region SLH – Status Line + Command Line + History (general) + Sessions + File Update, …
|
"" #region SLH – Status Line + Command Line + History (general) + Sessions + File Update, …
|
||||||
@ -97,6 +90,7 @@
|
|||||||
cabbrev wbw w<bar>bw
|
cabbrev wbw w<bar>bw
|
||||||
|
|
||||||
set sessionoptions-=options
|
set sessionoptions-=options
|
||||||
|
" TODO DEL
|
||||||
command! -nargs=1
|
command! -nargs=1
|
||||||
\ CLSESSIONcreate :call mini_sessions#create(<f-args>)
|
\ CLSESSIONcreate :call mini_sessions#create(<f-args>)
|
||||||
command! -nargs=0
|
command! -nargs=0
|
||||||
@ -125,6 +119,7 @@
|
|||||||
set cursorline cursorcolumn " Always show current position
|
set cursorline cursorcolumn " Always show current position
|
||||||
set number foldcolumn=2 " enable line numbers and add a bit extra margin to the left
|
set number foldcolumn=2 " enable line numbers and add a bit extra margin to the left
|
||||||
set colorcolumn=+1 " …marker visual
|
set colorcolumn=+1 " …marker visual
|
||||||
|
" TODO DEL
|
||||||
command -nargs=? SETtextwidth if <q-args> | let &textwidth=<q-args> | let &colorcolumn='<args>,120,240' | else | let &textwidth=250 | let &colorcolumn='120,240' | endif
|
command -nargs=? SETtextwidth if <q-args> | let &textwidth=<q-args> | let &colorcolumn='<args>,120,240' | else | let &textwidth=250 | let &colorcolumn='120,240' | endif
|
||||||
SETtextwidth " wraping lines and show two lines
|
SETtextwidth " wraping lines and show two lines
|
||||||
set nowrap " Don't wrap long lines by default
|
set nowrap " Don't wrap long lines by default
|
||||||
@ -181,7 +176,6 @@
|
|||||||
" use <c-v>§ for §
|
" use <c-v>§ for §
|
||||||
inoremap § <esc>
|
inoremap § <esc>
|
||||||
set nrformats-=octal
|
set nrformats-=octal
|
||||||
command! -nargs=1 SETTOGGLEnrformats if &nf=~<q-args> | set nf-=<args> | else | set nf+=<args> | endif
|
|
||||||
|
|
||||||
let g:htl_css_templates=1
|
let g:htl_css_templates=1
|
||||||
let g:markdown_fenced_languages= [ 'javascript', 'js=javascript', 'json', 'html', 'php', 'bash', 'vim', 'vimscript=javascript', 'sass' ]
|
let g:markdown_fenced_languages= [ 'javascript', 'js=javascript', 'json', 'html', 'php', 'bash', 'vim', 'vimscript=javascript', 'sass' ]
|
||||||
@ -202,7 +196,6 @@
|
|||||||
let g:rainbow#blacklist = [203,9]
|
let g:rainbow#blacklist = [203,9]
|
||||||
autocmd VimEnter * try
|
autocmd VimEnter * try
|
||||||
\| call rainbow_parentheses#toggle() | catch | endtry
|
\| call rainbow_parentheses#toggle() | catch | endtry
|
||||||
command! SETTOGGLErainbowParentheses call rainbow_parentheses#toggle()
|
|
||||||
" HIGHLIGHT&YANK plugins machakann/vim-highlightedyank & cwordhi.vim
|
" HIGHLIGHT&YANK plugins machakann/vim-highlightedyank & cwordhi.vim
|
||||||
let g:highlightedyank_highlight_duration= 250
|
let g:highlightedyank_highlight_duration= 250
|
||||||
let g:cwordhi#autoload= 1
|
let g:cwordhi#autoload= 1
|
||||||
@ -211,6 +204,7 @@
|
|||||||
if v:version > 703 || v:version == 703 && has("patch541")
|
if v:version > 703 || v:version == 703 && has("patch541")
|
||||||
set formatoptions+=j | endif " Delete comment character when joining commented lines
|
set formatoptions+=j | endif " Delete comment character when joining commented lines
|
||||||
set smarttab
|
set smarttab
|
||||||
|
" TODO DEL
|
||||||
command! -nargs=1 SETtab let &shiftwidth=<q-args> | let &tabstop=<q-args> | let &softtabstop=<q-args>
|
command! -nargs=1 SETtab let &shiftwidth=<q-args> | let &tabstop=<q-args> | let &softtabstop=<q-args>
|
||||||
SETtab 4
|
SETtab 4
|
||||||
set backspace=indent,eol,start " Allow cursor keys in insert mode: http://vi.stackexchange.com/a/2163
|
set backspace=indent,eol,start " Allow cursor keys in insert mode: http://vi.stackexchange.com/a/2163
|
||||||
@ -284,9 +278,17 @@
|
|||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType gitmessengerpopup setlocal keywordprg=git\ show
|
autocmd FileType gitmessengerpopup setlocal keywordprg=git\ show
|
||||||
augroup END
|
augroup END
|
||||||
command! -nargs=0
|
|
||||||
\ GITblameThis GitMessenger
|
|
||||||
"" #endregion GIT
|
"" #endregion GIT
|
||||||
|
"" #region AI
|
||||||
|
let g:codeium_disable_bindings = 1
|
||||||
|
imap <script><silent><nowait><expr> <f3><f3> codeium#Accept()
|
||||||
|
imap <script><silent><nowait><expr> <f3><w> codeium#AcceptNextWord()
|
||||||
|
imap <script><silent><nowait><expr> <f3><j> codeium#AcceptLine()
|
||||||
|
imap <f3>n <Cmd>call codeium#CycleCompletions(1)<CR>
|
||||||
|
imap <f3>N <Cmd>call codeium#CycleCompletions(-1)<CR>
|
||||||
|
imap <f3>d <Cmd>call codeium#Clear()<CR>
|
||||||
|
imap <f3>! <Cmd>call codeium#Complete()<CR>
|
||||||
|
"" #endregion AI
|
||||||
"" #region COC – COC and so on, compilers, code/commands completions
|
"" #region COC – COC and so on, compilers, code/commands completions
|
||||||
let g:coc_global_extensions= ['coc-css', 'coc-docthis', 'coc-emmet', 'coc-emoji', 'coc-pretty-ts-errors', 'coc-eslint', 'coc-gitmoji', 'coc-html', 'coc-json', 'coc-marketplace', 'coc-phpls', 'coc-sh', 'coc-snippets', 'coc-styled-components', 'coc-svg', 'coc-tabnine', 'coc-tsserver']
|
let g:coc_global_extensions= ['coc-css', 'coc-docthis', 'coc-emmet', 'coc-emoji', 'coc-pretty-ts-errors', 'coc-eslint', 'coc-gitmoji', 'coc-html', 'coc-json', 'coc-marketplace', 'coc-phpls', 'coc-sh', 'coc-snippets', 'coc-styled-components', 'coc-svg', 'coc-tabnine', 'coc-tsserver']
|
||||||
" https://github.com/antonk52/cssmodules-language-server
|
" https://github.com/antonk52/cssmodules-language-server
|
||||||
@ -298,21 +300,6 @@
|
|||||||
\ "settings": {}
|
\ "settings": {}
|
||||||
\ })
|
\ })
|
||||||
autocmd FileType scss setl iskeyword+=@-@
|
autocmd FileType scss setl iskeyword+=@-@
|
||||||
command -nargs=? ALTmake if &filetype=='javascript' | compiler jshint | elseif &filetype=='php' | compiler php | endif
|
|
||||||
\| if <q-args>!='' | silent make <args> | else | silent make '%' | endif | checktime | silent redraw! " …prev line, hotfix (filetype detection does’t works)
|
|
||||||
function <sid>ToggleALTmakeOnWrite()
|
|
||||||
if exists('#ALTmake_auto#BufWritePost')
|
|
||||||
augroup ALTmake_auto
|
|
||||||
autocmd!
|
|
||||||
augroup END
|
|
||||||
else
|
|
||||||
augroup ALTmake_auto
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWritePost *.{php,js,mjs} execute 'ALTmake' | call <sid>QuickFixCmdPost()
|
|
||||||
augroup END
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
command! ALTmakeOnWrite call <sid>ToggleALTmakeOnWrite()
|
|
||||||
function! CustomKeyWord(word)
|
function! CustomKeyWord(word)
|
||||||
if(a:word=="gulp_place")
|
if(a:word=="gulp_place")
|
||||||
highlight link gulp_place ErrorMsg
|
highlight link gulp_place ErrorMsg
|
||||||
@ -336,8 +323,6 @@
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nmap <silent> gd <Plug>(coc-definition)
|
nmap <silent> gd <Plug>(coc-definition)
|
||||||
nmap <leader>/ :CocSearch
|
|
||||||
nmap <leader>? <leader>/
|
|
||||||
command! -nargs=* -complete=customlist,<sid>SCommandCocActionComplete CocAction call CocActionAsync(<f-args>)
|
command! -nargs=* -complete=customlist,<sid>SCommandCocActionComplete CocAction call CocActionAsync(<f-args>)
|
||||||
function s:SCommandCocActionComplete(argLead, cmdLine, cursorPos)
|
function s:SCommandCocActionComplete(argLead, cmdLine, cursorPos)
|
||||||
return readfile(expand('~/.vim/pack/coc/start/coc.nvim/doc/tags'), 'r')
|
return readfile(expand('~/.vim/pack/coc/start/coc.nvim/doc/tags'), 'r')
|
||||||
@ -360,7 +345,6 @@
|
|||||||
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
||||||
endif
|
endif
|
||||||
""" #endregion COCP
|
""" #endregion COCP
|
||||||
" TODO DEL: command! -nargs=? SETFOLDcoc :call CocAction('fold', <f-args>)
|
|
||||||
|
|
||||||
command! -nargs=? CLhelpMy if <q-args>!='' | exec 'map '.<q-args> | else | call popup_notification([
|
command! -nargs=? CLhelpMy if <q-args>!='' | exec 'map '.<q-args> | else | call popup_notification([
|
||||||
\ 'Custom mappings starting: '.mapleader.',§, ů, ;, U, ž',
|
\ 'Custom mappings starting: '.mapleader.',§, ů, ;, U, ž',
|
||||||
@ -422,6 +406,7 @@
|
|||||||
return <sid>show_documentation_vim('h '.a:word)
|
return <sid>show_documentation_vim('h '.a:word)
|
||||||
endif
|
endif
|
||||||
if (!CocAction('hasProvider', 'hover'))
|
if (!CocAction('hasProvider', 'hover'))
|
||||||
|
if &filetype=='man' | call dist#man#PreGetPage(0) | return 0 | endif
|
||||||
return feedkeys('K', 'in')
|
return feedkeys('K', 'in')
|
||||||
endif
|
endif
|
||||||
if &filetype=='html' && coc#source#custom_elements#hover(a:word)!=0
|
if &filetype=='html' && coc#source#custom_elements#hover(a:word)!=0
|
||||||
@ -434,14 +419,6 @@
|
|||||||
call execute(a:cmd) | call histadd("cmd", a:cmd)
|
call execute(a:cmd) | call histadd("cmd", a:cmd)
|
||||||
endfunction
|
endfunction
|
||||||
"" #endregion COC
|
"" #endregion COC
|
||||||
let g:codeium_disable_bindings = 1
|
|
||||||
imap <script><silent><nowait><expr> <f3><f3> codeium#Accept()
|
|
||||||
imap <script><silent><nowait><expr> <f3><w> codeium#AcceptNextWord()
|
|
||||||
imap <script><silent><nowait><expr> <f3><j> codeium#AcceptLine()
|
|
||||||
imap <f3>n <Cmd>call codeium#CycleCompletions(1)<CR>
|
|
||||||
imap <f3>N <Cmd>call codeium#CycleCompletions(-1)<CR>
|
|
||||||
imap <f3>d <Cmd>call codeium#Clear()<CR>
|
|
||||||
imap <f3>! <Cmd>call codeium#Complete()<CR>
|
|
||||||
|
|
||||||
" vim: set textwidth=250 :
|
" vim: set textwidth=250 :
|
||||||
" vim>60: set foldmethod=marker foldmarker=#region,#endregion :
|
" vim>60: set foldmethod=marker foldmarker=#region,#endregion :
|
||||||
|
@ -9,7 +9,7 @@ const path_home= $.xdg.home`Obrázky/Bing Image Of The Day/`;
|
|||||||
const path_info= join(path_home, "images.json");
|
const path_info= join(path_home, "images.json");
|
||||||
|
|
||||||
$.api()
|
$.api()
|
||||||
.version("2024-11-14")
|
.version("2025-01-06")
|
||||||
.command("pull", "Pull new/today image(s)")
|
.command("pull", "Pull new/today image(s)")
|
||||||
.action(async function pull(){
|
.action(async function pull(){
|
||||||
const images= {
|
const images= {
|
||||||
@ -96,8 +96,15 @@ async function getImagePath(shift= 0){
|
|||||||
prop: "wikitext",
|
prop: "wikitext",
|
||||||
text: `{{Potd/${date}}}`,
|
text: `{{Potd/${date}}}`,
|
||||||
});
|
});
|
||||||
|
const pluckCaption= response=> response.expandtemplates.wikitext;
|
||||||
|
const caption_fallback= await fetchGet({
|
||||||
|
action: "expandtemplates",
|
||||||
|
prop: "wikitext",
|
||||||
|
text: `{{Potd/${date} (en)}}`,
|
||||||
|
}).then(pluckCaption);
|
||||||
const caption= pipe(
|
const caption= pipe(
|
||||||
response=> response.expandtemplates.wikitext,
|
pluckCaption,
|
||||||
|
caption=> caption !== `[[:Template:Potd/${date} (cs)]]` ? caption : caption_fallback,
|
||||||
caption=> caption.replace(/\[\[.*?\]\]/g, m=> m.slice(2, -2).split("|").reverse()[0]),
|
caption=> caption.replace(/\[\[.*?\]\]/g, m=> m.slice(2, -2).split("|").reverse()[0]),
|
||||||
caption=> caption.replace(/''(.*?)''/g, "„$1”"),
|
caption=> caption.replace(/''(.*?)''/g, "„$1”"),
|
||||||
)(await fetchGet({
|
)(await fetchGet({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user