Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/tinyPublic

Configuring key bindings

JosBosmans edited this pageNov 12, 2023 ·7 revisions

Configuration

The default keymap is commented out at the bottom of thedefault config.yml file that tiny creates.

Here is a minimal version:

key_map:  ctrl_a:     input_move_curs_start  ctrl_e:     input_move_curs_end

Each entry in the map is made up of aKey (single or combination) and aKeyAction.

Keys

Here are the available keys that you can set or override:

Single keys

  • backspace
  • del
  • end
  • esc
  • home
  • pgdown
  • pgup
  • tab
  • up
  • down
  • left
  • right
  • any other single character or number

Combinations

  • Alt + arrow, ex.alt_left
  • Alt + character, ex.alt_c
  • Ctrl + character, ex.ctrl_a
  • Ctrl + arrow, ex.ctrl_up

Key Actions

Here are a list of the availableKeyActions:

KeyActionDescription
cancelcurrently only used for cancelling the exit dialogue
disabledisables a key
exitshows the exit dialogue to quit Tiny
run_editorrun the external text editor
tab_nextgo to the next tab
tab_prevgo to the previous tab
tab_move_leftmove the tab to the left in the tab bar
tab_move_rightmove the tab to the right in the tab bar
tab_goto: [char]go to the tab assigned to a letter or number
messages_page_upscroll up one page in the current tab's messages
messages_page_downscroll down one page in the current tab's messages
messages_scroll_upscroll up by one line in the current tab's messages
messages_scroll_downscroll down by one line in the current tab's messages
messages_scroll_topscroll to the top of the current tab's messages
messages_scroll_bottomscroll to the bottom of the current tab's messages
input: [char]input a character
command: [string]pass a command (calledrun_command before)
input_autocompletetrigger nickname auto
input_next_entrygo to the next history entry or next nick if in auto
input_prev_entrygo to the previous history entry or next nick if in auto
input_sendsend message that is written on input line
input_delete_prev_chardelete the previous character on input line
input_delete_next_chardelete the next character on input line
input_delete_to_startdelete to the start of the line from cursor position
input_delete_to_enddelete to the end of the line from cursor position
input_delete_prev_worddelete the word before the cursor
input_move_curs_endmove cursor to the end of the input line
input_move_curs_startmove cursor to the start of the input line
input_move_curs_leftmove cursor to the left by one
input_move_curs_rightmove cursor to the right by one
input_move_word_leftmove cursor one word to the left
input_move_word_rightmove cursor one word to the right

Advanced Mappings

If you are using a non-US keyboard, such as AZERTY, you may rebind the tab control keys as follows:

keymap:  alt_&:      tab_goto: 1  alt_":      tab_goto: 3  alt_':      tab_goto: 4  alt_(:      tab_goto: 5  alt_-:      tab_goto: 6  alt_è:      tab_goto: 7  alt__:      tab_goto: 8  alt_ç:      tab_goto: 9  alt_à:      tab_goto: 0

You can also rebind characters to other characters with the following:

keymap:  q:      input: p

This will map theq key top, so when you hitq it will input ap in the text field.

Code reference

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp