Skip to content

Add Tab key multi-select for non-adjacent sequences in edit mode#74

Merged
yumisims merged 7 commits into
sanger-tol:masterfrom
bistace:tab-multiselect
Apr 27, 2026
Merged

Add Tab key multi-select for non-adjacent sequences in edit mode#74
yumisims merged 7 commits into
sanger-tol:masterfrom
bistace:tab-multiselect

Conversation

@bistace
Copy link
Copy Markdown
Contributor

@bistace bistace commented Apr 15, 2026

Hi,

PretextView already allows users to select adjacent sequences while in edit mode. This PR makes it possible to select non-adjacent sequences.

Here is what was added:

  • Adds Tab key to mark/unmark individual sequences for multi-selection while in edit mode
  • Selected contigs are highlighted with an orange cross pattern
  • Press Space or middle-click to consolidate all marked contigs into an adjacent group
  • Clears selection on mode exit, primary click toggle and after consolidation

Here is how it works:

  1. Enter edit mode (E)
  2. Hover over a contig and press Tab to mark it (press Tab again to deselect)
  3. Repeat for any number of sequences
  4. Press Space or middle-click to consolidate. The selected sequences are rearranged to sit next to each other, anchored at the position of the first selected sequence and editing mode activates

@yumisims yumisims requested review from additive3 and yumisims April 20, 2026 14:07
@additive3
Copy link
Copy Markdown
Contributor

@bistace
Nice addition to the functionality, thanks.

@yumisims yumisims merged commit c64fd08 into sanger-tol:master Apr 27, 2026
4 checks passed
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.

3 participants