summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-24 22:09:41 +0100
committerw0rp <devw0rp@gmail.com>2016-10-26 10:36:53 +0100
commitc8821fc0495d1d75cb3d716d73c4c28877e3513a (patch)
tree911963ee3e9954b12396bced5e834a6b922c4c50 /doc/ale.txt
parent1bcee7ef33ffd2da752e85177bfa215c60f98e71 (diff)
downloadale-c8821fc0495d1d75cb3d716d73c4c28877e3513a.zip
#144 - Implement commands for moving through warnings/errors
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt45
1 files changed, 39 insertions, 6 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 16d55f6b..d05b570a 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -23,9 +23,10 @@ CONTENTS *ale-contents*
4.11. luacheck..............................|ale-linter-options-luacheck|
4.12. c-cppcheck............................|ale-linter-options-c-cppcheck|
4.13. cpp-cppcheck..........................|ale-linter-options-cpp-cppcheck|
- 5. API........................................|ale-api|
- 6. Special Thanks.............................|ale-special-thanks|
- 7. Contact....................................|ale-contact|
+ 5. Commands/Keybinds..........................|ale-commands|
+ 6. API........................................|ale-api|
+ 7. Special Thanks.............................|ale-special-thanks|
+ 8. Contact....................................|ale-contact|
===============================================================================
1. Introduction *ale-introduction*
@@ -549,7 +550,39 @@ g:ale_cpp_cppcheck_options *g:ale_cpp_cppcheck_options
===============================================================================
-5. API *ale-api*
+5. Commands/Keybinds *ale-commands*
+
+ALEPrevious *ALEPrevious*
+ALEPreviousWrap *ALEPreviousWrap*
+ALENext *ALENext*
+ALENextWrap *ALENextWrap*
+ *ale-navigation-commands*
+
+ Move between warnings or errors in a buffer.
+
+ `ALEPrevious` and `ALENext` will stop at the top and bottom of a file, while
+ `ALEPreviousWrap` and `ALENextWrap` will wrap around the file to find
+ the last or first warning or error in the file, respectively.
+
+ The following |<Plug>| mappings are defined for the commands: >
+ <Plug>(ale_previous) - ALEPrevious
+ <Plug>(ale_previous_wrap) - ALEPreviousWrap
+ <Plug>(ale_next) - ALENext
+ <Plug>(ale_next_wrap) - ALENextWrap
+<
+ For example, these commands could be bound to the keys Ctrl + j
+ and Ctrl + k: >
+
+ " Map movement through errors without wrapping.
+ nmap <silent> <C-k> <Plug>(ale_previous)
+ nmap <silent> <C-j> <Plug>(ale_next)
+ " OR map keys to use wrapping.
+ nmap <silent> <C-k> <Plug>(ale_previous_wrap)
+ nmap <silent> <C-j> <Plug>(ale_next_wrap)
+<
+
+===============================================================================
+6. API *ale-api*
ale#Queue(delay) *ale#Queue()*
Run linters for the current buffer, based on the filetype of the buffer,
@@ -671,13 +704,13 @@ ALELint *ALELint*
===============================================================================
-6. Special Thanks *ale-special-thanks*
+7. Special Thanks *ale-special-thanks*
Special thanks to Mark Grealish (https://www.bhalash.com/) for providing ALE's
snazzy looking ale glass logo. Cheers, Mark!
===============================================================================
-7. Contact *ale-contact*
+8. Contact *ale-contact*
If you like this plugin, and wish to get in touch, check out the GitHub
page for issues and more at https://github.com/w0rp/ale