ttscoff / nv

MultiMarkdown version of Notational Velocity with Markdown editing features and preview
http://brettterpstra.com/projects/nvalt
BSD 3-Clause "New" or "Revised" License
1.78k stars 197 forks source link

Cannot find custom.css in /Application Support/nvALT/ #520

Open katehorowitz opened 6 years ago

katehorowitz commented 6 years ago

Disclaimer: not a developer here, be kind.

I would love to make some changes to the nvALT CSS, but I'm not able to find the files references here http://brettterpstra.com/projects/nvalt/ on my computer. On the command line, I've navigated to ~/Library/Application Support/nvALT (I don't have a Notational Velocity folder in the Application Support directory) but I only see " . .." in that directory when I type ls -a. Is there something else I need to download to get access to custom.css? Please halp, and thank you!

Edit: On a mac, 10.13.5

ernstki commented 4 years ago

I had the same question and came here. Bummer it took two years to get your answer. Maybe this can help someone else.

Watching what files are being opened by nvALT with sudo dtruss -fn nvALT -t open1, it looks like it's really looking for template.html and custom.css in ~/Library/Application Support/nvALT, contrary to what it says on the home page.

I was able to copy the "factory" versions from /Applications/nvALT.app/Contents/Resources and then customize from there. It will be necessary to restart nvALT each time after having made changes to these files.

cd /Applications/nvALT.app/Contents/Resources  # or wherever the app is
cp custom.css ~/Library/Application\ Support/nvALT
cp templateclean.html ~/Library/Application\ Support/template.html

You might notice another file in the Resources directory for the app named template.html. This includes some JavaScript in a <script> tag at the bottom that was probably written ages ago, and I didn't even bother trying to get that to work. For me at least, the two files customclean.css and custom.css were identical.


1 http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/