Sofronie Cristian
Sofronie Cristian
Also ```c set_vim_var_nr(VV_MOUSE_WIN, winnr); set_vim_var_nr(VV_MOUSE_WINID, wp->handle); set_vim_var_nr(VV_MOUSE_LNUM, lnum); set_vim_var_nr(VV_MOUSE_COL, col + 1); ``` There seems to be vim.v variables for the line and col and winid for all mouse events....
I looked in the C code and the mouse events seem to be sent to the current window and then in the default handler via a call to mouse_find_win it...
I need to download fzf-lua and see how it implements it. It might try to implement them myself
Some more progress I have made. fzf-lua doen't seem to implement any scrolling. The preview window is scrolled with the default handler for ScrollWheelDown|Up and the results window is created...
Actually there is a method to get up to date mouse movement. ```lua vim.o.mousemoveevent = true vim.keymap.set('n', '', function() print(vim.inspect(vim.fn.getmousepos())) end) ```
I have managed do it with the thing from above and expr mappings that makes it possible to add mappings but also keep the default handler depending on the return...
This is weird. The problem seems to be when calling `actions.close`. The function contains the following line which sets the cursor: ```lua pcall(a.nvim_win_set_cursor, original_win_id, { original_cursor[1], original_cursor[2] + 1 })...
If in `actions.close` I replace: ```lua pcall(a.nvim_win_set_cursor, original_win_id, { original_cursor[1], original_cursor[2] + 1}) ``` with ```lua vim.defer_fn(function() pcall(a.nvim_win_set_cursor, original_win_id, { original_cursor[1], original_cursor[2] }) end, 0) ``` The `+ 1` was...
@ChloeZhou1997 This also happens for me
@ChloeZhou1997 This works for me ```javascript let blockText = document.activeElement.value; let highlights = blockText.match(/\^\^.*?\^\^/g); let emptyHighlights = true; let clipboardText = "- "; // To be inserted between highlights let...