Merge pull request #710 from glacambre/improve_tutorial

Improve tutorial
This commit is contained in:
Oliver Blanthorn 2018-06-20 09:05:20 +01:00 committed by GitHub
commit 83e1026d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 5 deletions

View file

@ -1066,7 +1066,12 @@ export function urlincrement(count = 1) {
let newUrl = UrlUtil.incrementUrl(window.location.href, count) let newUrl = UrlUtil.incrementUrl(window.location.href, count)
if (newUrl !== null) { if (newUrl !== null) {
// This might throw an error when using incrementurl on a moz-extension:// page if the page we're trying to access doesn't exist
try {
window.location.href = newUrl window.location.href = newUrl
} catch (e) {
logger.info(`urlincrement: Impossible to navigate to ${newUrl}`)
}
} }
} }

View file

@ -18,4 +18,4 @@ We support a handful of keybinds in the console:
* `Ctrl-F` to complete the command from command history * `Ctrl-F` to complete the command from command history
* `Space` to insert the URL of the highlighted completion into the command line * `Space` to insert the URL of the highlighted completion into the command line
The [next page](./settings.html) will talk about the various settings available. The [next page](./settings.html) will talk about the various settings available. <a href='./hint_mode.html' rel="prev"></a>

View file

@ -8,4 +8,4 @@ You can get help about any command by typing `help [command]` in command mode. A
Lastly, you can contact the developers via Matrix or GitHub, as mentioned on the new tab page. Lastly, you can contact the developers via Matrix or GitHub, as mentioned on the new tab page.
This concludes the tutorial. If you have any feedback, please leave it on [the relevant GitHub issue](https://github.com/cmcaine/tridactyl/issues/380). This concludes the tutorial. If you have any feedback, please leave it on [the relevant GitHub issue](https://github.com/cmcaine/tridactyl/issues/380). <a href='./settings.html' rel="prev"></a>

View file

@ -12,4 +12,4 @@ Here are some of the most useful hint modes:
If there is ever only a single hint remaining (for example, because you have wittled them down, or there is only a single link visible on the page) the hint mode will follow it automatically. If there is ever only a single hint remaining (for example, because you have wittled them down, or there is only a single link visible on the page) the hint mode will follow it automatically.
The [next page](./command_mode.html) will cover the command mode. The [next page](./command_mode.html) will cover the command mode. <a href='./normal_mode.html' rel="prev"></a>

View file

@ -29,3 +29,5 @@ Many keypresses in normal mode take you into another mode. `t`, for example, put
All the keys in normal mode are bound to commands; for example, `j` is bound to `scrolline 10`. If you are ever curious as to what a key sequence does in normal mode, you can simply use `:bind [keys]` and the command line will tell you to which command they are bound. All the keys in normal mode are bound to commands; for example, `j` is bound to `scrolline 10`. If you are ever curious as to what a key sequence does in normal mode, you can simply use `:bind [keys]` and the command line will tell you to which command they are bound.
The [next page](./hint_mode.html) will explain how to use some of the various hint modes. This time try `]]` (guess the next page) to follow the link. The [next page](./hint_mode.html) will explain how to use some of the various hint modes. This time try `]]` (guess the next page) to follow the link.
<a href='./tutor.html' rel="prev"></a>

View file

@ -18,4 +18,4 @@ Here we will briefly summarise some of the main settings:
* excmds * excmds
* aliases for command mode: the things on the left actually run the commands on the right. The most interesting one of these is `current_url`, which is how the binds for O, W and T (`bind T`) work. * aliases for command mode: the things on the left actually run the commands on the right. The most interesting one of these is `current_url`, which is how the binds for O, W and T (`bind T`) work.
The <a href='./help.html' rel='next'>final page</a> describes how you can get further help. The <a href='./help.html' rel='next'>final page</a> describes how you can get further help. <a href='./command_mode.html' rel="prev"></a>