updateProfile.userKeyActions 參數

請利用 updateProfile.userKeyActions 參數來設定或查詢 updateProfile 指令所要使用的使用者按鍵動作。 使用者按鍵動作是當您發出 updateProfile 指令時,所要生效之按鍵/動作配對的清單。

可用性

query 指令
set 指令
current 參數
default 參數
install 參數

範圍

updateProfile.userKeyActions 會將範圍設在現行視圖。
current.updateProfile.userKeyActions 會將範圍設在現行視圖。
default.updateProfile.userKeyActions 會廣域性地設定範圍。
install.updateProfile.userKeyActions 會廣域性地設定範圍。

語法

query updateProfile.userKeyActions
set updateProfile.userKeyActions { default
                                 | [ key action ] [...]
                                 }
query current.updateProfile.userKeyActions
query default.updateProfile.userKeyActions
set default.updateProfile.userKeyActions { install
                                         | [ key action ] [...]
                                         }
query install.updateProfile.userKeyActions 

參數

default 如果您在 set updateProfile.userKeyActions 指令中指定 default 參數,現行視圖會以 default.updateProfile.userKeyActions 的值當成 updateProfile 指令的使用者指令。
[ key action ] [...] 如果您指定 set updateProfile.userKeyActions 指令的按鍵/動作配對清單,updateProfile 指令將使用現行視圖內的使用者按鍵動作清單。如果您指定 set default.updateProfile.userKeyActions 指令的按鍵/動作配對清單,則 updateProfile 指令將使用 updateProfile.userKeyActions 設定為 default 之所有文件視圖內的使用者按鍵動作清單。

key 參數是您要定義的按鍵。 請參閱 keyAction 參數,以取得定義按鍵的相關資訊。 action 參數應該是有效的編輯器動作名稱。
install 如果您在 set default.updateProfile.userKeyActions 指令中指定 install 參數,updateProfile.userKeyActions 設為 default 的所有視圖都會利用 install.updateProfile.userKeyActions 的值來判斷 updateProfile 指令要用的使用者按鍵動作。

說明

query current.updateProfile.userKeyActions 指令會傳回在現行視圖內,updateProfile 指令將使用的按鍵/動作配對清單。

範例

query updateProfile.userKeyActions
set updateProfile.userKeyActions a-backSpace.t.p.secondary undo
query current.updateProfile.userKeyActions
query default.updateProfile.userKeyActions
set default.updateProfile.userKeyActions install
query install.updateProfile.userKeyActions 

相關參照
updateProfile 指令
query 指令
set 指令
current 參數
default 參數
install 參數
keyAction 參數
keys 參數
updateProfile.baseProfile 參數
updateProfile.parser 參數
updateProfile.userActions 參數
updateProfile.userCommands 參數
updateProfile.userMouseActions 參數
updateProfile.userProfile 參數