Skip to content

feat(browse): edit hovered document from a collection column#57

Merged
gugahoi merged 1 commit into
mainfrom
feat/browse-edit-doc
Jun 25, 2026
Merged

feat(browse): edit hovered document from a collection column#57
gugahoi merged 1 commit into
mainfrom
feat/browse-edit-doc

Conversation

@gugahoi

@gugahoi gugahoi commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • e now edits the highlighted document while hovering in a collection column, not just when inside a document column — matching the existing d/R/c handlers.
  • startEditCmd fetches the document data when it isn't already loaded (the hovered-item case); the doc-column path is unchanged.
  • Rejection message updated to "Select a document to edit" when the highlighted item is a sub-collection.

Test plan

  • go build -o firestore . passes
  • go test ./... passes
  • make integration-test passes
  • Manual smoke test in TUI: hover a doc in a collection → e opens editor; hover a sub-collection → status message; inside a doc column → still edits

The "e" keymap previously only edited a document when the active column
was itself a document column. Now it also edits the highlighted document
when hovering over it in a collection column, matching the d/R/c handlers.

startEditCmd fetches the document data when not already loaded.
@gugahoi
gugahoi merged commit 2f40485 into main Jun 25, 2026
2 checks passed
@gugahoi
gugahoi deleted the feat/browse-edit-doc branch June 25, 2026 12:16
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