import { op } from "https://deno.land/x/ddc_vim@v3.9.1/deps.ts";
const { mousemodel } = op;
Sets the model to use for the mouse. The name mostly specifies what the right mouse button is used for: extend Right mouse button extends a selection. This works like in an xterm. popup Right mouse button pops up a menu. The shifted left mouse button extends a selection. This works like with Microsoft Windows. popup_setpos Like "popup", but the cursor will be moved to the position where the mouse was clicked, and thus the selected operation will act upon the clicked object. If clicking inside a selection, that selection will be acted upon, i.e. no cursor move. This implies of course, that right clicking outside a selection will end Visual mode. Overview of what button does what for each model: mouse extend popup(_setpos) left click place cursor place cursor left drag start selection start selection shift-left search word extend selection right click extend selection popup menu (place cursor) right drag extend selection - middle click paste paste
In the "popup" model the right mouse button produces a pop-up menu.
You need to define this first, see popup-menu
.
Note that you can further refine the meaning of buttons with mappings.
See gui-mouse-mapping
. But mappings are NOT used for modeless
selection (because that's handled in the GUI code directly).
The 'mousemodel' option is set by the :behave
command.
(default "extend", "popup" for Win32)