Skip to content
Samuel Walladge edited this page Oct 12, 2017 · 10 revisions

Display markdown notes formatted in terminal

  1. install mdv
  2. make a wrapper /usr/local/sbin/mdless
    #!/bin/zsh
    # https://superuser.com/questions/1059781/what-exactly-is-in-bash-and-in-zsh
    /usr/bin/less -R -c =(mdv "$1")
    # /usr/bin/less -R -c =(mdv -A "$1") # light background (not yet supported)
  3. set it in ~/.snclirc
    cfg_pager = /usr/local/sbin/mdless
    

(Thanks to @s5unty)

Use vim modeline in notes to auto-set filetype

I personally store a lot of my notes in Votl/VimOutliner format. Specific to Vim, I put a modeline at the end of these notes (note that Emacs also supports modelines):

; vim:ft=votl

Now when I edit this note Vim will automatically load the votl plugin. Lots of possibilities here...

(Thanks to @insanum)

Open links quickly

  • install urlview or urlscan
  • pipe the note to urlview/urlscan: |urlview
  • select and open a link!
Clone this wiki locally