Coder Social home page Coder Social logo

Comments (28)

dail8859 avatar dail8859 commented on June 14, 2024 1

The more I think about it the keyboard layout should be fine since it is just looking at standard Ctrl+C and Ctrl+V shortcuts.

I think I know why it is not working though. If you change the file encoding to UTF-8 (Encoding > Encode in UTF-8) does copy/paste work for multiple cursors? This will obviously need fixed but want to verify that's the issue for you.

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

I did some playing around with the Win32 API to handle clipboard data. Seems doable. Just need to find some more free time to get it working properly.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Well, it would be absolutely great. Something which is really missing from Notepad++, and which would noticeably reduce the gap with other editors (Sublime Text, etc.).

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

This seems to be working in the limited testing I've done. It seems a bit hackish but functional. I'd appreciate any testing you can do to try to find any issues with it since it could potentially screw up basic copy/paste functionality. There are a few limitations but not sure if they are a problem or not, so for now I'll call it good enough. Here's a quick demo of what was shown above, but in Notepad++.

multipaste

You can download the new builds here and copy over your existing DLL:

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Just realized I forgot all about cutting text and it only copies it currently. Will add that in later.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

First of all, thank you.

I'll be more than happy to start testing this new feature right now, I'll let you know about the outcome in a couple of weeks. In the meanwhile, if time is on your side, I'll also test the cut - paste function once you'll release it.

I'm happy about this new enhancement, though, now Notepad++ editing experience is even more complete.

Just a final note: I noticed you also replicated the Ctrl + D function (multiple selections of comma character in your case), is this also included in your latest release or did you implement it by making use of a specific script engine (e.g. Python Script)? Just out of curiosity.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Hi, I downloaded your latest DLL (Notepad++ 7.6.3 32 bit) but it seems that BetterMultiSelection still is not capable of handling the copy of the multiple selections (those are still concatenated and pasted for each cursor). Please let me know if you need more info.

image

image

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

I'll be more than happy to start testing this new feature right now

Very much appreciated!

I noticed you also replicated the Ctrl + D function

I've had this functionality for a while. I use LuaScript (another one of my plugins), and use code similar to this: http://dail8859.github.io/LuaScript/examples/selectionaddnext.lua.html

it seems that BetterMultiSelection still is not capable of handling the copy of the multiple selections

Couple things come to mind. Notepad++ has changed the location of where the DLL is stored, can't recall exactly where 7.6.3 stores them off the top of my head. I'd make sure you are overwriting the correct one. Also, are you using a standard US keyboard layout or some other layout?

And it is very possible I just have overlooked something in my code too. :)

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Thanks for pointing out your LUA script location, I'll have a look at it.

Regarding BetterMultiSelection, I think it is correctly detected by Notepad++ because I can successfully move around the cursors as you have shown, the only malfunctioning thing is the copy - paste feature.

I'm using a keyboard with QWERTY layout (Italian model).

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Congratulations, you got it right! Changing the file encoding to UTF-8 did indeed solve the issue. Do you think this behaviour could be easily fixed?

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Do you think this behaviour could be easily fixed?

Yes. My initial hackish way of doing was much further from complete than I had thought. I've already got a better implementation in place for part of it already.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Nice! I'll be more happy to test it as soon as it's ready.

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Attempt number 2. I will keep this issue open for now.

This should be alot more robust and implements cut/copy/paste. Again, any testing/comments/feedback is appreciated.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

I'll test it over the next weeks. Thank you.

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Closing for now and will get around to creating a release when I get a chance. Reopen if you have any issues.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Thanks for the update, sometimes your plugin stops working but I'm trying with difficulty to replicate the issue because it doesn't occur regularly. Please let me know if you need some details in particular.

Maybe there could be a way to enable debug output on your plugin to do some investigation?

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Any details would would help narrow down the problem, such as if copying or pasting seems to cause it more. Also if you have other plugins installed that would be good to know. Probably just posting your debug info would be the most helpful.

There is no logging currently but something could potentially be added.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Thank you. The more I use your plugin, the more I increase my productivity.

I found out another possible bug.

This is what I do:

  1. Select 3 words
  2. Ctrl + X
  3. Select other 3 words
  4. Ctrl + V

0YYqsiWvRw

The previously cut words get appended to the new selection. I would expect those to replace the newly selected words. Does this represent the wanted behaviour?

The same issue occurs even when simply copying the original multiple selections, other than cutting it.

Thank you again.

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

I found out another possible bug.

Fixed in 3391d9d

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Any luck reproducing the issue you were having earlier?

from bettermultiselection.

cesarmtnez avatar cesarmtnez commented on June 14, 2024

Hi, I'm test the 1.3.0.12 version and ir works great, that new feature make better my life ;-). Thank you.

I've try it but I could not reproduce the issue that you commented.

On the other hand, it will be fantastic if your plugin would be abble to remember the focus after make an 'undo' (Ctrl + Z). Now, after the 'undo' the focus goes to normal focus in a only line. (Maybe that's must go to open a new issue?)

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Hi @cesarmtnez. Thanks for testing it out

If you would, go ahead and open a new issue so it can be discussed there.

from bettermultiselection.

cesarmtnez avatar cesarmtnez commented on June 14, 2024

Ok, I will. Thank you.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Any luck reproducing the issue you were having earlier?

Here I am again. Sorry for the wait. Over the past few months, the job kept me highly busy and I haven't had a chance to try your last release. I will do it right now.

Thanks again.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Just another question, is the DLL compiled with your latest fix downloadable somewhere?

EDIT: is it the one available here?:

https://ci.appveyor.com/project/dail8859/bettermultiselection/build/job/50j6totknmu3ashx/artifacts

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Sorry for the wait.

No problem at all. I understand what it is like to get very busy :)

is it the one available here?

Yes, that is the latest DLL available.

from bettermultiselection.

pidgeon777 avatar pidgeon777 commented on June 14, 2024

Thank you for the prompt reply. I'm testing it right now :).

from bettermultiselection.

dail8859 avatar dail8859 commented on June 14, 2024

Closed by 72f7222

from bettermultiselection.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.