Composer v3 Beta: TOC Focusing by Search Term

derekvan's Avatar

derekvan

07 Jul, 2015 03:32 PM

I really find the TOC search pane useful, allowing me to search for all headers with a key term. What would make this feature even more useful for my use case, is if the document then focused on all the sections that matched the search term.

In other words, for this document:

# Fruit
## Bananas
Lorem ipsum  
## Apples
Lorem Ipsum  
# Shopping List
## Produce
### Bananas 
Lorem ipsum  
## Dairy
### Milk
Lorem ipsum

A search term of "bananas" in the TOC sidebar would yield the following in the editor window:

# Fruit
## Bananas
Lorem ipsum  
...
# Shopping List
## Produce
### Bananas 
Lorem ipsum  
...
  1. Support Staff 1 Posted by Fletcher on 08 Jul, 2015 12:13 PM

    Fletcher's Avatar

    I'll consider this, but I'm not sure the performance in reality would be that great.

    The TOC search is live -- updating quickly with each key stroke.

    Depending on what's happening, the last time I looked at timing the text folding was much slower (still very quick to a human, but much slower to the computer). Rapidly toggling text folding on and off for different sections as you type in the search field would at the least be pretty visually jarring, and might slow the computer down a bit for a second or two while things catch up.

    In either case, thank you for the suggestion!!

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  2. Fletcher closed this discussion on 10 Dec, 2015 11:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac