1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

core: add key alt-j,alt-f to jump to first buffer, change command for jump to last buffer

New key alt-j,alt-f is bound by default to "/buffer -".
The existing key alt-j,alt-l is now bound by default to "/buffer +".
This commit is contained in:
Sebastien Helleu
2014-03-19 10:15:57 +01:00
parent dac4d3a06a
commit bc96d2f1ec
29 changed files with 637 additions and 522 deletions
+91 -87
View File
@@ -66,7 +66,8 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
----
/buffer list
clear [<number>|<name>|-merged|-all]
move|merge <number>
move <number>|-|+
merge <number>
swap <number1>|<name1> [<number2>|<name2>]
unmerge [<number>|-all]
renumber [<number1> [<number2> [<start>]]]
@@ -75,53 +76,57 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
localvar
set <property> <value>
get <property>
<number>|<name>
<number>|-|+|<name>
list: バッファをリストアップ (引数無しの場合、このリストが表示されます)
clear: バッファの内容を削除 (number はバッファ番号、マージバッファに対しては -merged、全てのバッファに対しては -all、何も無ければ現在のバッファ)
move: リストにバッファを移動 (相対指定も可能、例えば -1)
swap: 2 つのバッファを入れ替え (現在のバッファと引数で与えた番号/名称で指定されるバッファを入れ替える)
merge: 現在のバッファを他のバッファにマージ (2 つのバッファのチャットエリアが一緒になります)
(デフォルトでは ctrl-x でマージバッファの切り替え)
unmerge: 同じ番号を持つ他のバッファとのマージを解除
renumber: バッファを記憶 (weechat.look.buffer_auto_renumber オプションがオフの場合にのみ有効)
close: バッファを閉じる (番号/範囲または名前は任意)
notify: 現在のバッファの通知レベルを設定: このレベルでバッファがホットリストに追加されるかどうかを定義します:
none: 通知しない
highlight: ハイライトがあった場合のみ通知
message: ユーザからのメッセージとハイライトがあった場合に通知
all: 全てのメッセージを通知
reset: デフォルトの値 (all) にリセット
localvar: 現在のバッファのローカル変数を表示
set: 現在のバッファのプロパティを設定
get: 現在のバッファのプロパティを表示
number: 番号でバッファ移動、可能なプレフィックス:
'+': 相対移動、現在の番号に数を足す
'-': 相対移動、現在の番号から数を引く
'*': 番号に移動、オプション "weechat.look.jump_current_to_previous_buffer" が使われる
name: バッファ名 (一部) でバッファに移動
list: list buffers (without argument, this list is displayed)
clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
swap: swap two buffers (swap with current buffer if only one number/name given)
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
(by default ctrl-x switches between merged buffers)
unmerge: unmerge buffer from other buffers which have same number
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
close: close buffer (number/range or name is optional)
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
none: never
highlight: for highlights only
message: for messages from users + highlights
all: all messages
reset: reset to default value (all)
localvar: display local variables for current buffer
set: set a property for current buffer
get: display a property of current buffer
number: jump to buffer by number, possible prefix:
'+': relative jump, add number to current
'-': relative jump, sub number to current
'*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
-: jump to first buffer number
+: jump to last buffer number
name: jump to buffer by (partial) name
:
現在のバッファの内容を消去:
Examples:
clear current buffer:
/buffer clear
バッファを 5 番に移動:
move buffer to number 5:
/buffer move 5
バッファ 1 番と 3 番を入れ替え:
swap buffer 1 with 3:
/buffer swap 1 3
現在のバッファと #weechat バッファを入れ替え:
swap buffer #weechat with current buffer:
/buffer swap #weechat
コアバッファとマージ:
merge with core buffer:
/buffer merge 1
バッファマージの解除:
unmerge buffer:
/buffer unmerge
現在のバッファを閉じる:
close current buffer:
/buffer close
バッファ番号 5 から 7 を閉じる:
close buffers 5 to 7:
/buffer close 5-7
#weechat バッファに移動:
jump to #weechat:
/buffer #weechat
次のバッファに移動:
jump to next buffer:
/buffer +1
jump to last buffer number:
/buffer +
----
[[command_weechat_color]]
@@ -374,58 +379,57 @@ value: 表示する履歴エントリの数
----
/input <action> [<arguments>]
アクションリスト:
return: "enter" キーをシミュレート
complete_next: 次の補完候補で単語を補完
complete_previous: 一つ前の補完候補で単語を補完
search_text: バッファ内のテキストを検索
search_switch_case: 完全一致検索に変更
search_switch_regex: 検索タイプの切り替え: 文字列/正規表現
search_switch_where: 検索範囲の切り替え: メッセージ/プレフィックス
search_previous: 一つ前の行を検索
search_next: 次の行を検索
search_stop: 検索を終了
delete_previous_char: 一つ前の文字を削除
delete_next_char: 次の文字を削除
delete_previous_word: 一つ前の単語を削除
delete_next_word: 次の単語を削除
delete_beginning_of_line: 行の最初からカーソル位置までを削除
delete_end_of_line: カーソルから行の最後までを削除
delete_line: 行を削除
clipboard_paste: クリップボードから貼り付け
transpose_chars: 2 つの文字を入れ替え
undo: 最新のコマンドラインアクションまで元に戻す
redo: 最新のコマンドラインアクションまでやり直す
move_beginning_of_line: カーソルを行頭に移動
move_end_of_line: カーソルを行末まで移動
move_previous_char: カーソルを一つ前の文字に移動
move_next_char: カーソルを次の文字に移動
move_previous_word: カーソルを一つ前の単語に移動
move_next_word: カーソルを次の単語に移動
history_previous: 現在のバッファ履歴のひとつ前のコマンドを再呼び出し
history_next: 現在のバッファ履歴の次のコマンドを再呼び出し
history_global_previous: グローバル履歴の一つ前のコマンドを再呼び出し
history_global_next: グローバル履歴の次のコマンドを再呼び出し
jump_smart: 次のアクティブバッファに飛ぶ
jump_last_buffer: 最後のバッファに移動
jump_last_buffer_displayed: 表示されている最後のバッファに移動 (最新のバッファ移動の一つ前に表示されていたバッファ)
jump_previously_visited_buffer: 一つ前に訪れたバッファに移動
jump_next_visited_buffer: 次に訪れたバッファに移動
hotlist_clear: ホットリストを消去
grab_key: キーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_key_command: あるコマンドに関連してキーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_mouse: grab マウスイベントコードを横取り
grab_mouse_area: 範囲指定のマウスイベントコードを横取り
set_unread: 全てのバッファに対して未読マーカーを設定
set_unread_current_buffer: 現在のバッファに対して未読マーカーを設定
switch_active_buffer: 次のマージされたバッファに移動
switch_active_buffer_previous: 一つ前のマージされたバッファに移動
zoom_merged_buffer: マージされたバッファにズーム
insert: コマンドラインにテキストを挿入 (エスケープ文字も可、/help print を参照)
paste_start: ペーストの開始 (括弧付きペーストモード)
paste_stop: ペーストの終了 (括弧付きペーストモード)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
これらのコマンドはキーバインドかプラグインで利用できます。
This command is used by key bindings or plugins.
----
[[command_weechat_key]]
+3 -1
View File
@@ -1071,7 +1071,9 @@ irc サーバ "freenode" に含まれる全てのバッファに対して設定
| key[alt-F12] | ニックネームリストを一番下にスクロール | `/bar scroll nicklist * e`
| key[alt-a] | 変更のあった次のバッファに移動 (優先順位: ハイライト、新規メッセージ、その他) | `/input jump_smart`
| key[alt-h] | ホットリスト (他のバッファにあった変更通知リスト) を消去 | `/input hotlist_clear`
| key[alt-j,alt-l] | 最後のバッファに移動 | `/input jump_last_buffer`
// TRANSLATION MISSING
| key[alt-j,alt-f] | Switch to first buffer | `/buffer -`
| key[alt-j,alt-l] | 最後のバッファに移動 | `/buffer +`
| key[alt-j,alt-r] | IRC 生バッファに移動 | `/server raw`
| key[alt-j,alt-s] | IRC サーババッファに移動 | `/server jump`
| key[alt-0...9] | 番号のバッファに移動 (0 = 10) | `/buffer *N`