Skip to content

feat: support startup reveal/focus by path#3

Draft
Yukaii wants to merge 2 commits into
almonk:mainfrom
Yukaii:feature/focus-item-by-path
Draft

feat: support startup reveal/focus by path#3
Yukaii wants to merge 2 commits into
almonk:mainfrom
Yukaii:feature/focus-item-by-path

Conversation

@Yukaii

@Yukaii Yukaii commented Feb 23, 2026

Copy link
Copy Markdown

note: based on #2

Summary

  • Add startup path resolution so bontree accepts directory, file, or explicit focus path forms
  • Introduce ui.NewWithFocus to reveal/focus a target by absolute or relative path by expanding ancestor directories
  • Fix initial viewport scroll behavior so focused items don't render from a cut-off top when terminal size is not known yet
  • Document updated usage with optional focus-path

Testing

  • go test ./ui ./config ./theme ./tree ./icons .

sample integration with kakoune

kakoune-bontree-integration.mov

Allow launching bontree with a file or focus path, reveal the item by expanding ancestors, and keep initial viewport scroll stable until window size is known.
@vercel

vercel Bot commented Feb 23, 2026

Copy link
Copy Markdown

@Yukaii is attempting to deploy a commit to the Replay Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant