2012-09-01 11 views
37

ST2 kurulumunu 'sublime file.txt' yapabilirim ve bir ST2 penceresinde açılır. Ama şu anda açık pencerede yeni bir sekmede nasıl açabilirim? Eğer daha sonraki dosyaları varsayılan davranış göre orada eklenmelidir yeni bir pencere açtı sonraSublime Text 2 dosyalarını linux komut satırından yeni bir pencerede değil, bir sekmeye nasıl açabilirim

+1

açmak istiyorsanız yeni bir sekmede dosyasını açar. SublimeText2'yi nasıl kurdunuz? –

+1

Tarball çıkarımını/usr/lib/made symlink ile şuraya taşıdım: sudo ln -s/usr/lib/Sublime \ Text \ 2/sublime_text/usr/bin/sublime – phirschybar

cevap

47

Sublime komut satırı yardým Sublime Text 2 Yapı 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 deneyin.

+0

[This userecho] (http: //sublimetext.userecho.com/topic/87972-allow-editing-stdin-on-linux/) ve aynı yapıdaki kendi deneyimlerim, stdin'i bir dosya olarak belirtmek sadece OS X ile bir seçenektir. –

+0

bu sorunun stdin'i düzenlemeyle nasıl bağlantılı olduğunu anladığımdan emin değilim? –

+0

Özür dilerim Mikko, daha önce Yapımın neden stdin seçeneğine sahip olmadığı hakkında bilgi arıyorum. Bulunduktan sonra, arama sonucu sekmeleri yığınıma geri döndüm ve faydalı bilgiler vermeye çalıştım. Burada bir şey bırakmamış olmalıyım :) –

22

Bu Ubuntu 12.04 üzerinde çalışır:

subl filename 

veya

subl -n filename

2

başka bir seçenektir (bunu ayrı bir pencerede açmak istiyorsanız): dosyayı açmak için.

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

3
subl fileName 

bir klasör [yüce klasöradı] açmaya ve sen benim yüklemede yeni bir dosya kullanacağım

subl -n new_file_name 
İlgili konular