石锅拌饭

vertical visor

by Robin Lu on Feb.18, 2009, about , ,


Visor是原Quicksiver的作者的一个作品。安装了Visor后,Terminal窗口可以呼之即来,挥之即去,类似Quake中的console,对于Terminal重度依赖者来说非常方便。

安装Visor后,Terminal出现的位置是固定的,缺省是占据了屏幕的上半截。看图标就知道大概意思了。不过对于我的iMac来说,窗口太宽,浪费了很多地方。稍微修改了一下Visor的代码,把它从屏幕顶部移到了左边。这样,不仅得到了一个column为80的Terminal,长度也加长,看个log什么很方便。

Picture 6-5

其实就改了两行。

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是不是就更没人知道了?

:, ,

15 Comments for this entry

Search

Archives

Browse by tags

agile apple blog book design ecto extension firefox git google hack ichm iphone keyword life mac madfox movie nonsense opensource plugin pm ruby rubyonrails sns software startup wordpress work 财帮子