vim_ahk icon indicating copy to clipboard operation
vim_ahk copied to clipboard

ctrl+V still act as paste in visual mode and is not as block choose as in Vim inOneNote

Open M-seas opened this issue 11 months ago • 5 comments

Hi , I am using this plug most for block choose in OneNote, but when i change into Visual mode and use ctrl+v to choose the block, it still asc as paste function. is there any way to act ctrl + v as the same as in Vim?

M-seas avatar Jan 09 '25 03:01 M-seas

I'm sorry but block-wise select is not possible on apps other than vim, then it is not mapped in vim_ahk.

You can disable "paste" at Visual mode by changing "Disable unused keys in the normal mode" as "3" in vim ahk settings.

It is welcome any idea to realize "block-wise" select!

rcmdnk avatar Jan 09 '25 11:01 rcmdnk

Hi rcmdnk, In daily onenote using i using ctrl + mouse left select the content to simulate the 'block-select' I have a idea in some mode whether we can use alt or ctrl+Arrow(up/down/left/right) to achieve the ctrl + mouse left select upload a gif PixPin_2025-01-10_17-48-16

M-seas avatar Jan 10 '25 09:01 M-seas

I tried on OneNote app version 2412 (build 18324.20168) (Windows11), but Ctrl + mouse does not work.

How did you get working block select function?

rcmdnk avatar Jan 10 '25 17:01 rcmdnk

i am on Microsoft OneNote 2024MSO(2412 Build 16.0.18324.20092) 64 (Win10) And Onenote 2021 one Win11 it all work Just hold Ctrl + hold mouse left to slip the line or content it will like block-select use Shift + mouse click will select the whole line let me use the screen keyboard to show you please see the gif PixPin_2025-01-11_10-13-01

M-seas avatar Jan 11 '25 02:01 M-seas

Ah, I got it. To select multiple block, I shold release after each block selection.

It may need to implement something like:

  • Get cursor position on OneNote in the monitor, and move the mouse cursor there
  • Ctrl-Down and mouse click (keep their down)
  • Define character width (could be taken from OneNone's information...? though, most of fonts have different width for different characters...) and move the mouse cursor 1 width by l or any movement keys.
  • Need to remember how many characters it moves.
  • When d or any line change command comes, release mouse, and change the line, move back number of characters moved above, then click down, move forward the same number of characters
  • If h or any backward key is pushed,...

Although it is interesting and it may be possible, I'm sory but I cannot make enough time for it.

rcmdnk avatar Jan 11 '25 10:01 rcmdnk