diff options
author | Amanda Graven <amanda@graven.dev> | 2023-11-28 21:05:33 +0100 |
---|---|---|
committer | Amanda Graven <amanda@graven.dev> | 2023-12-18 21:24:27 +0100 |
commit | 428edcde7068ab44040e19b43343741e5ca59770 (patch) | |
tree | 6ee0350184b6e5c60a94e4df8c8c3c14316086e4 /runtime | |
parent | 3a4aa3fc58f87a295a075fe457bc78805eef7c4d (diff) | |
download | rneovim-428edcde7068ab44040e19b43343741e5ca59770.tar.gz rneovim-428edcde7068ab44040e19b43343741e5ca59770.tar.bz2 rneovim-428edcde7068ab44040e19b43343741e5ca59770.zip |
feat(api): add forward and back mouse buttons
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | runtime/doc/news.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 72ac357ac0..7cb6051020 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1145,7 +1145,7 @@ nvim_input_mouse({button}, {action}, {modifier}, {grid}, {row}, {col}) Parameters: ~ • {button} Mouse button: one of "left", "right", "middle", "wheel", - "move". + "move", "x1", "x2". • {action} For ordinary buttons, one of "press", "drag", "release". For the wheel, one of "up", "down", "left", "right". Ignored for "move". diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 7def21941b..90065349ef 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -268,6 +268,8 @@ The following new APIs and features were added. • 'completeopt' option supports "popup" flags to show extra information in in floating window. +• Added `x1` and `x2` mouse buttons as possible arguments to |nvim_input_mouse()| + ============================================================================== CHANGED FEATURES *news-changed* diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index c8afbd58dd..c8c3e1c3af 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1375,7 +1375,7 @@ function vim.api.nvim_input(keys) end --- processed soon by the event loop. --- --- @param button string Mouse button: one of "left", "right", "middle", "wheel", ---- "move". +--- "move", "x1", "x2". --- @param action string For ordinary buttons, one of "press", "drag", "release". --- For the wheel, one of "up", "down", "left", "right". --- Ignored for "move". |