pnedev / comparePlus

Compare plugin for Notepad++
GNU General Public License v3.0
993 stars 139 forks source link

Add possibility to close both files after compare #388

Open maneco2 opened 5 months ago

maneco2 commented 5 months ago

Create option for compare, ignore commented lines //

PrecisionAdministrators commented 5 months ago

Please add an option to close both compare files whether there are differences or not. An accessible (i.e. not too far to the right so that it shows) tool bar button would be great too.

One of my many uses for Notepad++ is to compare current code to nightly backups prior to the last compile to see the raw changes with ComparePlus. Once I review the changes I just need to close both compared files and move on to the next to make the same comparison (current vs backup)

pnedev commented 5 months ago

@maneco2 , @PrecisionAdministrators , I will consider both feature requests, thanks.

@maneco2 , On second thought I will not implement your suggestion because ComparePlus is generic compare tool and the comment line mark depends on the language (for C++ it is // but for Python is # for example). You can always use the existing Ignore Regex... option to achieve your goal.

PrecisionAdministrators commented 5 months ago

My request was to create a button in the ComparePlus plugin for Notepad++.

The button should close both files in the compare operation.

This feature request is not about comment lines.

PrecisionAdministrators commented 5 months ago

Hello @Maneco2

There may be a mix-up.

My feature request was to create a button in the ComparePlus plugin for Notepad++.

The button should close both files in the compare operation.

The feature request (https://github.com/pnedev/comparePlus/issues/388#issuecomment-2089915890) is not about comment lines.

I hope you will reconsider my feature request.

Blake Turner

@. @.>

Manager, Information Technologies

405-507-0800 phone ext 102

Precision Administrators, Inc

405-507-0700 fax

3240 W. Britton Road, Suite 202

800-615-2797 toll-free (outside Oklahoma)

Oklahoma City, Oklahoma 73120

www.paibenefits.com http://www.paibenefits.com/

Please only print this e-mail if necessary!

This message, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this message is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this message is prohibited. If you have received this message in error, please notify the sender by returning this message to the originator, and destroy this message immediately.

From: Pavel Nedev @.> Sent: Thursday, May 2, 2024 3꞉43:AM To: pnedev/comparePlus @.> Cc: PrecisionAdministrators @.>; Mention @.> Subject: Re: [pnedev/comparePlus] Feature option (Issue #388)

@maneco2 https://github.com/maneco2 , @PrecisionAdministrators https://github.com/PrecisionAdministrators , I will consider both feature requests, thanks.

— Reply to this email directly, view it on GitHub https://github.com/pnedev/comparePlus/issues/388#issuecomment-2089915890 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BIFDZXTBFERO67HHUMWQF6LZAH4AHAVCNFSM6AAAAABGZZKGQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZHEYTKOBZGA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/BIFDZXTO7Z7UXBZYWRDVNATZAH4AHA5CNFSM6AAAAABGZZKGQCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT4SGK7E.gif Message ID: @. @.> >

-- This email has been checked for viruses by Avast antivirus software. www.avast.com

pnedev commented 5 months ago

@PrecisionAdministrators , As I said I will consider this but my understanding was that you would like both files to be closed automatically after closing compare (much like the current option to close compared files if both are the same). Is that what you are suggesting?

PrecisionAdministrators commented 3 months ago

Good morning Pavel,

After a little googling-around this morning I found the answer to my “first world problem”

So what I do now is…

“C:\Program Files\Notepad++\notepad++.exe” -multiInst -nosession -pluginMessage=compareplus <> <>

-multInst – as you know – allows me to close both files in the compare by just shutting down that instance of Notepad++

-nosession – as you know – allows me to run this without messing-up my regular Notepad++ which I have running much of the time

-pluginMessage=compareplus – obviously – runs the compare before returning control to me to look through and see what has changed

<> and <> – as you know – are the two files to open/compare

SO – this is a huge win!!

I get to automatically open the two files in Notepad++, run the comparePlus plugin, review the changes, and close the instance without closing each file individually (which is very nice when you get to my age).

Thank you for your help

Blake

Blake Turner

@.> @.

Manager, Information Technologies

405-507-0800 phone ext 102

Precision Administrators, Inc

405-507-0700 fax

3240 W. Britton Road, Suite 202

800-615-2797 toll-free (outside Oklahoma)

Oklahoma City, Oklahoma 73120

http://www.paibenefits.com/ www.paibenefits.com

Please only print this e-mail if necessary!

This message, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this message is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this message is prohibited. If you have received this message in error, please notify the sender by returning this message to the originator, and destroy this message immediately.

From: Pavel Nedev @.> Sent: Thursday, May 2, 2024 11꞉00:AM To: pnedev/comparePlus @.> Cc: PrecisionAdministrators @.>; Mention @.> Subject: Re: [pnedev/comparePlus] Feature option (Issue #388)

@PrecisionAdministrators https://github.com/PrecisionAdministrators , As I said I will consider this but my understanding was that you would like both files to be closed automatically after closing compare (much like the current option to close compared files if both are the same). Is that what you are suggesting?

— Reply to this email directly, https://github.com/pnedev/comparePlus/issues/388#issuecomment-2090886967 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/BIFDZXWGCFYBUNI66IXGZCLZAJPJXAVCNFSM6AAAAABGZZKGQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQHA4DMOJWG4 unsubscribe. You are receiving this because you were mentioned. https://github.com/notifications/beacon/BIFDZXTZ4HXPM22WAFNXS3LZAJPJXA5CNFSM6AAAAABGZZKGQCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT4UBTTO.gif Message ID: < @.> @.>

-- This email has been checked for viruses by Avast antivirus software. www.avast.com

pnedev commented 3 months ago

[ @PrecisionAdministrators ] Hello Blake,

I'm glad you found a workaround solution for your request, that's great :+1: I'll keep the ticket open to remind me of this feature suggestion for future plugin versions.

BR