Skip to content

Give the edit button a place of its own - #622

Open
andiwand wants to merge 1 commit into
mainfrom
edit-button-in-reach
Open

Give the edit button a place of its own#622
andiwand wants to merge 1 commit into
mainfrom
edit-button-in-reach

Conversation

@andiwand

Copy link
Copy Markdown
Member

A reader on F-Droid 4.16.0 wrote in: they had been editing LibreOffice documents for a while, and now found "keine Tastatur, keine Option, den Edit-Modus zu aktivieren".

Nothing is broken. I built assembleFossDebug at v4.16.0 and opened an .odt: "Edit document" is there and works, keyboard and all. It is just very hard to find. Until 4.13 it was a pencil in the toolbar with showAsAction="always"; since the redesign in 4.14 it is the fifth of nine rows behind the unlabeled ⋮ button, below three rows that are all about how the page looks — so the fold-out reads as a display menu, and the pencil is four rows past where anyone stops looking.

So the pencil gets a standing button again. DocumentActions.setActions now takes a list of standing actions instead of one primary, and DocumentFragment passes listOfNotNull(edit, search).

Edit above Search, not below. Search is offered for every document and Edit only where the core writes the format back, so this order keeps the button nearest the thumb the same one whatever is open. A PDF simply has one fewer button, and Search does not move.

Also: the standing buttons get a tooltip, since they have no label plate beside them.

editable, folded up editable, unfolded pdf
pencil, search, more edit is gone from the list search, more — search unmoved

testODT now asserts the button is displayed without unfolding anything, which is the whole point of the change; testPDF still asserts it does not exist. Both match on content description now that the standing button has no label text. Verified on a Pixel 9 Pro API 36 emulator: both tests pass, and one tap on the pencil goes straight into edit mode.

🤖 Generated with Claude Code

https://claude.ai/code/session_015oSBf26h2baTaQsdEvpM5F

Edit was a toolbar pencil until 4.13 and became the fifth of nine rows behind
the unfolding button in 4.14. A reader on F-Droid 4.16.0 wrote in asking where
it had gone, having found neither the row nor a keyboard.

DocumentActions now takes a list of standing actions rather than one primary,
and DocumentFragment puts Edit above Search in it. Above, so the button nearest
the thumb is Search whatever is open - Edit is only offered where the core can
write the document back.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015oSBf26h2baTaQsdEvpM5F
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