Skip to content

fix: refresh on buffer file rename#21

Open
3dyuval wants to merge 1 commit into
serhez:mainfrom
3dyuval:main
Open

fix: refresh on buffer file rename#21
3dyuval wants to merge 1 commit into
serhez:mainfrom
3dyuval:main

Conversation

@3dyuval
Copy link
Copy Markdown

@3dyuval 3dyuval commented Mar 26, 2026

marks stored each buffer's filename once at insertion and never updated it. Renaming a file left bento displaying the stale old name since no BufFilePost/BufFilePre autocmd was registered.

  • Adds a BufFilePost autocmd to trigger a menu refresh immediately when a buffer's filename changes
  • Syncs stored mark.filename with the live buffer name in update_marks() to handle renames from any source (LSP rename, shell, Neogit, etc.)

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