NNYJ Tweaks
unlistedby nnyj
Personal tweaks: open vault .html pages with sibling CSV append, hide the mobile navbar in landscape.
obsidian-nnyj-tweaks
Personal Obsidian tweaks. Opens vault .html pages in a view that can read and append to CSV files beside the page, so a chart page and its data stay plain files that sync and work offline.
Features
- Opens
.htmlfiles in a tab, relative<script src>paths resolve to vault files - Isolated iframe, the page has no access to Obsidian's
app - Answers page messages to read or append a sibling
*.csv, rows quoted by the plugin - Reloads the page when a file in its folder changes, debounced to 500 ms
- Hides the mobile navbar in landscape while an html view is active
- Clears Obsidian's view padding and keeps clear of the Android navigation buttons
Page messages
A page posts to window.parent and the plugin answers only its own iframe, only for a plain *.csv file name in the page's folder.
[!NOTE] The isolated page cannot
fetchvault files, so it reads its CSV through these messages.
| Message | Fields | Reply |
|---|---|---|
nnyj-html-view-read | id, file | nnyj-html-view-data with id and text, or error |
nnyj-html-view-append | file, fields (strings) | none, the file change reloads the page |
Install
Download main.js, styles.css, manifest.json from Releases into .obsidian/plugins/nnyj-tweaks/ and enable NNYJ Tweaks under Community plugins.
Build
npm install
npm run build
npm run lint
OBSIDIAN_PLUGIN_DIR=<vault>/.obsidian/plugins/nnyj-tweaks npm run build also copies the build into the vault.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.