vertical visor
by Robin Lu on Feb.18, 2009, about hack, mac, terminal

Visor是原Quicksiver的作者的一个作品。安装了Visor后,Terminal窗口可以呼之即来,挥之即去,类似Quake中的console,对于Terminal重度依赖者来说非常方便。
安装Visor后,Terminal出现的位置是固定的,缺省是占据了屏幕的上半截。看图标就知道大概意思了。不过对于我的iMac来说,窗口太宽,浪费了很多地方。稍微修改了一下Visor的代码,把它从屏幕顶部移到了左边。这样,不仅得到了一个column为80的Terminal,长度也加长,看个log什么很方便。

其实就改了两行。
diff --git a/VisorController.m b/VisorController.m index a1a56ec..19d749c 100644 --- a/VisorController.m +++ b/VisorController.m @@ -187,12 +187,12 @@ NSString * stringForCharacter( const unsigned short aKeyCode, unichar aCharacte // showFrame.origin.y+=NSHeight(screenRect)/2; // showFrame.size.height=NSHeight(screenRect)/2; showFrame=[window frame]; // respect the existing height - showFrame.size.width=screenRect.size.width;//make it the full screen width + showFrame.size.height=screenRect.size.height;//make it the full screen height [window setFrame:showFrame display:NO]; // [[controller tabView] resizeWindowToAccountForTabsBeingDisplayed:nil]; // Fit terminal to correct size showFrame=[[controller window]frame]; - showFrame.origin.x+=NSMidX(screenRect)-NSMidX(showFrame); // center horizontally + showFrame.origin.x=0; // align to left showFrame.origin.y=NSMaxY(screenRect)-NSHeight(showFrame); // align to top of screen [window setAlphaValue:0.0]; --
附带编译好的版本:
Visor.bundle.zip。
安装方法见Visor主页。
对了,现在还有人知道Quake Console是什么吗?iddqd是不是就更没人知道了?
February 19th, 2009 on 12:08 am
robin的桌面是隐藏了dock的,
能否根据是否有dock,
对visor的高度进行控制呢?
February 19th, 2009 on 10:06 am
做到感应dock应该不是特别难。
不过相比起来,隐藏dock更容易一些,:)
February 19th, 2009 on 1:31 pm
~ map q2dm1
kaka
February 19th, 2009 on 1:36 pm
估计知道quake的没有知道counter-strike的多,后者也有吧。
另外我经常用tilda,不过不知在mac下是否也有人用。
February 19th, 2009 on 5:50 pm
Quake? Doom? I’m too young to die. 一晃十余年过去了。
February 22nd, 2009 on 12:53 pm
能不能把terminal的配置共享一下~
February 22nd, 2009 on 11:50 pm
我的terminal配置真是没什么特别的。就是prompt可能稍微特殊一些,可以参见我前面的文章。
March 1st, 2009 on 12:01 am
如果有 iTerm 上类似 Visor 的插件就好了。QIM 在 Terminal 下输入总是被打断,IRC 下很不舒服。似乎只有以前的 FIT 在 Terminal 下没有问题。
March 1st, 2009 on 12:49 am
以前一直用iTerm,不过Leopard以后Terminal已经很好用了,基本上不再需要iTerm。
我用FIT,不过在terminal里也很少用到中文。irc可以用colloquy吧。
March 1st, 2009 on 12:52 am
不过话说回来,把iTerm改成quake console也许比Visor简单,直接改source就好了, SIMBL也许都用不上。
March 7th, 2009 on 2:11 am
Quake的consol,简直不是游戏应该有的。
现在还在用,Enemy Territory,算是Quake的外甥了。。。
June 3rd, 2009 on 6:22 am
现在的版本已支持设置显示到各个位置,外显和space支持也很完善。推荐升级。
June 3rd, 2009 on 11:23 am
cool!
June 21st, 2009 on 8:04 pm
我喜欢你的壁纸。。。给个链接吧 最近很郁闷 哈哈 这壁纸挺提精神的
June 21st, 2009 on 11:50 pm
是在小熊维妮的官方网站下载的,有很多。