From 9aa9c25a4d2ced1ea41d1d981b3fad9fe28a17a6 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 6 Mar 2021 16:58:38 +0100 Subject: update --- .vim/pack/mvertes/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.vim/pack') diff --git a/.vim/pack/mvertes/install.sh b/.vim/pack/mvertes/install.sh index 36cf414..24a52f0 100755 --- a/.vim/pack/mvertes/install.sh +++ b/.vim/pack/mvertes/install.sh @@ -1,6 +1,6 @@ #!/bin/sh -e -plugins='https://github.com/mvertes/vimki https://github.com/fatih/vim-go' +plugins='git@github.com:mvertes/vimki git@github.com:fatih/vim-go' ht='vim -c "helptags doc" -c "q"' mkdir -p start -- cgit v1.3 From 684561b3c989f8421963c8c5c0cd0f38299551e0 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 5 Jun 2021 17:22:33 +0200 Subject: update --- .vim/pack/mvertes/install.sh | 8 ++++++-- Library/LaunchAgents/local.update_hosts.plist | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Library/LaunchAgents/local.update_hosts.plist (limited to '.vim/pack') diff --git a/.vim/pack/mvertes/install.sh b/.vim/pack/mvertes/install.sh index 24a52f0..388a620 100755 --- a/.vim/pack/mvertes/install.sh +++ b/.vim/pack/mvertes/install.sh @@ -1,7 +1,11 @@ #!/bin/sh -e -plugins='git@github.com:mvertes/vimki git@github.com:fatih/vim-go' -ht='vim -c "helptags doc" -c "q"' +plugins=' +git@github.com:mvertes/vimki +git@github.com:fatih/vim-go +git@github.com:othree/xml.vim +' +ht='test -d doc && vim -c "helptags doc" -c "q"' mkdir -p start cd start diff --git a/Library/LaunchAgents/local.update_hosts.plist b/Library/LaunchAgents/local.update_hosts.plist new file mode 100644 index 0000000..c4cf01e --- /dev/null +++ b/Library/LaunchAgents/local.update_hosts.plist @@ -0,0 +1,18 @@ + + + + + Label + local.update_hosts + Program + /Users/marc/bin/update_hosts + StartCalendarInterval + + Hour + 9 + Minute + 0 + + + -- cgit v1.3 From 445652e876c99ea24f7211f356c2a3d2c41d5d09 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 12 Jun 2021 00:24:05 +0200 Subject: update --- .vim/pack/mvertes/install.sh | 1 + .vimrc | 4 ---- Library/LaunchAgents/local.update_hosts.plist | 18 ------------------ 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 Library/LaunchAgents/local.update_hosts.plist (limited to '.vim/pack') diff --git a/.vim/pack/mvertes/install.sh b/.vim/pack/mvertes/install.sh index 388a620..48d5950 100755 --- a/.vim/pack/mvertes/install.sh +++ b/.vim/pack/mvertes/install.sh @@ -4,6 +4,7 @@ plugins=' git@github.com:mvertes/vimki git@github.com:fatih/vim-go git@github.com:othree/xml.vim +git@github.com:junegunn/fzf.vim ' ht='test -d doc && vim -c "helptags doc" -c "q"' diff --git a/.vimrc b/.vimrc index 6b26f67..68ae82a 100644 --- a/.vimrc +++ b/.vimrc @@ -12,15 +12,11 @@ set rtp+=/opt/homebrew/opt/fzf let g:fzf_preview = 'cat {}' " vimki plugin -let g:vimki_lower = "a-zàçéèêếëîïñôöùûü" autocmd filetype vimki syntax on autocmd filetype vimki set autowrite " autocmd filetype vimki setlocal spell spelllang=fr autocmd filetype vimki nmap z :FZF ~/Wiki -autocmd filetype vimki nnoremap = YpVr= -autocmd filetype vimki nnoremap - YpVr- - " vim-go plugin let g:go_def_mode = "gopls" let g:go_info_mode = "gopls" diff --git a/Library/LaunchAgents/local.update_hosts.plist b/Library/LaunchAgents/local.update_hosts.plist deleted file mode 100644 index c4cf01e..0000000 --- a/Library/LaunchAgents/local.update_hosts.plist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Label - local.update_hosts - Program - /Users/marc/bin/update_hosts - StartCalendarInterval - - Hour - 9 - Minute - 0 - - - -- cgit v1.3 From 4489efe4b753a2edfad646c4b3506c95f2348813 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 15 Nov 2022 17:30:45 +0100 Subject: update --- .Xresources | 3 ++- .bashrc | 2 ++ .vim/pack/mvertes/install.sh | 2 ++ bin/wag | 44 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) (limited to '.vim/pack') diff --git a/.Xresources b/.Xresources index ec47c2e..274ee87 100644 --- a/.Xresources +++ b/.Xresources @@ -13,7 +13,8 @@ URxvt.cursorColor: red Urxvt.font: 6x13 !URxvt.font: xft:Mono:size=12 !URxvt.font: xft:Mono:size=10 -URxvt.letterSpace: -1 +!URxvt.letterSpace: 0 +URxvt.letterSpace: 0 URxvt.perl-ext-common: font-size URxvt.keysym.C-Prior: font-size:increase URxvt.keysym.C-Next: font-size:decrease diff --git a/.bashrc b/.bashrc index b8f2d75..926f90e 100644 --- a/.bashrc +++ b/.bashrc @@ -145,3 +145,5 @@ meteo() { eval "$(direnv hook bash)" #export GITHUB_TOKEN=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 + +set -o vi diff --git a/.vim/pack/mvertes/install.sh b/.vim/pack/mvertes/install.sh index 48d5950..90cd4b3 100755 --- a/.vim/pack/mvertes/install.sh +++ b/.vim/pack/mvertes/install.sh @@ -5,6 +5,8 @@ git@github.com:mvertes/vimki git@github.com:fatih/vim-go git@github.com:othree/xml.vim git@github.com:junegunn/fzf.vim +git@github.com:mattn/libcallex-vim +git@github.com:bytesnake/vim-graphical-preview ' ht='test -d doc && vim -c "helptags doc" -c "q"' diff --git a/bin/wag b/bin/wag index 4e0c802..a1542b6 100755 --- a/bin/wag +++ b/bin/wag @@ -1,6 +1,8 @@ #!/bin/sh ## wag is a tool to generate static web sites +## +## Commands: unset CDPATH export LC_ALL=C IFS=' @@ -8,6 +10,48 @@ export LC_ALL=C IFS=' cmd=$(command -v "$0") +dest=./public + +footer() { + : +} + +# front parses front matter +front() { + { + read a b && [ "$a" = "---" ] && [ "$b" = "" ] || return + while read a b; do + [ "$a" = "---" ] && [ "$b" = "" ] && break + eval "front_${a%:}=\"$b\"" + done + } < "$1" +} + +## gen generates site content from source files +gen() { + [ -d "$dest" ] || mkdir -p "$dest" + for f in *.md; do + [ "$f" = "*.md" ] && continue + g="$dest/${f%.md}.html" + [ "$f" -ot "$g" ] && continue + echo "f: $f $g" + front "$f" + { + header + md2html "$f" + footer + } > "$g" + done +} + +header() { + cat <<- EOT + $front_title + + + EOT +} + ## help prints this program documentation help() { awk '/^## / {print substr($0, 4)}' "$cmd"; } -- cgit v1.3