Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Let commands take over the terminal?

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

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

評価

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

調査の方向性

ファイル、テスト、エントリポイントは指定されていません。まず、lazycli がバインドされたコマンドをどのように起動し、ターミナルの状態を管理しているかを特定します。完了の定義は、エディタ、ページャー、プロンプト、htop などのインタラクティブなコマンドが一時的に制御を引き継ぎ、同じセッションに戻ることとします。

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

説明

Is it possible to yield control of the terminal to each command when it runs? This would open up a bunch of new possibilities.

  1. Commands that use $EDITOR or $PAGER.
    • From an ls view, you could bind vim $0 or less $0 to a key. The editor would take over the terminal temporarily; when you quit the editor you'd be back in the same lazycli session.
    • From the git status view, you could run git commit and let the commit-message editor take over temporarily.
    • From git log you could run git show --patch to preview a commit.
  2. Commands that prompt for a second argument.
    • From ls, you could bind r to mv $0 $(read). Then to rename foo to bar you'd select foo, and type r bar<enter>.
    • Similarly, from git branch, you could bind git branch mv $0 $(read).

I'm not sure how this would be implemented, but it might be similar to vim's :! command. As a (contrived) example, when you run :!htop, htop takes over the terminal; when you quit htop you end up back in vim again.

主要言語
Rust
スター
435
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

jesseduffield/lazycli のほかの issue

jesseduffield/lazycli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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