sublimetext2

Sublime Text 2: How to Page Up/Down without moving the cursor

牧云@^-^@ 提交于 2020-01-01 04:09:26
问题 I'm on OS X 10.8.4 using ST2. When I use the Home and End keys, the viewport moves and the cursor is left alone. This is standard Mac behavior, and what I'd expect. However, when I use Page Up (pageup/pgup) and Page Down (pagedown/pgdn), the cursor moves along with the viewport. This is not how other Mac apps behave, and I'd like the cursor to be left alone for these keys too. I've been able to get this half-working by adding this to my key bindings: [ { "keys": ["pageup"], "command": "scroll

Sublime Text 2 and MinGW

家住魔仙堡 提交于 2020-01-01 03:29:07
问题 Good day! Can anyone share their experience how to attach MinGW-compiler to Sublime? I found a config in the internet, but when I run compiled program popping bugs with missing files from "../MinGW/bin/". Config: { "cmd": ["mingw32-g++.exe", "-o", "$file_base_name", "$file_name"], "path": "c:\\Program Files\\MinGW\\bin\\" } Thanks! UPD I found answer for my question! I had to add one parameter in cmd . It's "-static" . So, it's my MinGW.sublime-build , which works fine: { "path": "c:\\Program

Is it possible to show the exact position in Sublime Text 2?

怎甘沉沦 提交于 2020-01-01 01:13:08
问题 I've been learning Markdown, and using the Python Markdown package, which often returns the following when I try to convert text that has been pasted in from the web: UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 1611: ordinal not in range(128) At the bottom of my editor I currently see this: COMMAND MODE, Line X, Column Y Is there a setting in Sublime Text 2 that will show the full position (as in 1611 in the example above) at all times so I can quickly find

rsub with sublime and ssh connection refusual

末鹿安然 提交于 2019-12-31 08:43:55
问题 I am trying to use rsub to create tunnel in ssh to sublime text, I run the command rmate .profile but i get the following response. I am using wateroof to open the ports 52968 on 1p4 and ip6, I followed the insturctions here and its just not working I am running osx on my local machine and ubuntu 12.04 on my remote machine I am ssh into on digitalocean root@anderskitson:~# rmate .profile /usr/local/bin/rmate: connect: Connection refused /usr/local/bin/rmate: line 186: /dev/tcp/localhost/52698

rsub with sublime and ssh connection refusual

不打扰是莪最后的温柔 提交于 2019-12-31 08:43:07
问题 I am trying to use rsub to create tunnel in ssh to sublime text, I run the command rmate .profile but i get the following response. I am using wateroof to open the ports 52968 on 1p4 and ip6, I followed the insturctions here and its just not working I am running osx on my local machine and ubuntu 12.04 on my remote machine I am ssh into on digitalocean root@anderskitson:~# rmate .profile /usr/local/bin/rmate: connect: Connection refused /usr/local/bin/rmate: line 186: /dev/tcp/localhost/52698

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

How to run a Ruby script in Sublime Text 2 from project root

不羁的心 提交于 2019-12-30 12:52:29
问题 I have a Ruby project and I'd like to run the scripts directly from Sublime Text in place of having to run them in the terminal. I'm running Ubuntu 12.04 LTS if that matters at all. From the terminal I need to be located in the project root to make the script work: $ ruby path/to/file/file.rb If I try to run it from where the file is located it fails because they are requiring files from various places in the project. If I run the script in Sublime Text (Ctrl + Shift + B) it fails the same

How to run a Ruby script in Sublime Text 2 from project root

江枫思渺然 提交于 2019-12-30 12:52:05
问题 I have a Ruby project and I'd like to run the scripts directly from Sublime Text in place of having to run them in the terminal. I'm running Ubuntu 12.04 LTS if that matters at all. From the terminal I need to be located in the project root to make the script work: $ ruby path/to/file/file.rb If I try to run it from where the file is located it fails because they are requiring files from various places in the project. If I run the script in Sublime Text (Ctrl + Shift + B) it fails the same

Is there a shortcut for Sublime Text to find an open file (Eclipse Ctrl + E)?

ぃ、小莉子 提交于 2019-12-30 11:06:29
问题 Ctrl + P of Sublime Text lets me find a file from all project files. However, there are too many duplicated names. I’m looking for a shortcut key like Ctrl + E in Eclipse, so that I just need to find the file in my opened file. That would save a lot of key striking. Probably called “sidebar filter”? Does not matter if it’s 2 or 3. 回答1: Sounds easy to implement just select Tools >> Developer >> New Plugin... and add the content: import sublime_plugin import os def _show_name(name): return ([os

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.