Skip to Content
Documents๐Ÿ“Š Data & History๐Ÿ” Stats & search

Stats & Search

Stats & search in CodeExpander (Pro) means usage statistics (expand count, characters saved, time saved, trends, achievements) and full-text search over snippets with nested refs. See how much you use and where; keep your library findable. Access via Settings โ†’ Usage statistics and the global search shortcut.

CodeExpander Pro Usage Statistics


Group Management

  • Tree groups + prefix: Create groups by scenario (e.g. AI-Prompts/Code, Review); child snippets expand with prefix. See Introduction ยท Snippets.
  • New / Edit / Delete: Right-click group tree or toolbar; add subgroup, rename, delete. Move snippets out before deleting a group; groups donโ€™t store snippet content.
  • Sort & drag: Groups support drag-to-sort for custom display order.
  • Sync toggle: Each group can be set to โ€œinclude in syncโ€ or not, keeping sensitive or temporary snippets local.

View in Settings โ†’ Usage statistics (Pro): expand count, characters saved, time saved (estimate), streak; today/week/month, daily progress and goal (1โ€“1000); top snippets, 7-day/30-day trends.

MetricDescription
Total expandsCumulative snippet trigger count
Characters savedCumulative characters saved from manual typing
Time savedEstimated time saved based on average typing speed
StreakLongest consecutive days with at least one expand
Top snippetsMost frequently used snippets
Trend charts7-day / 30-day daily expand count

Achievements unlock by expand count, streak, and characters saved. You can export CSV, refresh, or reset (reset with care).


Global shortcut opens search; full-text over snippet name and content; expand or jump to edit.

Search Capabilities

  • Snippet name: Search by abbreviation or snippet name
  • Snippet content: Search keywords in snippet body
  • Shortcut access: Configure global search shortcut in Settings โ†’ Shortcuts
  • Instant expand: Press Enter on a search result to expand, or click to jump to edit

Tips

  • When you forget an abbreviation, use global search by keyword
  • With a large library, search is faster than browsing groups
  • Combine with group prefixes: search ai- to quickly list all AI-related snippets

Nested Snippets

In snippet content use %s:abbr%; on expand it inserts the content of the snippet with that abbreviation.

Example

header snippet (abbr header):

--- Author: %filltext&name=Author% Date: %date% ---

body snippet (abbr doc):

%s:header% ## Overview %fillarea&name=Overview% ## Details %fillarea&name=Details%

Type doc + Tab โ†’ header content expands first โ†’ then fill the body form.

Notes

  • Donโ€™t nest too deep (recommended max 3 levels) to avoid complex logic
  • Nested snippets can have their own FillIn variables; they pop up in order
  • Circular nesting (A nests B, B nests A) is detected and prevented

See FillIn ยท Function variables.


Version History

Auto-saved version history per file:

  • Auto-save: Edits are automatically saved to history as you work
  • Version sources: Initial creation, auto-save, manual save, and apply operations
  • Version diff: Side-by-side visual comparison; review line-level or formatted differences
  • Restore: Roll back to any previous version with one click

Use Cases

  • Accidental deletion โ†’ recover from history in seconds
  • Compare changes โ†’ see exactly what changed between edits
  • Experimental edits โ†’ try new ideas safely, roll back anytime
Last updated