All posts in Tools

Multiple line support in SublimeTask

[废话]
鄙人新一年有个小计划,那便是需要开始protect起自己的private personal time,过去的一年因为工作牺牲了太多的个人时间,这样的策略抑或无奈是物有所值还是得不偿失需要被重新审视和评估;

==================== 废话的分割线 ====================

[Introduction]
Check out this introductory post if you don’t know what is SublimeTask.

[Overview]
Let’s keep it simple and short this time, since it’s very late now :(.

As issue #3 indicated, previous version of SublimeTask lacks the feature of multiple line support, this update just addressed this issue and addressed it well.

2 kinds of multiple types are now supported:

  • Multiple selections (hold ⌘ during multiple selections, one key fancy feature of Sublime Text)
  • One selection with multiple lines (this should be self explanatory)

So from now on you should be able to mark multiple tasks as completed/incomplete in just one shot, enjoy!
Continue reading →

Highlight URL in SublimeTask

[Redirection]
Check out this introductory post if you don’t know what is SublimeTask.

[Overview]
As this issue ticket indicated, people want the url (http, https, ftp etc) to be processed and displayed differently in SublimeTask.

Although opening url link in default browser is possible and actually turns out to be fairly simple, I still haven’t fully made my mind whether I want this functionality goes in or not, cuz it sounds like a separate project/plugin. Anyway, it’s really a nice-to-have feature, I will be glad to add this in in the future, either directly built in or as a separate plugin.

In this update/patch, what I did is just highlighting the url. One screenshot should be enough to tell the whole story.

[Screenshot]

Note all the url above are highlighted.

[Customization]
As always, check out the “Customization” section here should you need to customize the url display style.

Vim-Task 1.1

Thanks to tUrG0n, vim-task won’t suffer from the pathogen issue anymore from now on, and we also have a new feature which will prepend a “-” for a non-task line when toggling the task status.

So by toggling the task status, we’re now actually toggling between 3 statuses of the task:

  • blank: normal text
  • pending: –
  • completed: ✓

all with the same 1 keyboard shortcut as before, as always. So neat!

PS: Vim native regex i is pretty awkward to work with, unless you use some additional features ii, the regex will quickly become a mess, which maybe makes the person who reads your code thinks “wow, how complicated the regex is!”, but actually the truth is always: “well, it’s not, it’s just that ugly, man…”

[Footnotes]
  1. to make the script portable, substitute() method will always use the ‘magic’ option in the regex match []
  2. but we don’t want more dependencies though… []

Hubot Deployment

Speaking of slowing down process, install one hubot robot in your chat room is definitely one good practice. As they said:

It will dramatically improve and reduce employee efficiency.

I generally believe that it will just improve the efficiency… dramatically.. lol

While I finish the hubot deployment last week i, I was planning to wrap up and compose a deployment guide, but turns out there’s already an excellent one on the web, so I won’t bother to reinvent the wheel:

https://github.com/github/hubot/wiki/Deploying-Hubot-onto-UNIX

[Footnotes]
  1. actually it was a move from my little tiny box to a stronger one []

Introducing SublimeTask (GTD)

[Overview]
We already have Vim-Task, now we need one task plugin for Sublime Text 2.

[Screenshot]
As always, I’m a fan of the mac default font monaco, unfortunately it doesn’t support bold and italic:

If you use font (e.g. Consolas) which support bold and italic and your current color scheme also support these highlighting, you can config the “scope” to display whatever style you want (see Customization section below).

[Code Repository]
github: https://github.com/samsonw/SublimeTask
Continue reading →

Sublime Text 2 Upgrade Problem

搞了半天发现好还毕竟不是sublime本身的错,要不就完全毁了这几个星期来对之的美好印象了……

btw,sublime text 2着实是个相当promising的editor,各位看官有闲情雅致且有信心记住更多的key shortcuts的话不妨一试(其实也没有多少啦),鄙人highly recommended(路人甲:你算哪跟葱……;我:……),除了其License价格不菲之外(比textmate多1刀),其余很多feature都可圈可点,好消息是beta版可以免费使用,就是时不时会有dialog跳出来提醒抑或是恶心一下你,呵呵。

废话有点多,不过鉴于某些同学口味比较重比较独特只喜欢看本人的废话部分,所以现在我基本把重要的事情都放在废话部分讲……

anyway,本次遇到的问题是sublime无法启动,报出以下颇为technical的error dialog,然后便quit,想必是目前用此editor的大多还是developer居多,所以报这种样式的error通常会被认为更为friendly:

Unable to run package setup:

Traceback (most recent call last):
File "./PackageSetup.py", line 155, in upgrade
upgradePackage(pkg, pristinedir, datadir, backupdir)
File "./PackageSetup.py", line 148, in upgradePackage
os.path.join(backupdir, base), inhibitOverwrite)
File "./PackageSetup.py", line 31, in upgradeArchive
newar = zipfile.ZipFile(src)
File ".\zipfile.py", line 696, in __init__
File ".\zipfile.py", line 716, in _GetContents
File ".\zipfile.py", line 728, in _RealGetContents
zipfile.BadZipfile: File is not a zip file

Continue reading →

OpenExplorer Eclipse Plugin 1.5.0

Thanks to jdkcn, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default i. I also added a preferences page for this, so you can customize it if the default doesn’t make you happy.

To upgrade, simply replace the plugin jar file, you can always download the latest versionii from here.

[Footnotes]
  1. dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc []
  2. 1.5.0.v201108051513 []

OpenExplorer Eclipse Plugin 1.4.0

Alright, this time I will let all the screenshots speak, as they’re inherently international.

So, what’s new?

anything else? Yeah!


Continue reading →

Full Screen Mode for TextMate and MacVim

继续用wordpress的fullscreen mode写关于fullscreen的东西…… 不要怪我火星,你要允许孤陋寡闻的井底之蛙(比如我)慢慢发现以前一直很annoying的fulscreen mode原来可以真的让我相对focus一些,暂且不管这到底持续的时间能有多长……

For those who cares, it’s all about focus and productivity. (really? are you crazy?)

[MacVim]
火星旅程开始,先别急着google,turns out 人家MacVim已经自带了这个功能,奈何我是眼睛大还是压根没注意…
打开MacVim,然后:
Window -> Toggle Full Screen Mode

You got it:


Continue reading →

再来一个更geeky的fullscreen editor

前几天说到wordpress 3.2的 fullscreen editor 让我欲罢不能,于是一发不可收拾……

今天再来一个更geeky一点的fullscreen editor,叫做writeroom,很适合需要的人带去星巴克;你还别说,任何东西对需要它的人而言就总是有用的。

截图一张: