Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

✨ Column selection

Open
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, swift
Domain
desktop

Research direction

No files or tests are named in the issue. Start by tracing CodeEditTextView’s existing selection, cursor, keyboard, mouse, and clipboard entry points; done means column selection works for the listed input methods and editing operations, with a crosshair cursor, clipboard support, compatibility coverage, and user-guide documentation.

Written by the indexing model from the issue text.

Description

enhancement
Description

We need to implement column selection (also known as block selection or rectangular selection) in CodeEdit, allowing users to select text in a columnar fashion. This feature is particularly useful for editing structured text, such as code, where the same changes need to be applied to multiple lines simultaneously.

Triggering Column Selection:

  • Users should be able to initiate column selection by either
    • holding down the ⌥ Option key and dragging the mouse or
    • using the keyboard with ⇧ Shift + ⌃ Control + ▲ up/▼ down arrow keys

Visual Indication:

  • There should be a clear visual indication that column selection mode is active by changing the cursor to crosshairs

Editing Behavior:

  • When text is typed while in column selection mode, it should replace the selected text in all lines within the selection.
  • Deleting should remove the selected block of text across all lines.
  • Navigating and selection with the arrow keys should apply to each cursor as expected, including with modifier keys held

Clipboard Support:

  • Copying should retain the multi-line selection.
Additional Context

This feature is common in many text editors and IDEs, such as Visual Studio Code, Sublime Text, and JetBrains IDEs, and can significantly enhance productivity, especially when working with large codebases.

Possible Challenges
  • Ensuring that column selection works seamlessly with all supported languages and file types.
  • Managing edge cases, such as selections that start or end in the middle of a tab character or mixed tab/space indentations.
References
Tasks
  1. Implement the core column selection functionality.
  2. Change cursor when ⌥ is held and over editor to indicate column selection mode.
  3. Ensure clipboard operations work with column selections.
  4. Test for compatibility with other editor features and languages.
  5. Document the feature in the CodeEdit user guide.
Screenshots

https://github.com/user-attachments/assets/55c15e53-d341-417e-81d6-9aaccbe1fc9f

Dominant language
Swift
Stars
182
Forks
57
PR merge metrics
No merged PRs in 30d

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.

More from CodeEditApp/CodeEditTextView

All issues in CodeEditApp/CodeEditTextView

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.