LoginSignup
2
2

More than 3 years have passed since last update.

helm-find-filesで不要なファイル・ディレクトリを候補に入れないようにするには

Last updated at Posted at 2017-03-13

helm-find-filesを実行すると、選択候補のファイル名一覧に、...が含まれるのがとてもストレス。

ググったらredditに解決方法を書いてくれている人がいました。

How to remove 2 first dot files from helm-find-files ?


(advice-add 'helm-ff-filter-candidate-one-by-one
        :around (lambda (fcn file)
                  (unless (string-match "\\(?:/\\|\\`\\)\\.\\{1,2\\}\\'" file)
                    (funcall fcn file))))

Macの人はstring-matchの部分に.DS_Storeとかも書くと良いと思う。

おしまい。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2