Git Product home page Git Product logo

silverbullet-treeview's People

Contributors

djm2k avatar joekrill avatar mrmugame avatar slashtechno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

silverbullet-treeview's Issues

Use theme values from SilverBullet space

Currently the theme values are hard-coded. Ideally the theme values would be injected from SilverBullet so any customizations are applied. Pretty sure this is going to require changes in SilverBullet codebase.

Tree View conflicts with deleting pages

When having Tree View installed, it seems my instance is not deleting pages. Without it, it works.

Instance in docker, tried in online mode

Deleting page from space editor.plug.js:1:10463
Deleting page space.ts:60:14
XHRDELETE
https://sb.domain.com/test music.md
[HTTP/2 500  4ms]

An exception was thrown as a result of invoking function deletePage error: Failed to delete file: editor.plug.js:1:696
Error running command Failed to delete file: editor_ui.tsx:146:28
Flushed widget cache to store

the XHR Delete has the following Response Unregistered syscall clientStore.get

Clever regex to limit Journal days?

I'm curious if anyone knows a clever regex to hide all but the last few entries in the Journal folders?

This was as close as I have gotten thus far, I just have to update it monthly.
image

The treeview plugin prevents deleting files in the space

This error gets thrown on the backend:

silverbullet-1  | Deleting file Library/Extra/Snippet/taskp.md
silverbullet-1  | An exception was thrown as a result of invoking function showIfEnabled error: Unregistered syscall clientStore.get
silverbullet-1  | Error dispatching event page:deleted to treeview.showIfEnabled: Unregistered syscall clientStore.get
silverbullet-1  | Error deleting attachment Error: Unregistered syscall clientStore.get
silverbullet-1  |     at wa.onMessage (file:///silverbullet.js:117:27964)
silverbullet-1  |     at Worker.worker.onmessage (file:///silverbullet.js:117:27483)
silverbullet-1  |     at Worker.wrappedHandler (ext:deno_web/02_event.js:1401:12)
silverbullet-1  |     at innerInvokeEventListeners (ext:deno_web/02_event.js:754:7)
silverbullet-1  |     at invokeEventListeners (ext:deno_web/02_event.js:801:5)
silverbullet-1  |     at dispatch (ext:deno_web/02_event.js:658:9)
silverbullet-1  |     at Worker.dispatchEvent (ext:deno_web/02_event.js:1043:12)
silverbullet-1  |     at Worker.#pollMessages (ext:runtime/11_workers.js:258:12)
silverbullet-1  |     at eventLoopTick (ext:core/01_core.js:169:7)

Add mechanism to not show all pages or highlight some differently

Hi,
forst off thanks for the great work! I really appreciate having an overview over all pages. I just thought it might be ever so slightly less distracting if it were possible to hide some of the notes from the treeview or maybe show them in different color or at the top or bottom of the list. Background is that when scanning the tree, system pages like SETTINGS, PLUGS, index and the Library folder of course show up as well, but I'm rarely looking for these.
Anyways, thanks for reading ๐Ÿ˜‰

Deleting files not updating tree correctly.

This works fine running locally, but on my deployed instance the tree refreshes but the deleted file still appears. Manually refreshing it again removes it, so perhaps it's a race-condition issue?

Feature Request: support page decoration

Hi,

Thanks for this nice plug. I think it would be really nice if we can make the page decoration available at treeview, which is available since 0.8.2. See this community thread and this release documentation.

Nice thing about this is when you are viewing your daily notes in the treeview and you also decorate your daily notes via meta e.g. mood: <some mood>, then you can get an overview on how the past days are for you. which would be pretty nice I think!

`reveal-current-page` may be unnecessary

It seems the button with the action reveal-current-page may be unnecessary. If I understand correctly, its function is to highlight the current page. However, it seems the default page is always highlighted anyway. In addition, pressing a page in the treeview navigates to it.
The button to reveal the current page

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.