Skip to content

[FEATURE REQUEST] Settings › Terminal switches the sessions column's drag and its right press - #14

Merged
Raiden-MeixElysia merged 1 commit into
ELY-Open-Source:mainfrom
miaoaa66:settings-session-toggles
Oct 24, 2026
Merged

Raiden-MeixElysia merged 1 commit into
ELY-Open-Source:mainfrom
miaoaa66:settings-session-toggles

Conversation

@miaoaa66

Copy link
Copy Markdown
Contributor

Type

  • [FEATURE REQUEST]: a new feature or an improvement
  • [BUG REPORT]: a bug fix
  • [Other]: docs, refactoring, CI, dependencies or chores

What and why

Two switches in Settings › Terminal, each on by default, that turn off either half of what T70 added: Drag sessions to reorder and Session menu. Off, a drag on a row moves nothing and a right press on it opens nothing; on, they act as before.

How it was tested

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test on Windows: 254 tests pass. My machine has no MSVC and no Windows SDK, so this ran on the x86_64-pc-windows-gnu target, the only one it can link, and CI's msvc job would be the first msvc build.
  • One caveat on clippy: the 1.99 toolchain I could link carries a newer lint, chunks_exact_to_as_chunks, which fires on src/term/env.rs:254 rather than on this branch. Run with -A clippy::chunks_exact_to_as_chunks it leaves no warning; the pinned 1.95 has no such lint.
  • By hand, in a Windows build of this branch: with Drag sessions to reorder off a drag on a row moved nothing, and on it moved rows again; with Session menu off a right press on a row opened nothing, and on it opened the menu as before.
  • settings test a_file_without_the_session_switches_leaves_them_on: a settings file without either field takes both on.

Checklist

  • The title starts with [FEATURE REQUEST], [BUG REPORT] or [Other]
  • Tests and the build pass locally
  • Docs are updated if behaviour changed

Notes

  • Settings already carries #[serde(default)], so a settings.json from 0.1.8 that lacks the two fields takes them on, and neither deny_unknown_fields nor a missing field can stop a start.
  • Off, the column falls back to lists::List and its own gap_0p5; on, it is Ely's Reorder with a pb_0p5 under each row. The spacing stays the same either way.
  • src/sessions.rs reads the switch from SettingsStore as it builds the row, so no parameter threads through the row's callers.
  • PRD.md sections 7 and 10, README.md, TASKS.md (T73) and the two rows in tasks/acceptance.md (sections 7 and 10) carry the change.

…right press

Two switches, each on by default: Drag sessions to reorder, and Session menu.
Off, a drag on a row moves nothing and the rows keep List's own gap, since the
column is a List and not Ely's Reorder; a right press on a row opens nothing,
since the row carries no ContextMenu.

A settings file without either field takes both on, so an older file still
drags and still opens the menu. `settings` test
a_file_without_the_session_switches_leaves_them_on says so.

Tested on Windows with the x86_64-pc-windows-gnu target, the only one this
machine can link: cargo fmt --check, cargo clippy --all-targets with -D warnings
and cargo test, 254 passing. The owner turned both switches off and on in a
build of this branch and found each took effect.
@Raiden-MeixElysia
Raiden-MeixElysia merged commit 91454aa into ELY-Open-Source:main Oct 24, 2026
Raiden-MeixElysia added a commit that referenced this pull request Oct 24, 2026
@Raiden-MeixElysia

Copy link
Copy Markdown
Contributor

Thank you, @miaoaa66. The two switches are merged in 91454aa, as you wrote them.

Main had moved on, so two things changed in the merge:

  • Your branch numbered the task T73; main's list already had a T73, so it is T83 there.
  • 88d1780 adds the decision to AGENTS.md and puts the acceptance row under T83, with runs on macOS beside yours on Windows: with both switches off, a right press opened nothing and a drag moved nothing, the rows 102 pixels apart as with both on; turning the drag off in an open Settings window saved drag_sessions: false, and the next drag moved nothing. A review then ran every pair of settings through rename, select, close and the menu's keys, two windows at once, a restart, and an 0.1.8 settings file.

It ships in the next release.

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.

2 participants