2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

counsel-rg で Omitted long line with となるのを表示させる

Posted at

emacs で counsel-rg を使って ripgrep を呼び出すと Omitted long line with となるものがでてくる。
これは counsel じゃなく rg が出してるものなので rg のコマンドライン引数を変更することで表示する。

(use-package counsel
  :custom
  (counsel-rg-base-command
   `("rg"
     "--max-columns" "640"
     "--with-filename"
     "--no-heading"
     "--line-number"
     "--color" "never"
     "%s"
     ,@(and (memq system-type '(ms-dos windows-nt))
            (list "--path-separator" "/" "."))))
  )

--max-columns が デフォルト 240 なので、それを640に増やした。

2
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?