2mol / 2mol/pboy

"New filename" input doesn't handle Home/End keys

オープン
#29 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
744
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

説明

One can't jump to the beginning/end of the filename input with the Home/End keys.
According to its [documentation](http://hackage.haskell.org/package/brick-0.47/docs/Brick-Widgets-Edit.html#t:Editor), the Bricks Editor only supports Ctrl+A/Ctrl+E for that.

We could manually register an event handler and match on EvKey events with KHome/KEnd, but I'm not sure if/how it's possible to change the cursor position in the editor…

I'll just leave this here as a reference for anyone who encounters the same behaviour; it doesn't necessarily need to be "fixed". :)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue is in the 'New filename' input, which uses the Brick Editor widget. Look at the Brick documentation for the Editor type and its event handling. Find where the input field is created and events are processed, likely in a UI event loop. Investigate how to register a custom event handler for KHome and KEnd keys and how to programmatically set the cursor position in the editor.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
haskell
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。