So with vi...
in .bashrc
alias vi="vi -c AnsiEsc"
in .vimrc
"view existing timeline
nnoremap <f5> 1GdG:r !mtl<CR>1G
"download and view timeline
nnoremap <f6> 1GdG:r !mtl 1<CR>1G
"show image
nnoremap <C-I> <C-Right> :! /usr/bin/feh -FZ <cWORD> <CR>
"play media
nnoremap <C-V> <C-Right> :! /usr/bin/ffplay -fs <cWORD> <CR>
run vi and push F5 (or F6) to view your home timeline
The standard netrw plugin lets you load urls (in a browser) by pushing g x
with a bit more stuff, surely, doing a like or boost should be possible (notwithstanding that your can open a toot in the browser for that, but rather try calling the API with curl)
No comments:
Post a Comment