sublimetext

How can I make rails_footnotes open files using Sublime Text 2?

▼魔方 西西 提交于 2019-12-31 10:51:09
问题 I'm not asking how to tell footnotes how to do this - I'm using this line in the initializers/footnotes.rb file: Footnotes::Filter.prefix = 'txmt://open?url=file://%s&line=%d&column=%d' My question is what should go in place of the txmt://open?... ? I've tried subl:// and sblm:// but no joy. Is it something to do with the open?url= etc? 回答1: subl-handler works by interpreting txmt urls, and forwarding them to Sublime. If you, like me, have TextMate or any other application currently

How do I remap escape when in Sublime Text vintage mode?

倖福魔咒の 提交于 2019-12-31 08:56:24
问题 I am a vim user who is moving to Sublime text and using Vintage mode. In my .vimrc I have the following line: imap jk <Esc> In vim, this allows me to escape out of insert mode without having to lunge for the escape key and keep my fingers on the home row. How do I do the same thing with Sublime Text Vintage mode? 回答1: "Vintage mode is implemented entirely via key bindings and the plugin API - feel free to browse through the Vintage package and see how it's put together. As an example, if you

Is there a way to sync Sublime Text settings across multiple computers?

梦想的初衷 提交于 2019-12-31 08:55:50
问题 I have two computers, a desktop and a laptop. Now I have set up my ENV to sync with the help of a dropbox link. Is there a way to sync my Sublime Text 3 settings between these two computers including all my plugins, preference files, etc... and, if so, how can I set things up to sync properly? 回答1: I am assuming you are using Package Control for managing your plugins. What to Sync Both a list of your packages as well as all of your settings files are all contained within your Packages/User/

Is there a way to sync Sublime Text settings across multiple computers?

偶尔善良 提交于 2019-12-31 08:52:46
问题 I have two computers, a desktop and a laptop. Now I have set up my ENV to sync with the help of a dropbox link. Is there a way to sync my Sublime Text 3 settings between these two computers including all my plugins, preference files, etc... and, if so, how can I set things up to sync properly? 回答1: I am assuming you are using Package Control for managing your plugins. What to Sync Both a list of your packages as well as all of your settings files are all contained within your Packages/User/

Open files and folders in same window in Sublime Text

天大地大妈咪最大 提交于 2019-12-31 08:42:47
问题 If I open ~/foo.txt then open ~/baz/bar.txt from Terminal, Sublime Text always opens 2 different windows. It's aggravating to have all these different windows open.. I've tried changing a bunch of ST's settings, but nothing seems to fix this. Is there a way to have ALL files and folders just open up in the same window as if I were manually adding all these folders to the project? 回答1: In Sublime Text Menu: Preferences -> Settings - User Look for ' open_files_in_new_window ' And change ' true'

Open files and folders in same window in Sublime Text

☆樱花仙子☆ 提交于 2019-12-31 08:42:42
问题 If I open ~/foo.txt then open ~/baz/bar.txt from Terminal, Sublime Text always opens 2 different windows. It's aggravating to have all these different windows open.. I've tried changing a bunch of ST's settings, but nothing seems to fix this. Is there a way to have ALL files and folders just open up in the same window as if I were manually adding all these folders to the project? 回答1: In Sublime Text Menu: Preferences -> Settings - User Look for ' open_files_in_new_window ' And change ' true'

Sublime Text 2 doesn't save built SASS file

ε祈祈猫儿з 提交于 2019-12-31 03:20:10
问题 I installed SASS build system for Sublime Text 2 just as described in the readme and everything succeeded (also SASS installation). Now, if I try to build my .scss file ST2 prints out something like "[Finished in 0.2s]" without showing me any result or save a .css file. I also can write some wrong code and it will not complain about it, just give me a "finished" message again. Any idea what's causing this behaviour? 回答1: I had the same problem on my Mountain Lion. I fixed it by changing the

Sublime Text Plugin : Adding python libraries

放肆的年华 提交于 2019-12-30 09:58:34
问题 I'm trying to write a sublime text plugin which would make some windows api calls. I did some research and found out that this python library provides the API's that I need to use. So, I'm trying to to use this library. When I add import statement for it in my sublime text plugin it gives me error ImportError: No module named win32api I'd assume that it's because sublime text comes with inbuilt python and I haven't actually installed these libraries on my system it's throwing up these errors.

Sublime Text - command to make first character uppercase

雨燕双飞 提交于 2019-12-30 08:02:39
问题 There are upper_case and lower_case commands: { "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" }, { "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }, I'm searching for command to capitalize the first letter of string, which can be assigned to custom shortcut. 回答1: Under Edit -> Convert Case is the Title Case option. The following key binding should work: { "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" } Add this to your custom keymap, and it will override the default

Sublime text editor: how to select all instances of selected region?

纵饮孤独 提交于 2019-12-29 10:09:33
问题 Is there a shortcut key or single-step menu option to find and select all instances of a highlighted selection in Sublime Text? 回答1: On Mac OS you can use: CMD + CTRL + G 回答2: On Windows/Linux press Alt + F3 . 回答3: " On Windows/Linux press Alt+F3. " Worked for me on Ubuntu. I changed it in my 'Key-Bindings:User' to something that I liked better though. 回答4: Note You should not edit the default settings, because they get reset on updates/upgrades. For customization, you should override any