2012-09-01 12 views
37

私はST2設定を持っていますので、私は 'sublime file.txt'を実行でき、ST2ウィンドウで開くことができます。しかし、現在開かれているウィンドウの新しいタブでどのように開いてもいいですか?あなたは後続のファイルは、デフォルトの動作ごとにそこに追加すべき新しいウィンドウを開いた後LinuxのコマンドラインからSublime Text 2ファイルを新しいウィンドウではなくタブに開く方法

+1

新しいファイルの使用を開きたい場合は、それが新しいタブでファイルを開くために。 SublimeText2はどのようにインストールしましたか? –

+1

私はtarball抽出を/ usr/lib /にシンボリックリンクしました:sudo ln -s/usr/lib/Sublime \ Text \ 2/sublime_text/usr/bin/sublime – phirschybar

答えて

47

は崇高なコマンドラインヘルプに 崇高テキスト2ビルド2217

Usage: subl [arguments] [files]   edit the given files 
    or: subl [arguments] [directories] open the given directories 
    or: subl [arguments] -    edit stdin 

Arguments: 
    --project <project>: Load the given project 
    --command <command>: Run the given command 
    -n or --new-window: Open a new window 
    -a or --add:   Add folders to the current window 
    -w or --wait:  Wait for the files to be closed before returning 
    -b or --background: Don't activate the application 
    -s or --stay:  Keep the application activated after closing the file 
    -h or --help:  Show help (this message) and exit 
    -v or --version:  Show version and exit 

--wait is implied if reading from stdin. Use --stay to not switch back 
to the terminal when a file is closed (only relevant if waiting for a file). 

Filenames may be given a :line or :line:column suffix to open at a specific 
location. 

--help

SUBLを試してみてください。

+0

[this userecho] //sublimetext.userecho.com/topic/87972-allow-editing-stdin-on-linux/)と同じビルドでの自分の経験は、 'stdin'をファイルとして指定することは、OS Xのオプションに過ぎません。 –

+0

私は午前この質問が標準入力の編集とどのように関係しているのか分かりませんか? –

+0

申し訳ありませんミッコ、以前私は私のビルドに標準オプションがない理由についての情報を探していました。見つけた後、私は検索結果タブのスタックに戻り、役に立つ情報を残そうとしました。ここに何も残してはいけません: –

22

これはUbuntuの12.04で動作します:

subl filename 

または

subl -n filenameを(あなたはそれが別のウィンドウで開きたい場合)

2

別のオプションは次のとおりです。 ファイルを開くために。

[sublime index.html script.js styles.css] 

フォルダ[崇高なフォルダ名]

3
subl fileName 

を開き、あなたが私のインストールでは

subl -n new_file_name 
関連する問題