Merge pull request #1157 from glacambre/fix_doc

Fix doc
This commit is contained in:
Oliver Blanthorn 2018-11-08 07:28:35 +00:00 committed by GitHub
commit a679c3cf9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 13 deletions

View file

@ -8,7 +8,7 @@
* bind --mode=ex <C-p> ex.prev_completion
* ```
*
* Note that you can also bind Tridactyl's [editor functions](/static/docs/modules/_lib_editor_.html) in the command line.
* Note that you can also bind Tridactyl's [editor functions](/static/docs/modules/_src_lib_editor_.html) in the command line.
*
* Contrary to the main tridactyl help page, this one doesn't tell you whether a specific function is bound to something. For now, you'll have to make do with `:bind` and `:viewconfig`.
*
@ -205,7 +205,10 @@ export function insert_space_or_completion() {
} else {
const selectionStart = clInput.selectionStart
const selectionEnd = clInput.selectionEnd
clInput.value = clInput.value.substring(0, selectionStart) + " " + clInput.value.substring(selectionEnd)
clInput.value =
clInput.value.substring(0, selectionStart) +
" " +
clInput.value.substring(selectionEnd)
clInput.selectionStart = clInput.selectionEnd = selectionStart + 1
}
clInput.dispatchEvent(new Event("input")) // dirty hack for completions

View file

@ -6,7 +6,7 @@
The default keybinds and settings can be found [here](/static/docs/classes/_lib_config_.default_config.html) and active binds can be seen with `:viewconfig nmaps` or with [[bind]].
Tridactyl also provides a few functions to manipulate text in the command line or text areas that can be found [here](/static/docs/modules/_lib_editor_.html). There are also a few commands only available in the command line which can be found [here](/static/docs/modules/_commandline_frame_.html).
Tridactyl also provides a few functions to manipulate text in the command line or text areas that can be found [here](/static/docs/modules/_src_lib_editor_.html). There are also a few commands only available in the command line which can be found [here](/static/docs/modules/_src_commandline_frame_.html).
## How to use this help page
@ -250,7 +250,7 @@ export async function guiset_quiet(rule: string, option: string) {
*
* Might mangle your userChrome. Requires native messenger, and you must restart Firefox each time to see any changes (this can be done using [[restart]]). <!-- (unless you enable addon debugging and refresh using the browser toolbox) -->
*
* View available rules and options [here](/static/docs/modules/_css_util_.html#potentialrules) and [here](/static/docs/modules/_css_util_.html#metarules).
* View available rules and options [here](/static/docs/modules/_src_lib_css_util_.html#potentialrules) and [here](/static/docs/modules/_src_lib_css_util_.html#metarules).
*
* Example usage: `guiset gui none`, `guiset gui full`, `guiset tabs autohide`.
*
@ -1111,7 +1111,7 @@ export function home(all: "false" | "true" = "false") {
*/
//#background
export async function help(helpItem?: string) {
let docpage = browser.extension.getURL("static/docs/modules/_excmds_.html")
let docpage = browser.extension.getURL("static/docs/modules/_src_excmds_.html")
if (helpItem === undefined) helpItem = ""
else {
let matched = false

View file

@ -199,7 +199,7 @@ addEventListener(
"load",
(() => {
switch (document.location.pathname) {
case "/static/docs/modules/_excmds_.html":
case "/static/docs/modules/_src_excmds_.html":
return onExcmdPageLoad
case "/static/docs/classes/_lib_config_.default_config.html":
return onSettingsPageLoad

View file

@ -69,7 +69,7 @@ class default_config {
/**
* exmaps contains all of the bindings for the command line.
* You can of course bind regular ex commands but also [editor functions](/static/docs/modules/_lib_editor_.html) and [commandline-specific functions](/static/docs/modules/_commandline_frame_.html).
* You can of course bind regular ex commands but also [editor functions](/static/docs/modules/_src_lib_editor_.html) and [commandline-specific functions](/static/docs/modules/_src_commandline_frame_.html).
*/
exmaps = {
"<Enter>": "ex.accept_line",
@ -105,7 +105,7 @@ class default_config {
/**
* inputmaps contain all of the bindings for "input mode".
*
* On top of regular ex commands, you can also bind [editor functions](/static/docs/modules/_lib_editor_.html) in input mode.
* On top of regular ex commands, you can also bind [editor functions](/static/docs/modules/_src_lib_editor_.html) in input mode.
*
* They consist of key sequences mapped to ex commands.
*/
@ -123,7 +123,7 @@ class default_config {
/**
* imaps contain all of the bindings for "insert mode".
*
* On top of regular ex commands, you can also bind [editor functions](/static/docs/modules/_lib_editor_.html) in insert mode.
* On top of regular ex commands, you can also bind [editor functions](/static/docs/modules/_src_lib_editor_.html) in insert mode.
*
* They consist of key sequences mapped to ex commands.
*/
@ -379,7 +379,7 @@ class default_config {
/**
* Whether to use the keytranslatemap in various maps.
*/
keytranslatemodes: {[key:string]: "true" | "false"} = {
keytranslatemodes: { [key: string]: "true" | "false" } = {
nmaps: "true",
imaps: "false",
inputmaps: "false",

View file

@ -12,7 +12,7 @@
*
* Also keep in mind that if you want to bind something in insert mode, you'll probably also want to bind it in input mode (insert mode is entered by clicking on text areas while input mode is entered by using `gi`).
*
* If you're looking for command-line only functions, go [there](/static/docs/modules/_commandline_frame_.html).
* If you're looking for command-line only functions, go [there](/static/docs/modules/_src_commandline_frame_.html).
*
* Contrary to the main tridactyl help page, this one doesn't tell you whether a specific function is bound to something. For now, you'll have to make do with with `:bind` and `:viewconfig`.
*

View file

@ -71,9 +71,9 @@ You have more questions? Have a look at our [FAQ][faq-link].
</div>
[faq-link]: https://github.com/cmcaine/tridactyl#frequently-asked-questions
[help]: /static/docs/modules/_excmds_.html
[help]: /static/docs/modules/_src_excmds_.html
[tutor]: /static/clippy/tutor.html
[help-hint]: /static/docs/modules/_excmds_.html#hint
[help-hint]: /static/docs/modules/_src_excmds_.html#hint
[gitter-badge]: /static/badges/gitter-badge.svg
[gitter-link]: https://gitter.im/tridactyl/Lobby
[freenode-badge]: /static/badges/freenode-badge.svg