Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.59 KB

1408311204.helm-ls-git.org

File metadata and controls

64 lines (48 loc) · 2.59 KB

helm-ls-git.el : gitで管理されているファイル群をhelmで絞り込み検索して操作する

[includeme file=”inc-package-table.php” name=”helm-ls-git” where=”melpa”]

このパッケージを使うにはhelmも最新版にしておく必要があります。

M-x package-install helm

概要

helm-ls-git.elgit で管理されているファイル群を helm で操作するものです。

<2014-12-28 Sun>追記 helm-cmd-t(レビュー) は他のバージョン管理システムに 対応している上でなにより高速です。 Windowsでも高速に動くように設計されています。

Emacsとgitといえば magit が有名ですが、これはmagitに依存しません。

gitリポジトリ上でM-x helm-browse-projectを実行してください。

このコマンドは2つの情報源からできています。

  • git status
  • git ls-files

操作したいファイルでRETを押せばそのファイルを開きます。

それ以外の操作をするときにはTABでアクションを開いて選択してください。

ファイルの状態によってアクションが変わってきます。

git status情報源では新規ファイルの場合は「Add file(s)」が出てくるし、 ファイルを変更した場合はcommit/diff/revertができるようになります。

git ls-files情報源では、git lsでリストされるファイル名で 通常のfileアクションが行えます… grep したり ediff したり。

プロジェクト管理を行う projectilehelm-projectile との比較についてはそのうち。

http://rubikitch.com/f/20140831124037.png Fig1: M-x helm-browse-project

http://rubikitch.com/f/20140831124044.png Fig2: 変更されたファイルに対してのアクション [includeme file=”inc-package-install.php” name=”helm-ls-git” where=”melpa”] [includeme file=”inc-package-relate.php” name=”helm-ls-git”]