summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-03-20 02:48:17 -0700
committerDavid Luevano Alvarado <david@luevano.xyz>2021-03-20 02:48:17 -0700
commitca438405872705d8c7e20c14c9216d41529d7994 (patch)
treeff158a67a220c034cc574d353456b5832f47e2fe
parent65c4a44f1e87bc58b5d90a4e5fc8136d8ceedd9f (diff)
Fix sbg bug... for some reason names package creates a command here...
-rw-r--r--.config/nvim/init.vim20
-rwxr-xr-x.local/bin/lsync4
-rwxr-xr-x.local/bin/names8
-rwxr-xr-x.local/bin/sbg8
4 files changed, 27 insertions, 13 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 6484e5d..357ccba 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -85,17 +85,17 @@ set showcmd
" highlight link JavaIdentifier NONE
" Syntax
- " Plug 'vim-syntastic/syntastic'
- " set statusline+=%#warningmsg#
- " set statusline+=%{SyntasticStatuslineFlag()}
- " set statusline+=%*
- " let g:syntastic_always_populate_loc_list=1
- " let g:syntastic_auto_loc_list=1
- " let g:syntastic_check_on_open=1
- " let g:syntastic_check_on_wq=0
- " let g:syntastic_tex_checkers=['chktex']
+ Plug 'vim-syntastic/syntastic'
+ set statusline+=%#warningmsg#
+ set statusline+=%{SyntasticStatuslineFlag()}
+ set statusline+=%*
+ let g:syntastic_always_populate_loc_list=1
+ let g:syntastic_auto_loc_list=1
+ let g:syntastic_check_on_open=1
+ let g:syntastic_check_on_wq=0
+ let g:syntastic_tex_checkers=['chktex']
"" let g:syntastic_tex_lacheck_quiet_messages = {'regex': '\Vpossible unwanted space at'}
- " let g:syntastic_tex_chktex_quiet_messages = {'level': 'warnings'}
+ let g:syntastic_tex_chktex_quiet_messages = {'level': 'warnings'}
" JavaScript
Plug 'yuezk/vim-js'
diff --git a/.local/bin/lsync b/.local/bin/lsync
index 533710d..d414703 100755
--- a/.local/bin/lsync
+++ b/.local/bin/lsync
@@ -3,8 +3,8 @@
# This pushes everything! (except for blog, since it needs a bit more management)
echo "rsync: pushing (U) local (lz) to webserver (lzserver). (luevano.xyz)"
-rsync -rtuvP --delete-after --exclude-from=$HOME/dox/www/luevano.xyz/.rsyncignore $HOME/dox/www/luevano.xyz/ lzr:/var/www/
+rsync -rtuvP --delete-after --exclude-from=$HOME/dox/www/luevano.xyz/.rsyncignore $HOME/dox/www/luevano.xyz/ luevanor:/var/www/
# This pushes the blog.
echo "rsync: pushing (U) local (lz) to webserver (lzserver). (blog.luevano.xyz)"
-rsync -rtuvP --delete-after $HOME/dox/www/luevano.xyz/blog/dst/ lzr:/var/www/blog/
+rsync -rtuvP --delete-after $HOME/dox/www/luevano.xyz/blog/dst/ luevanor:/var/www/blog/
diff --git a/.local/bin/names b/.local/bin/names
new file mode 100755
index 0000000..9b60b10
--- /dev/null
+++ b/.local/bin/names
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+import re
+import sys
+from names.main import main
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
diff --git a/.local/bin/sbg b/.local/bin/sbg
index 6eeb46f..259a4d6 100755
--- a/.local/bin/sbg
+++ b/.local/bin/sbg
@@ -124,7 +124,7 @@ list_files_add_mod(){
fi
else
# If not, just print the new file data.
- echo $fn_ts" 0 "$fn
+ echo $fn_ts" 0 "$fn_n
fi
done <<EOF
$fn
@@ -145,8 +145,13 @@ md_to_html(){
b=$(echo "$line" | cut -d' ' -f1)
m=$(echo "$line" | cut -d' ' -f2)
+ # Here, parse-no-autolink is used
+ # so no link starting with 'www'
+ # is converted to an actual a tag with an
+ # actual link, ew.
html=$(
lowdown \
+ --parse-no-autolink \
--html-no-skiphtml \
--html-no-escapehtml \
--html-no-owasp \
@@ -364,6 +369,7 @@ dst=$(readlink_f "$dst")
IGNORE=$(
if test -f "$src/.sbgignore"
then
+ # Currently not working...
while read -r x
do
test -n "$x" || continue