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

Allow to open only the selected notebooks / tags / search results in the graph #13

Open
ivangretsky opened this issue Feb 2, 2021 · 15 comments
Labels
enhancement New feature or request
Milestone

Comments

@ivangretsky
Copy link

Good day!

This is a great plugin! Thanks for giving your time to the community!

It would be great if we could open only the selected notebook/notebooks and/or tag/tags and/or search results in the graph view. That would allow to scope/slice things down in big databases and to have different unrelated projects in one database. Not exactly Zettelkasten way, but a flexible one)

@treymo treymo added this to the 1.0.0 milestone Feb 3, 2021
@treymo treymo added the enhancement New feature or request label Feb 3, 2021
@treymo
Copy link
Owner

treymo commented Feb 3, 2021

Hey, this is a great idea and something I'm realizing I really want too!

I'm picturing a little toolbar at the top of the graph area that let's you set up some filtering of notebooks/tags. If you have any UI ideas, definitely feel free to share a picture because I think it requires a little thought so that it isn't too complicated.

@ivangretsky
Copy link
Author

Another (maybe additional) way to do it is adding an item to the right-click menu on the notebooks/tags in the sidebar and the search bar in the notes list. Something like "Show in node graph". And to indicate somewhere in the graph area what selection is currently showing.

treymo added a commit that referenced this issue Feb 4, 2021
Simple notebook filtering in Graph UI Settings panel #13
@treymo
Copy link
Owner

treymo commented Feb 4, 2021

@ivangretsky I'm not sure if modifying the right-click menu in the sidebar is possible for a plugin to do.

For now, I added a setting where you can add comma-separated list of Notebook names to filter out. I started playing around with something nicer (like a Tree with checkboxes for notebooks to include or exclude) but i remembered I don't know how to HTML/JS/CSS and I resorted to this as a temporary stop-gap measure.

v0.9.2 should show up in Joplin any minute and will have the Settings UI for this.

@ivangretsky
Copy link
Author

I'm not sure if modifying the right-click menu in the sidebar is possible for a plugin to do.

Should we ask Laurent about this?

@void-m4110c
Copy link

void-m4110c commented Apr 28, 2021

Hi,
would it be possible to add a function to recursively exclude notebooks? When I add a notebook to the comma-separated list, only the contents of that specific notebook are hidden from the graph, all the sub-notebooks still show up.

As I have a hierarchical notebook structure, it would be tedious to write down hundreds of notebooks into the comma-separated list... Entering the parent-notebook and thus excluding all sub-notebooks would be a great feature.

Thanks in advance!

@treymo
Copy link
Owner

treymo commented May 13, 2021

I'm going to add in the recursive filtering option this week (hopefully)

@treymo
Copy link
Owner

treymo commented May 13, 2021

I just cut a new version v0.9.7 that will have the option to recursively filter out all sub-notebooks enabled by default. It will be available as soon as Joplin picks up the new version from NPM

@ivangretsky
Copy link
Author

ivangretsky commented May 13, 2021

Cool!
I've updated to the new version. But cant figure out, how to use this new feature. Could you give me a hint?

@treymo
Copy link
Owner

treymo commented May 13, 2021

There should be a checkbox in the Graph UI section of Preferences (Open Joplin’s Preferences and the graph UI/other plugin settings should be towards the bottom )

@ivangretsky
Copy link
Author

I think I found it. Thanks @treymo !

  1. It says "filter out" notebooks. Am I right that this means exclude those from the graph? Asking this as I thought there will be an "include only" option to only show graph of one or more selected ntebooks. Is it on the roadmap?
  2. For the "include only" option manual selection of the notebooks in the UI seems preferable (actually it seems preferable in any case))) Do you think it will be possible to implement some kind of UI for this other than in the plugin settings? The best would be to just right click select all the notebooks one needs, or at least have the input next to the graph.

@treymo
Copy link
Owner

treymo commented May 18, 2021

  1. That's correct, right now it's exclusion instead of inclusion. Yes, I left this issue open because I do plan on adding an "include only" version of this setting.
  2. I agree but it's a much larger development task - especially for me who doesn't work with UI/JS development professionally. If you want to provide some UI mock-ups or something, maybe someone else or I can try to tackle the UI improvements down the road.

@ivangretsky
Copy link
Author

I have crafted a mockup (if I dare call it so))
I suggest putting the input for included or excluded notebooks in the bottom of the pane. To choose if we should include/exclude the notebooks we can use a checkbox. Maybe there will be enough place for all the settings there.

Joplin-Mockup

@treymo
Copy link
Owner

treymo commented May 20, 2021

haha, It's clear enough. Maybe I'll try creating a little toolbar up top that has this filtering as one of the options.

I also notice that I really should support other languages.... I'll see what i18n support looks like in Joplin plugins

@viktorov-aa
Copy link

viktorov-aa commented Aug 13, 2021

I am trying to filter out unnecessary notebooks in the plugin settings. Why doesn't it work. I see all notes in graph. What am I doing not atk?

image

UPD, I understand it. If notebook not exitst, then exclude not working.

PS
Sorry for my english :)

@treymo
Copy link
Owner

treymo commented Aug 13, 2021

Why doesn't it work. I see all notes in graph. What am I doing not atk?

It is hard for me to know from just the screenshot. You need to make sure the names in that list have a comma between them and matches the notebook name exactly. For example: Are you sure its "01.TODO" and not "01. TODO" (there is a space in the second one vs no space in the first one and your screenshot)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants