Skip to content

feat(files): add a right-click menu gated by Files menu - #36

Closed
6078HITHEDAY wants to merge 2 commits into
ELY-Open-Source:mainfrom
6078HITHEDAY:feat
Closed

6078HITHEDAY wants to merge 2 commits into
ELY-Open-Source:mainfrom
6078HITHEDAY:feat

Conversation

@6078HITHEDAY

@6078HITHEDAY 6078HITHEDAY commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Files panel right-click menu: Open, New session here, Copy path, behind Settings › Terminal › Files menu, off by default.
  • Ely's Tree had no right press, so vendor/ely-gpui-component overlays pin 4f6e80f with Tree::on_context until the org pin holds that API.
  • A listed folder keeps itself even if it has gone (chdir fails and is logged). Copy path refuses a name that is not UTF-8.

Fixes #33

Test plan

  • scripts/check.sh
  • Settings › Terminal: turn Files menu on, switch the right column to Files, right-press a name: Open, New session here, Copy path
  • Off, a right press opens nothing
  • A settings file without files_menu stays off

Open, New session here, and Copy path while the Terminal switch is on,
off by default. Ely's Tree had no right press, so the overlay adds
Tree::on_context until the org pin holds it.
A right press records the listing's folder flag, so the menu never
stats a path. New session here uses that folder, and a missing one
fails at start. Copy path logs and skips a name that is not UTF-8.
@6078HITHEDAY

Copy link
Copy Markdown
Contributor Author

在Fedora Linux 44 测试OK的

@Raiden-MeixElysia

Copy link
Copy Markdown
Contributor

Thank you, 6078HITHEDAY. Merged on main without the vendored Ely:

  • 0863969, under your name: the Files menu, Open, New session here and Copy path, behind Settings › Terminal › Files menu, off by default.
  • Ely's main already had Tree::on_context with your signature, so its tree part went to the branch ELYTerminal pins, as 494c17d, and the pin moved there. A right press keeps the selection, as Ely's main does.
  • 15d9754 and ac3a967: Files asks the workspace for New session here through an event instead of holding the workspace, and a closed menu no longer reopens when the right column comes back.

Raiden-MeixElysia pushed a commit that referenced this pull request Oct 28, 2026
6078HITHEDAY's change for issue #33, from PR #36: Open, New session here
and Copy path, while Settings › Terminal › Files menu is on, off by
default. Ely's Tree takes the right press at the pin, 494c17d on its
elyterminal-0.1.1 branch, where the PR vendored all of Ely to add 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.

[FEATURE REQUEST] 文件浏览功能增加右键菜单选项

2 participants