Open katehorowitz opened 6 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 open
1, 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/
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