You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
/me is listening to “Free Money” by Patti Smith
Work in progress regarding tagging
and reorganizing my BibTeX database.
I wrote a minimal vimrc file to be used on external servers, as a replacement
for my Neovim full config. I recommend minimal settings discussed by Romain
Lafourcade if you’re lacking inspiration or want to
try some zero-plugin config, BTW. It appears that shift insert in a rectangular
selection is very slow with default settings in Vim 9. The culprit seems to be
ttimeoutlen which defaults to 1000 (i.e., the default value of timeoutlen).
When set ttimeoutlen=100 like in Neovim, everything works smoothly. #vim

Thing is: BibDesk insists in transforming your clean BibTeX file into a mess. I already use bibclean to format my database:
if executable("bibclean")
setlocal formatprg=bibclean\ -align-equals\ -brace-protect\ -delete-empty-values\ -fix-accents\ -quiet
endif
Now, I need to resort to bibtool to remove extra stuff added by BibDesk on the fly:
nnoremap <silent> <buffer> g= :!bibtool -q -s -r ~/Documents/notes/clean-bibdesk.rsc % -o %<cr>
In my case, clean-bibdesk.rsc actually reads:
delete.field { bdsk-file-1 }
rename.field { bdsk-url-1=url }
key.generation = off
preserve.key.case = on
preserve.keys = on
print.line.length = 9999999
I guess it will evolve over time with the new surprises Bibdesk has in store for me.
An ever-changing collection of command line tools that I find useful on a daily basis or just fun to play with from time to time.
Making ASCII art in Vim: Learn you some
effective Vim motions. #vim