mherrmann / mherrmann/fman

Explicit support for Shift+undo a selection

Open
#662 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2 votes enhancement
Dominant language
Python
Stars
275
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Currently Shift+arrows does: 1) toggle the selected status of the file under the cursor; 2) advance to the next (or previous) entry. This works well, except when "backtracking" because you have selected too many files. In that case, the process leaves a spurious selected file in the place where the cursor changed direction.

This could be solved by recognizing when the cursor changed direction without releasing the Shift key. In this case the motion could be intended to "undo" the previous operation, therefore: 1) recede in the new direction of the key; and then 2) toggle the selected status of the file under the cursor. This would look like taking a video of the selection process and then playing it backwards.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the keyboard-handling entry point for Shift+arrow selection in the file manager. Trace how selection and cursor movement are updated while Shift remains pressed, then verify that reversing direction moves back before toggling the current file, without leaving a spurious selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.