# Configuration Currently keybindings and a user stylesheet can be configured. twt will look for a config file in the ~/.config/twt/ directory, so you can just copy the one from res/ there and customize that to your liking. A list of configurable options follows. ## Stylesheets To set a user stylesheet, use the format `stylesheet "path-to-user.css"`. Relative paths are interpreted as relative to the config directory. For now, specifying a second stylesheet will override the first one. ## Keybindings "Normal" (default pager browsing) mode keybindings are configured using the syntax nmap Similarly, "Line-edit" (line editing) mode keybindings are configured using the syntax lemap Where `` is a combination of unicode characters with or without modifiers. Modifiers are the prefixes `C-` and `M-`, which add control or escape to the keybinding respectively (essentially making `M-` the same as `C-[`). `` is a valid normal or line-edit mode action. A detailed description of these follows. ### Normal mode actions
**Name****Function**
`NULL`Do nothing
`QUIT`Exit the browser
`CURSOR_UP`Move the cursor to the previous line
`CURSOR_DOWN`Move cursor to the next line
`CURSOR_LEFT`Move cursor to the previous cell
`CURSOR_RIGHT`Move cursor to the next cell
`CURSOR_LEFT`Move cursor to the previous cell
`CURSOR_LINEBEGIN`Move cursor to the first cell of the line
`CURSOR_LINEEND`Move cursor to the last cell of the line
`CURSOR_NEXT_WORD`Move cursor to the beginning of the next word
`CURSOR_PREV_WORD`Move cursor to the end of the previous word
`CURSOR_NEXT_LINK`Move cursor to the beginning of the next clickable element
`CURSOR_PREV_LINK`Move cursor to the beginning of the previous clickable element
`PAGE_DOWN`Move screen down by one page
`PAGE_UP`Move screen up by one page
`PAGE_LEFT`Move screen to the left by one page
`PAGE_RIGHT`Move screen to the right by one page
`HALF_PAGE_DOWN`Move screen down by half a page
`HALF_PAGE_UP`Move screen up by half a page
`SCROLL_DOWN`Move screen down by one line
`SCROLL_UP`Move screen up by one line
`SCROLL_LEFT`Move screen to the left by one line
`SCROLL_RIGHT`Move screen to the right by one line
`CLICK`Click element currently under cursor
`CHANGE_LOCATION`Go to URL
`RELOAD`Reload page
`RESHAPE`Reshape buffer (=render page anew)
`REDRAW`Redraw buffer (=redraw screen)
`TOGGLE_SOURCE`Source view
`CURSOR_FIRST_LINE`Move cursor to the first line of the buffer
`CURSOR_LAST_LINE`Move cursor to the last line of the buffer
`CURSOR_TOP`Move cursor to the first line of the page
`CURSOR_MIDDLE`Move cursor to the middle of the page
`CURSOR_BOTTOM`Move cursor to the last line of the page
`CENTER_LINE`Center screen around line
`LINE_INFO`Display information about line
### Line-edit mode actions
**Name****Function**
`NULL`Do nothing
`SUBMIT`Submit line
`CANCEL`Cancel operation
`BACKSPACE`Delete character before cursor
`DELETE`Delete character after cursor
`CLEAR`Clear text before cursor
`KILL`Clear text after cursor
`KILL_WORD`Delete previous word
`BACK`Move cursor back by one character
`FORWARD`Move cursor forward by one character
`PREV_WORD`Move cursor to the previous word by one character
`NEXT_WORD`Move cursor to the previous word by one character
`BEGIN`Move cursor to the previous word by one character
`END`Move cursor to the previous word by one character
`ESC`Ignore keybindings for next character