Better handling of completions when opening a file

オープン
#4,216 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
go
領域
cli

調査の方向性

まず、micro でディレクトリを開く際の補完を再現します。ディレクトリが強調表示されているときに Enter または / を押す場合も含みます。補完とファイルを開く処理のパスを読み、ディレクトリが開く対象として扱われている箇所を特定します。合意されたインタラクションデザインがあり、選択したディレクトリ内で補完を続行するための issue の推奨動作が検証されれば完了です。

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

説明

feature
Description

As discussed in #2891 the current behaviour of completions for opening a file is frustrating when dealing with directories. There is no currently no straightforward way to select a directory without finishing the completion. Pressing Enter when the directory is highlighted leads to micro trying to open the directory and receiving the Error: X is a directory and cannot be opened message.

As requested, this issue is to discuss ways in which this could improved. My preference would be to adopt the zsh behaviour, whereby pressing either / or Enter when a directory is highlighted only adds that directory to the current target path, instead of attempting to open it. The user can then press tab again to attempt completion within the sub-directory the path points to.

Does anyone else have another suggestion?

主要言語
Go
スター
29.8k
フォーク
1.4k
平均マージ
1日 12時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micro-editor/micro のほかの issue

micro-editor/micro の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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