Skip to content

Give the sidebar's folders a menu: Rename, Hide or Unpin, and Trash - #158

Merged
dhh merged 3 commits into
mainfrom
sidebar-folder-menu
Nov 17, 2026
Merged

dhh merged 3 commits into
mainfrom
sidebar-folder-menu

Conversation

@dhh

@dhh dhh commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Right-click (or Alt+Return on) a folder in the sidebar's Home or Pinned section for its menu, its first entry highlighted, as the drives' menu's now is too:

  • Rename… renames the folder itself. A pinned folder's pin follows it to its new name, from here or from the files.
  • Hide takes one of home's folders out of Home. It's kept by name in ~/.config/folio/hidden-in-home, and Show in Home in the folder's own menu, in ~, puts it back. Hidden, it can be pinned. A pinned folder has Unpin instead.
  • Trash moves the folder to the trash; with Alt held it becomes Delete…, for good after asking.

The sidebar reads Home again as soon as file work ends, so a folder trashed or renamed there changes at once rather than at the next look.

Stacked on #157: this PR shows only its own commit.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No new blocking issue was established.

Summary

Adds a folder menu to the sidebar’s Home and Pinned sections.

  • Home and Pinned folders now have their own action menu.
  • Home folders can stay out of the sidebar without moving.
  • Renamed folders keep their sidebar links up to date.

No new, separate findings were accepted. The previous threads had no supplied comment numbers.

Reviews (4) · Last reviewed commit: "Trash a sidebar folder from the pane use..." · Reviewed by Greptile

Comment thread src/RenameDialog.qml Resolved
Comment thread src/RenameDialog.qml Resolved
Comment thread src/places.cpp Resolved
@dhh
dhh force-pushed the sidebar-folder-menu branch from e08947d to d76871f Compare November 17, 2026 15:08
@dhh
dhh force-pushed the sidebar-place-first-column branch from 9d81231 to ca48b99 Compare November 17, 2026 15:08
Comment thread src/PlaceMenu.qml Resolved
Comment thread src/places.cpp Resolved
@dhh
dhh force-pushed the sidebar-place-first-column branch from ca48b99 to aa5f471 Compare November 17, 2026 15:25
@dhh
dhh force-pushed the sidebar-folder-menu branch from d76871f to 0542498 Compare November 17, 2026 15:25
@dhh
dhh force-pushed the sidebar-place-first-column branch from aa5f471 to 83c27f2 Compare November 17, 2026 15:50
Base automatically changed from sidebar-place-first-column to main November 17, 2026 15:50
dhh and others added 3 commits November 17, 2026 16:50
Right-click (or Alt+Return on) a folder in the sidebar's Home or Pinned
section for its menu, its first entry highlighted, as the drives' menu's
now is too:

- Rename… renames the folder itself. A pinned folder's pin follows it
  to its new name, from here or from the files.
- Hide takes one of home's folders out of Home. It's kept by name in
  ~/.config/folio/hidden-in-home, and Show in Home in the folder's own
  menu, in ~, puts it back. Hidden, it can be pinned. A pinned folder
  has Unpin instead.
- Trash moves the folder to the trash; with Alt held it becomes Delete…,
  for good after asking.

The sidebar reads Home again as soon as file work ends, so a folder
trashed or renamed there changes at once rather than at the next look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pinned folder's pin, and a folder hidden from Home, followed a rename
only from the Rename dialog. Undoing or redoing the rename moved the
folder without them, so the pin pointed at a folder no longer there and
went, and a hidden folder came back under Home. And a blank name, which
renames nothing, still moved the pin to the folder above.

File work now tells of every rename (by Rename, and by undoing and
redoing one), and each pane hands it to the sidebar's places; the dialog
no longer does. A blank or unchanged name renames nothing and tells of
nothing.

Saving the pins or the hidden folders could fail (a read-only settings
folder, a full disk) without a word, leaving a pin behind or a folder
not hidden. Each failure is now said, as the drives' are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… whole

The sidebar's Trash went through the window's first pane, whatever pane
was in use: its progress and errors showed there, and it refused to
start while that pane was busy. It now goes through the pane used last,
as Rename and Delete in the same menu do.

The folders hidden from Home were saved a name to a line, so a folder
whose name has a newline in it came back as two names: it stayed in
Home, and folders named after its halves went. They're now saved as a
JSON array, which keeps every name whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh force-pushed the sidebar-folder-menu branch from 0542498 to 548b567 Compare November 17, 2026 15:50
@dhh
dhh merged commit 83024b9 into main Nov 17, 2026
1 check passed
@dhh
dhh deleted the sidebar-folder-menu branch November 17, 2026 15:50
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