Repository navigation
[FEATURE REQUEST] Duplicate a session from a right press on its row, and drag rows to reorder them - #9
Merged
Raiden-MeixElysia merged 1 commit intoOct 22, 2026
Conversation
… and folder it runs, or closes it, and a drag moves the row A session keeps the program it started, so Duplicate session opens that program again in the folder the row last reported, right after the row and shown: a PowerShell row opens PowerShell, a cmd row cmd. Close session closes the row. Both act on the row's EntityId rather than its place, so a row that moves while the menu is open cannot take another row's place. A shell that reports no folder, as cmd does, duplicates into the folder it started in. The column is Ely's Reorder now, so a drag moves a row to another place and the session shown stays shown. Ely's SortableList takes only ListItems, which carry no menu of their own, so the rows are built from Reorder and a ContextMenu. Tested on Windows with the x86_64-pc-windows-gnu target, the only one this machine can link: cargo check --all-targets, cargo clippy --all-targets with -D warnings and cargo test, 239 passing. The owner right-pressed a PowerShell row and got a PowerShell session in the same folder, and dragged rows to new places.
Raiden-MeixElysia
added a commit
that referenced
this pull request
Oct 22, 2026
… duplicates or closes, a drag moves a row, and a double press still renames
Contributor
|
Thanks for the PR! Merged and shipped in v0.1.8. https://github.com/ELY-Open-Source/ELYTerminal/releases/tag/v0.1.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
What and why
A right press on a session's row opens a menu at the pointer with
Duplicate sessionandClose sessionaround a separator. Duplicate session opens a session of the shell that row runs, in the folder it last reported, right after the row and shown: a PowerShell row opens PowerShell, a cmd row cmd. A drag on a row moves it to another place in the column, and the session shown stays shown.How it was tested
cargo check --all-targets,cargo clippy --all-targets -- -D warningsandcargo teston Windows: 239 tests pass, no warning. My machine has no MSVC and no Windows SDK, so this ran on thex86_64-pc-windows-gnutarget; the msvc job on CI would be the first msvc build.workspace::reorder::testskeeps the shown index on its row as rows cross it either way.PRD.mdsays so.fxc.exe, which compilesgpui's shaders, so I could not run one here.Checklist
[FEATURE REQUEST],[BUG REPORT]or[Other]Notes
Session::shell, taken fromLaunch::program), so duplicating it askslaunchfor the same shell and gets the same integration back. An empty one means the login shell, as the settings mean it.EntityId, not its place, so a row that moves or closes while the menu is open cannot take another row's action.Reorderrather thanlists::List, sinceSortableListtakes onlyListItems and aListItemcarries no menu of its own. That dropsSortableList's grip icon and its Alt-Up/Alt-Down move, which can come back on top ofReorderif wanted.new_sessionmoved tosrc/workspace/session.rsand sharesopenwithduplicate, sinceworkspace.rsstood at 494 of its 500 lines.PRD.mdsection 7,README.md,TASKS.md(T67, T68) andtasks/acceptance.mdsection 7 carry the change.