Plasma/Krunner/zh-tw: Difference between revisions

From KDE UserBase Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 72: Line 72:
==Advanced Usage with Single Runner Mode==  
==Advanced Usage with Single Runner Mode==  


You can use krunner in a special mode called "Single Runner Mode", which allows you to restrict your search results to those given by a specific plug-in. For instance, you can restrict search results to the "Windows" runner and browse open windows enjoying the filtering features of the plug-in. Another example would be using the "Devices" runner so that you would be able to browse, mount or unmount devices from within krunner.<br>
You can use krunner in a special mode called "Single Runner Mode", which allows you to restrict your search results to those given by a specific plug-in. For instance, you can restrict search results to the "Windows" runner and browse open windows enjoying the filtering features of the plug-in. Another example would be using the "Devices" runner so that you would be able to browse, mount or unmount devices from within krunner.<br />
An increasing number of plug-ins allow this mode; it is simple to activate it by assigning the corresponding shortcut via the "Global keyboard shortcuts" systemsettings module.   
An increasing number of plug-ins allow this mode; it is simple to activate it by assigning the corresponding shortcut via the "Global keyboard shortcuts" systemsettings module.   



Revision as of 07:38, 25 November 2010

KRunner 是個用來搜索/啟動文件和程序的工具。它也可以用來做更多常規操作,比如計算器或是單位轉換。多數係統中,KRunner 可以按住 Alt+F2 組合鍵激活。

基本控制

Krunner 語法

輸入區域右邊的「?」圖示解釋每個啟動的 Runners 外掛語法。往下滾動查看所有Runners能夠識別的可用關鍵詞和語法。

在搜索結果中切換

假設你搜尋的項目出現一個以上的結果。你除了用滑鼠還可以用Tab/Tab+Shift 和箭頭鍵在結果中上下移動,按 Enter 選定一個結果。

挖掘 KRunner 的功能

把它當計算器用

你可以把 Krunner 當計算器用。按Alt+F2,輸入要計算的表達式,如32*12 = 或=32*12。等號可以放到表達式之前也可以之後。

還可以計算更複雜的表達式,如: =sqrt(4) + 32 * sin(60)

把它當程式啟動器用

這你可能已經知道,Krunner 還可以啟動應用程序。開啟 Krunner(Alt+F2)並輸入您要運行的應用程式名稱。對於列表中出現的程式,你可以用部份程式名或描述的關鍵字來啟動它。你可以用系統設定的單個模塊的名稱或描述來啟動它。

執行BASH指令

除了應用程式,Krunner 也可以辨識整個系統中所有的二進位檔案。您可以使用這種能力來運行 bash 指令如 cp、mv 等。

請這樣作,啟動 Krunner(Alt+F2)並輸入指令就像在 konsole

cp ~/Documents/myFile ~/myFile (這例子沒啥實際用處,但你能理解用法就行)

打開網站

輸入網址- http://www.somewhere.com -會在瀏覽器中彈出網頁。

使用網站快捷方式

你也可以用網站快捷方式,例如: gg:some-term 會調出Google 娘的搜索結果。

要使用網站快捷方式,首先需要快捷方式有建並勾選了。通過Konqueror 的設置項,Rekonq的,或者直接在KRunner 中輸入Web Shortcuts來管理這些快捷方式。

把 KRunner 當單位轉換器用

KRunner 可以幫助您轉換數字從一個單位到另一個單位,KDE SC 4.2 之後包含長度、質量、速度和數量 KDE SC 4.3 之後包含貨幣、能源、壓力和溫度。每個類別的預設單位已設定。

例子: 6 feet in meters 會輸出1.8288 m。

你要是沒給定目標單位的話,便會自動換算到當前類別的默認單位。

例子: 10 acres 會輸出40469 m²。

透過 PowerDevil 外掛控制電源管理

通過Krunner可以控制各種 PowerDevil 方案。

  • power profile 調出所有電源配置方案。
  • screen brightness 關閉或調暗熒幕
  • screen brightness <percent> 設定熒幕亮度百分比。
  • suspend 挂起操作。
  • power governor 設定 CPU 頻率
  • power scheme 設定電源使用方案。


視窗

該外掛允許你輸入其名稱切換到視窗或虛擬桌面。它是部分匹配模式,視窗標題、程式名稱(名稱能從視窗標題獲取的情況下)和虛擬桌面名稱都行。

Advanced Usage with Single Runner Mode

You can use krunner in a special mode called "Single Runner Mode", which allows you to restrict your search results to those given by a specific plug-in. For instance, you can restrict search results to the "Windows" runner and browse open windows enjoying the filtering features of the plug-in. Another example would be using the "Devices" runner so that you would be able to browse, mount or unmount devices from within krunner.
An increasing number of plug-ins allow this mode; it is simple to activate it by assigning the corresponding shortcut via the "Global keyboard shortcuts" systemsettings module.