Foldable Headers and request for SEARCH, Auto-Table of Contents

I really like the foldable Headers feature. I would strongly suggest a global command to fold all headers (except those that contain other headers), such that the entire document is compacted, but all headers are still visible.

As a corollary to this feature, I would be elated with a automatic table of contents feature. I’m not sure about having it within the document itself, but perhaps as pop-up (on macOS) along with the top-right (i) icon or vertical … icon.

This all integrates with search. When searching for text or tags globally, I want to find all the notes with them, but most importantly I want to see as quickly as possible all the areas of the individual notes that contain the text or tag. I would love to see the list of found notes indicate how many instances were found in each note, and the ability to quickly go to them. I find having to search globally, and then click in the note and search again within the note to be ridiculous. I should just be able to scroll through (or Cmd-G or down-key) all the search results globalyl and see the terms found in context. I’m thinking Headers might the solution: in the middle pane notes list, when a search is performed, under the note entry, you can list the note’s headers that reference the sections that have that search text in them (the actual content would still be displayed in the third pane–the note content). Then tapping the down key goes from search result header to header (with the number of found instances indicated somewhere) or even search result to search result, and then when the note has no more search results, down key (or Cmd-G) moves to the next note and its first header with a search result.

6 Likes

I would really like a insertable TOC that automatically adds all headers and indents headers of a lower level. Thanks for considering.

A big Plus One to ces3001’s suggestions:

The foldable headers makes working with longer notes more manageable. A real TOC would escalate this benefit considerably! Adding an optional additional column to the sidebar would work for me. (An exemplar: Typora’s.)

Thank you.

1 Like

I just wanted to add my support for global fold/unfold. As I’ve been using the editor, the folding headers have been terrific, but it can be annoying to have to manually fold all the headers except the one I wan to work under. It would be easier to globally fold all and then unfold only the ones I want. Contra ces301’s suggestion, I would have the command trigger folding of all headers, including those that have further sub-headers below them. Thanks!

1 Like

A auto-generated table of contents would be awesome.
It can be in a mini-map kind of way (floating to the left or right) like the Xcode mini-map. Then no matter how long a note is you have easy access to see the different sections of a note

2 Likes

+1 for auto-generated table of contents & +1 for global fold/unfold.

When notes go beyond 12 headers, they become difficult to navigate and comprehend (for example, if you were writing a book summary). These features would improve Bear as a reference tool.

1 Like

Hi folks,

I’m happy to say that both automatic ToC and shortcuts for folding/unfolding are on our list.

At the moment we’re pushing for releasing the iOS version of the editor, but as soon as we’re done with that we’re going to add more core features to it :slight_smile:

Best.

3 Likes

That’s great to hear.

With regards to search. Being able to search for todo’s would be great. I know one can search for notes with @todo in the notes search field, but one cannot (that I can tell) search for the individual todo’s in the note itself. Searching for ”- " doesn’t work. Please see if this can be added.

I didn’t get a response here. Wondering if there is a way to search for todo items within a note?

Also, there doesn’t seem to be a way to see where in the document the cursor is in the TOC as it currently is implemented in Panda. I think that would be very useful to have some highlight or magnetic scroll-to-current position feature while scrolling the TOC.

Hi there,

At the moment it is not possible to search for a todo item specifically in a note.

There is @todo as you mentioned for searching notes containing todos. There is also a “Todo” section on the Sidebar to bring you to these types of notes (notes containing todos).

You can also use @task in the search bar to show the notes which include at least one todo element, either complete or not, and @done to show only the notes with all the todos completed.

As this isn’t exactly what you’re looking for, i’ll pass on your suggestion to the team.

Regarding TOC, when you click on the desired item in the TOC panel it will jump to and highlight it in the document, is this what you mean?

Thanks for your suggestions. I appreciate you forwarding the “search for todo’s within a note” capability request. As I think I mentioned in the post, the ultimate would be to collapse the whole note, except for the todo’s (and maybe a line or two of context around them), or with the forthcoming collapsing/ folding headers functionality, that headers containing todo’s are left unfolded, and all others are folded.)

As for the TOC, I meant the reverse of what you are saying: that the TOC itself indicates where the cursor (or view) currently is within the note. i.e., that the TOC display will “jump” to (or at least highlight) the heading within the TOC itself that is being edited or contains the cursor in the note.

Thanks!
Cecil

Hi Cecil,

Thank you for the additional information, and for clarifying what you mean regarding the TOC suggestion.

I’ll also pass this onto the team to have a think about when discussing future design options.