Clickable URL on mintty

Environment
Photo by hyt.

mintty 備忘録 の続き.Cygwin 上の mintty で URL が含まれるテキストファイルなんかを見ているときに,URL がクリックできると便利なのになぁ,と思ってたのですが,今更ながら可能なことに気が付きました.単に

CTRL key を押しながら,URL を左クリック

するだけなんですね.マニュアルにもきちんと書いてあります.

Opening files, directories and URLs
Files, directories, URLs and web addresses beginning with “www.” can be opened either by holding Ctrl while left-clicking on them (or double-clicking, if and as enabled by option OpeningClicks), or by selecting them and choosing the Open command from the context menu. Please note that a relative file or directory path is interpreted as relative to the current working directory of the terminal foreground process if that can be determined.

見ての通り URL だけじゃなくて,ファイルやディレクトリもこれで開くことができる.

マニュアルを見ると,OpeningClicks オプションを適当に設定すればダブルクリックで開けるようなことを書いていますが,これは正確には ~/.minttyrc に

  • OpeningClicks=0
  • OpeningClicks=1
  • OpeningClicks=2
  • OpeningClicks=3

のいずれかを設定すると,「CTRL + マウスの左クリックを OpenClicks 回」で開くよう設定できるということで,CTRL キーが不要になる訳ではない.なお,「0」の設定はこのオプションを無効化することを意味しています.分かるまでダブルクリックで何故開けないんだろうとしばらく悩んでしまいました.

 

 

Environment
スポンサーリンク
Following hyt!
hyt adversaria
タイトルとURLをコピーしました