✨ Placeholder Support
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- swift
- 領域
- desktop-dev, tooling
調査の方向性
ファイルもテストも指定されていません。まず、現在のテキスト編集、構文ハイライト、LSP の統合ポイントを追跡し、次にプレースホルダーの認識、レンダリング、編集、Tab/Shift+Tab によるナビゲーションをどこに実装すべきかを判断してください。完了の条件は、プレースホルダーが視覚的に区別でき、編集可能で、ナビゲーション可能かつネスト可能であり、既存のハイライトや LSP の動作を壊すことなくエディターの状態に反映されることです。
索引モデルが issue の本文から書いたものです。
説明
Description
Implement support for placeholders in CodeEdit, similar to Xcode’s <#placeholder#> feature. This would allow developers to insert and cycle through editable placeholders in their code, improving productivity and code clarity during development.
Use Case
This feature would be particularly useful for defining temporary or template-like code constructs, such as:
let <#name#> = <#value#>
Placeholders would:
- Be highlighted visually.
- Be navigable (e.g., via Tab key).
- Allow inline editing to replace the placeholder text.
Expected Behavior
- When a placeholder is inserted (e.g.,
<#placeholder#>), it should: - Appear visually distinct (e.g., highlighted with a subtle background color or outline).
- Be editable directly in the code editor.
- Allow navigation between placeholders using keyboard shortcuts like Tab and Shift+Tab.
- Placeholders should support nested constructs (e.g.,
let <#name#> = <#type#>(<#arguments#>)).
Technical Notes
- Integrate placeholder handling with the current text editing features.
- Consider compatibility with existing syntax highlighting and LSP integration.
Steps to Implement
- Define a syntax for placeholders (e.g.,
<#placeholder#>). - Update the text editor to recognize and render placeholders.
- Add keyboard navigation support for placeholders.
- Ensure placeholder edits are reflected in the editor state.
Additional Context
This feature would align CodeEdit with Xcode’s behavior, making it a more familiar and seamless experience for developers who work on macOS. It also complements other code editing enhancements, such as autocompletion and LSP support.
Screenshots
- 主要言語
- Swift
- スター
- 720
- フォーク
- 162
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeEditApp/CodeEditSourceEditor のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CodeEditApp/CodeEditSourceEditor#377 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CodeEditApp/CodeEditSourceEditor#376 · コメント 1 件 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
CodeEditApp/CodeEditSourceEditor#378 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
CodeEditApp/CodeEditSourceEditor の issue をすべて見る
似ている issue
-
area:dictation documentation P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
uttrflow/uttrflow-swift#1180 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
OneBusAway/onebusaway-ios#1451 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100