Skip to content

Commit e879d04

Browse files
committed
Merge pull request #55 from emacs-jp/helm-ag
Add 'helm-ag' pacage
2 parents 55ca203 + b2cca76 commit e879d04

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

images/helm/helm-ag/helm-ag.png

62.7 KB
Loading

packages/helm/helm-ag.md

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
layout: page
3+
title: "helm-ag"
4+
description: "The Silver Seacherの helmインタフェース"
5+
---
6+
{% include JB/setup %}
7+
8+
## 概要
9+
10+
`helm-ag.el`[The Silver Searcher](https://github.com/ggreer/the_silver_searcher)[helm](https://github.com/emacs-helm/helm)インタフェースです.
11+
12+
The Silver Searcherは ack likeな grepツールで, ackよりも高速に検索を行うことができます.
13+
14+
15+
## スクリーンショット
16+
17+
![helm-ag](/images/helm/helm-ag/helm-ag.png)
18+
19+
20+
## インストール方法
21+
22+
helm-agは MELPAに登録されているので, package.elを使ってインストールすることができます.
23+
24+
25+
## 必要要件
26+
27+
* Emacs 23以降
28+
* The Silver Searcher
29+
30+
MacOSXユーザの方であれば, homebrewで The Silver Searcherをインストールすることが可能です.
31+
その他の環境の方については, ソースコードを入手し, ビルド, インストールを行なってください.
32+
33+
34+
## 各種コマンド
35+
36+
#### helm-ag
37+
38+
カレントディレクトリ以下を検索する
39+
40+
#### helm-ag-this-file
41+
42+
現在開いているファイルを検索する
43+
44+
#### helm-ag-pop-stack
45+
46+
ジャンプ前の場所に戻る
47+
48+
#### helm-ag-clear-stack
49+
50+
ジャンプ元を保存しているスタックをクリアする
51+
52+
53+
## カスタマイズ
54+
55+
#### helm-ag-base-command(デフォルト: `ag --nocolor --nogroup`)
56+
57+
`ag`コマンドを実行する際のコマンドと基本オプションです.
58+
59+
60+
#### helm-ag-command-option(デフォルト: `nil`)
61+
62+
基本コマンドの後ろに追加されるコマンドラインオプション
63+
64+
65+
#### helm-ag-thing-at-point(Default: `'nil`)
66+
67+
この値が `non nil`である場合, カーソル以下のオブジェクトを検索パターンとして
68+
自動的に挿入します. `helm-ag-thing-at-point`が取る値は, `thing-at-point`
69+
指定できるものと同じです(`'word`, `'symbol`等).
70+
71+
72+
## 設定例
73+
74+
````common-lisp
75+
(require 'helm-config)
76+
(require 'helm-ag)
77+
78+
(setq helm-ag-base-command "ag --nocolor --nogroup --ignore-case")
79+
(setq helm-ag-thing-at-point 'symbol)
80+
````

0 commit comments

Comments
 (0)