Focus - ElsaTam/obsidian-extended-graph GitHub Wiki

The focus feature helps you easily identify and track important nodes in your graph through visual enhancements and highlighting options.

Settings

Active node scale factor

  • Determines how much the focused node is enlarged
  • Default value: 1.8 (80% larger than normal nodes)
  • Set to 1 if you don't need the scaling

scaling active node

Focus

The focus feature helps you easily identify and track important nodes in your graph through visual enhancements and highlighting options.

focus feature settings

Active Note Focus

Scale Factor

  • The node corresponding to your currently active note will be enlarged when this feature is enabled
  • Determines how much the focused node is enlarged compared to normal nodes
  • Default value: 1.8 (80% larger than normal nodes)
  • Set to 1 for no scaling
  • Automatically updates as you navigate between notes

focus in graph

Node Highlighting

Highlight open nodes

  • Adds a colored border around nodes that correspond to currently open tabs
  • Helps you quickly identify which notes you have open across your workspace
  • Visual indicator persists as long as the corresponding tab remains open

Highlight search results

  • Adds a colored border around nodes that match results from the core Search plugin
  • Only highlights nodes when search results are currently displayed
  • Automatically updates when search terms or results change

Flicker Commands

Two commands are available to temporarily highlight specific node groups:

  • Flicker open nodes: briefly flashes all nodes corresponding to open tabs
  • Flicker search results nodes: briefly flashes all nodes that match current search results

Customization

Border and flicker colors

You can customize the colors used for highlighting and flicker effects using CSS:

.workspace-leaf-content[data-type="graph"],
.workspace-leaf-content[data-type="localgraph"] {
    --text-highlight-bg: red;
}

This CSS variable controls:

  • Border color for highlighted search results
  • Flicker color for both flicker commands

Zoom on node

You can also zoom on a specific node lost somewhere in your graph from the graph controls panel. The plugin doesn't need to be enabled for that.

image