Center (or show) notebook in notebook-window after search for a note

hello,

i'd like to have the notebook placed/marked/centered in notebook-window (left column) - after opened a note in the search results with double click.

Perhaps also in "Note Tabs"-Plugin? See Joplin Plugins - Note Tabs.

thanks :slightly_smiling_face:

1 Like

I agree that auto-focus on an active notebook would be useful.
Workaround:

  1. define a keyboard shortcut called "Focus: Sidebar" and use it after opening a note from the search modal window.
  2. define a keyboard shortcut called "Focus: Note body" and use it right after the previous shortcut.

P.S. I would change the topic title to "Auto Highlight active notebook after Goto Anything"

I created a new file "......\JoplinProfile\keymap-desktop.json":

[
  {
    "command": "Focus: Sidebar",
    "accelerator": F7
  },
    {
    "command": "Focus: Note body",
    "accelerator": F8
  }
]
  • STRG+P

  • open node from search result

  • F7 highlights the node name (in node-window)

  • but F8 seems to do nothing (i want to move/show the notebook that contains the node in the middle of left column)

  • ups .... how to change topic title?

thank you

I use "Tools->Options->Keyboard Shortcuts" to change shortcuts.
Do you want to highlight both active notebook and active note?
Here are the shortcuts you need to execute sequentially after you're done searching your note:

  • "Focus: Sidebar";
  • "Focus: Note list";
  • "Focus: Note body"

P.S. don't forget to remove your keymap-desktop.json changes if you decide to proceed with UI interface.

my mistake i thougt you want me to add a NEW shortcut ...... file is removed.

it's not just highlighting ...... i want to see the notebook in the left sidebar when i'm working with a node.

  • this works for me now perfect (with your help): STRG+P -> click on a node -> CTRL+SHIFT+S; the notebook is visible & highlighted (darker black) in the left sidebar, sometimes at the top or bottom (middle would be nice)

  • i prefer to use search in the node-list (same search). CTRL+SHIFT+S works "sometimes". in my example (screenshot) CTRL+SHIFT+S does nothing. i expect "raspberry" to be highlighted. see breadcromb.

It's laborious for me to scroll always to the notebook.

I don't understand the problem. If you could explain it again I might help you

After opening a note with Goto Anything, it would be nice to have the opened notebook list item centered in the panel (when possible).

Viewing notes after searching in the note list closes all notebooks, which means there's no open notebook list item for Focus: Sidebar to highlight.

The Note Tabs plugin breadcrumbs doesn't show which notebook is open. The component only shows the open note's position in the notebook hierarchy.

Using your screenshot as an example, the current way to open the notebook of the open note after search is by clicking the In: Raspberry button. This would open the Raspberry notebook, which then has its notebook list item highlighted. However, the note list items would also change from the search results above to the notes inside the Raspberry notebook.

My understanding of your request is that after searching in the note list, the notebook list item holding the open note should be highlighted so it can be focused, but without opening it or changing the note list contents. Is this correct?

Why do you search using the search bar above the note list?
I see that the "Focus: Sidebar" keyboard shortcut doesn't work in this case. And it's a bug IMHO.

But I suggest using "Goto Anything" and the fitting "Focus: Sidebar" keyboard shortcut - it focuses on the active notebook in this case.

Can't advise on "Note Tabs" plugin as I don't use it.

why not using this search bar? the search results of "Goto Anything" (STRG+SHIFT+P) disappear after opening a note. so i had to search again. the search bar keep the results.

this works now for me (thank you both)

  1. i search - using the search bar above the notelist
  2. i get a seach result - below the search bar
  3. i open a note from the result by clicking once
  4. CTRL+SHIFT+S does not work (@muzak: no open/selected notebook, right?)
  5. i click on the notebook-name "above" the note (here "In: MS Outlook")

  1. now the notebook is "opened/selected" and CTRL+SHIFT+S works !!!!!!

What would be fine:

  1. CTRL+SHIFT+S places the notebook in the middle of the column; not at bottom or top so i can see sub-notebooks

  1. doing step 3 automatically triggers step 7 .....i open a note from the search result & notebook is shown (in the midlle) of the left column (without "In: MS Outlook" and CTRL+SHIFT+S)

Dan & Muzak: thank you very much