notesy::hidden
Any note, file or folder can be hidden from the sidebar's tree, as Explorer and Finder hide things: right-click it and pick Hide from sidebar. Hidden isn't gone: it's still found by search and the quick switcher, linked to and opened. The Notes heading's right-click menu has Hidden items: Show hidden items brings them in sight, faded and marked with a struck-through eye, until Stop showing hidden items (the palette has it too), and each of them is there to show again. Show in sidebar puts one back for good: on its right-click menu, in its hover card, or in Hidden items.
What's hidden is kept in the vault, in .notesy/hidden, a path a line, so
it goes where the vault goes and stays out of the notes. Moving or renaming
something hidden keeps it hidden; moving it to the Trash takes it off the
list.
A plugin's script can hide and show things too, with the ui permission.
rustuse notesy::{events, hidden, log};
pub fn ready() {
// Attachments out of the way.
hidden::hide("attachments");
if hidden::is_hidden("attachments/scan.pdf") {
log::info("in a hidden folder, so hidden with it");
}
events::on("hidden.changed", |e| log::info(`${e.path}: ${e.hidden}`));
}
| Function | What it does |
|---|---|
hidden::hide(path) |
Hides the note, file or folder at path (in the vault: "Projects/Old"). Fails for a path with nothing at it. |
hidden::show(path) |
Shows it again. |
hidden::list() |
Everything hidden, as paths in the vault. |
hidden::is_hidden(path) |
Whether it's hidden, or in a folder that is. |
Hearing hidden.changed (path, and hidden: whether it's hidden now)
takes notes.read, as the vault's other events do (notesy::events).
Every page
- Overview
- plugin.toml: Every field of plugin.toml
- Permissions: What a plugin can ask for, when notesy asks, and what changes it
- Scripts: How a script runs: its lifecycle, events, limits and errors
- Packing and installing: Making, checking, signing, packing and installing
- notesy::log: Lines for its log on the Plugins page
- notesy::events: Hearing what happens, and every event
- notesy::commands: Adding commands, and running notesy's
- notesy::store: Keeping its own data
- notesy::settings: Reading its settings
- notesy::secrets: Keys and tokens, in the system keychain
- notesy::notes: Reading and changing the vault's notes
- notesy::editor: The note in front
- notesy::templates: What templates fill in, and functions of its own for them
- notesy::files: A folder of its own
- notesy::links: Opening pages in the browser, naming links after their pages
- notesy::clipboard: Copying and pasting
- notesy::view: What panels, tabs and sections show
- notesy::panels and notesy::views: Adding side panels and tabs
- notesy::sections: Sidebar sections
- notesy::menus: Items in notesy's right-click menus
- notesy::hidden: Hiding notes, files and folders from the tree
- notesy::status: Status bar items
- notesy::notices: Notices
- notesy::dialogs: Asking in a dialog, notesy's kinds or its own
- notesy::wizards: Pages one after another, like a setup
- notesy::cards: Its part of the tree's hover cards
- notesy::boards: Boards' cards and arrows, and kinds of card of its own
- notesy::blocks: Drawing its fenced blocks
- notesy::icons: Drawing its own icons
- notesy::net: Requests to the sites it names
- notesy::accounts: Signing in to a service
- notesy::json: Reading and writing JSON
- notesy::toml: Reading and writing TOML
- notesy::yaml: Reading and writing YAML, and a note's front matter
- notesy::time: Now, written in the user's time zone, dates read, how long ago
- notesy::math: Trigonometry and the like, for drawing
- Names: Icon, Color, Tone, Side, Method, Command, Menu, Sidebar, Event: Notesy's names as enums
- notesy::preview: Its own screens for notesy preview
- notesy::perf: Timing its own work
- notesy::tex: Math macros for every note's formulas