✨ Column selection
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Nenhum arquivo ou teste é especificado na issue. Comece rastreando os pontos de entrada existentes de CodeEditTextView para seleção, cursor, teclado, mouse e área de transferência; considera-se concluído quando a seleção por coluna funcionar para os métodos de entrada e as operações de edição listados, com um cursor em forma de mira, suporte à área de transferência, cobertura de compatibilidade e documentação no guia do usuário.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
⌥ Optionkey and dragging the mouse or - using the keyboard with
⇧ Shift+⌃ Control+▲ up/▼ downarrow keys
- holding down the
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
- Implement the core column selection functionality.
- Change cursor when ⌥ is held and over editor to indicate column selection mode.
- Ensure clipboard operations work with column selections.
- Test for compatibility with other editor features and languages.
- Document the feature in the CodeEdit user guide.
Screenshots
https://github.com/user-attachments/assets/55c15e53-d341-417e-81d6-9aaccbe1fc9f
- Linguagem predominante
- Swift
- Estrelas
- 182
- Forks
- 57
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CodeEditApp/CodeEditTextView
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
CodeEditApp/CodeEditTextView#124 ·
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
CodeEditApp/CodeEditTextView#121 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 28/100
CodeEditApp/CodeEditTextView#119 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
CodeEditApp/CodeEditTextView#106 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
Todas as issues de CodeEditApp/CodeEditTextView
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
googleapis/google-cloud-swift#1036 · 1 comentário ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
wultra/mtoken-sdk-ios#253 ·
-
The correction-threshold rationale says 17 restraint cases collide; the current corpus has 16 Abertaarea:dictation documentation P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
uttrflow/uttrflow-swift#1180 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100