Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip: Navigate with Sidebar Notes 💖 #52

Open
lukemt opened this issue Aug 31, 2023 · 0 comments
Open

Tip: Navigate with Sidebar Notes 💖 #52

lukemt opened this issue Aug 31, 2023 · 0 comments

Comments

@lukemt
Copy link
Contributor

lukemt commented Aug 31, 2023

I just realized the potential of sidebar notes in combination with opener.

see video, enjoy:

SidebarNotes.mov

This is the source code of nav note.md shown in the video:

# [[nav note]]
 
> - `$= dv.el("a", "Today", {cls: "internal-link", attr: { onclick: 'app.commands.executeCommandById("daily-notes")' } })`
> - [[Habit Tracker]]
> - [[Calendar]]


- [[rolling to do list moc]]
- `$= dv.el("a", "Smart Random Note", {cls: "internal-link", attr: { onclick: 'app.commands.executeCommandById("smart-random-note:open-random-note")' } })`
- [[Smart Random Notes with Dataview]]

## [[nav note|work space]]

- [[Notes on Kiss the Ground]]
- [[LYT Kit]]
- [[Some Greek Allusions]]
- [[Cassandra]]

## open tabs

\```dataviewjs

const openFiles = dv.app.workspace.getLayout().main.children[0].children.map((y) => y.state.state.file).filter((f)=>f)

dv.list(openFiles.map((f)=>dv.fileLink(f)))

\```

`$= dv.el("button", "♻️ Refresh", { attr: { onclick: 'app.commands.executeCommandById("dataview:dataview-force-refresh-views")' } })`

`$= dv.el('a', '❎ close all tabs', { attr: { onclick: 'confirm("Close em?") && app.commands.executeCommandById("workspace:close-others"); setTimeout(() => app.commands.executeCommandById("dataview:dataview-force-refresh-views"), 0)' } })`
@lukemt lukemt changed the title Sidebar Notes Sidebar Notes 💖 Aug 31, 2023
@lukemt lukemt changed the title Sidebar Notes 💖 Tip: Navigate with Sidebar Notes 💖 Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant