rizonesoft / Notepad3

Notepad like text editor based on the Scintilla source code. Notepad3 based on code from Notepad2 and MiniPath on code from metapath. Download Notepad3:
https://www.rizonesoft.com/downloads/notepad3/
Other
5.11k stars 336 forks source link

ctrl+alt+d: remove duplicate lines got issue for the 1st time for me #5008

Closed sunflower-guy closed 1 year ago

sunflower-guy commented 1 year ago

Hi Team,

version: Notepad3 (x64) 6.23.913.1 rc

scenario:

listen:hello平1photo
listen:hello平2photo
listen:hello平3photo

command ctrl+alt+d: remove duplicate lines, get: listen:hello平1photo

question: apparently they're different, the number after "平": 1, 2, 3, why they're considered to be the same?

expectation: ctrl+alt+d: remove duplicate lines, function as it is.

Thanks for the consideration & possible fulfilment.

RaiKoHoff commented 1 year ago

Can't reproduce your issue. Please Provide your Notepad3.ini (w/o File History or other traces of no interest).

sunflower-guy commented 1 year ago

@RaiKoHoff > Can't reproduce your issue. Please Provide your Notepad3.ini (w/o File History or other traces of no interest).

based on what you replied, i thought it's the Notepad3.ini's issue, so i downloaded the latest version from #1129, which is Notepad3Portable_6.23.913.1_rc.paf.exe, copy the Notepad3.ini from Notepad3Portable_6.23.913.1_rc.paf.exe\App\DefaultData\settings into %APPDATA%\Rizonesoft\Notepad3\Notepad3.ini without editing;

while, still, it get the same issue;

don't know why it can't be reproduced in your end, if needed, i can upload a .gif video to show the process, while, it's just simple as i stated in the beginning of this ticket.

thanks.

chuanliwen commented 1 year ago

version: Notepad3 (x64) v5.21.905.1 for 3 text lines: listen:hello平1photo listen:hello平2photo listen:hello平3photo

Press ctrl+alt+D sometimes removes the second line, sometimes removes the last two lines..

sunflower-guy commented 1 year ago

version: Notepad3 (x64) v5.21.905.1 for 3 text lines: listen:hello平1photo listen:hello平2photo listen:hello平3photo

Press ctrl+alt+D sometimes removes the second line, sometimes removes the last two lines..

nice to know that i'm not alone on this issue, and, based on your version, it happened long time ago, apparently, it's a tricky issue to be noticed(it needs special characters besides English to be occurred).

hpwamr commented 1 year ago

don't know why it can't be reproduced in your end, if needed, i can upload a .gif video to show the process, while, it's just simple as i stated in the beginning of this ticket.

Very strange because I can't reproduce it either! 😬

sunflower-guy commented 1 year ago

don't know why it can't be reproduced in your end, if needed, i can upload a .gif video to show the process, while, it's just simple as i stated in the beginning of this ticket.

Very strange because I can't reproduce it either! 😬

well...that's why i said "got issue for the 1st time for me", i've been using Notepad3 around 3-5 years(maybe)? it's just occurred for a special scenario, as in the beginning the 3 lines.

hpwamr commented 1 year ago

It's just occurred for a special scenario, as in the beginning the 3 lines.

Hello @sunflower-guy , Because I can't reproduce this issue, please, could you post here your file in which this issue occurs (packed in a zip file). 🤔

sunflower-guy commented 1 year ago

It's just occurred for a special scenario, as in the beginning the 3 lines.

Hello @sunflower-guy , Because I can't reproduce this issue, please, could you post here your file in which this issue occurs (packed in a zip file). 🤔

hi @hpwamr

  1. i thought you guys have to ignore this issue bcz you can't reproduce it, which is sad for me, since i'm waiting everyday for any update of this, so it's nice to know you guys are still on it.

  2. i thought i'd posted the file content, as in the beginning the 3 lines, which you guys can copy(use the button in the right side of this page) to get it, so i didn't uploaded the file, since it's easy to copy/get as mentioned. image for the file, anyway, here it is i uploaded as you said: test of the ctrl+alt+d remove duplicate lines got issue.zip

  3. also, as mentioned earlier the video to show the process: https://github.com/rizonesoft/Notepad3/assets/141052077/5f8673db-a813-4a3d-aef1-6f2cc7a5b9cd

hope you guys can reproduce it in your end.

hpwamr commented 1 year ago

hope you guys can reproduce it in your end.

Alas, I can't reproduce it either (my test file and your test file are identical).

also, as mentioned earlier the video to show the process: https://github.com/rizonesoft/Notepad3/assets/141052077/5f8673db-a813-4a3d-aef1-6f2cc7a5b9cd

The above link is not working? 🤔

sunflower-guy commented 1 year ago

Alas, I can't reproduce it either (my test file and your test file are identical).

umm...maybe related with some configuration of the system? not sure, maybe need the coding side to dig more. e.g.: i'm in Windows 10 64 bit.

The above link is not working? 🤔 the process.zip

hpwamr commented 1 year ago

e.g.: i'm in Windows 10 64 bit

Can not reproduce it! 😬

Tested with Notepad3 (x64) 6.23.913.1 rc on:

RaiKoHoff commented 1 year ago

Please provide your "Notepad3.ini" and the content of the clipboard after pressing Copy Version Text button of the About dialog box.

chuanliwen commented 1 year ago

Following is the related info from my computer:

Version: Notepad3 (x64) v5.21.905.1 (946e6b05) Compiler: MS Visual C++ 2019 v16.11.(0-2) (VC v1929) OS Version: Windows 10 Version 21H2 [Insdr] (Build 19045) Windows Colors 'Dark-Mode' Theme is NO SUPPORTED. Scintilla v511 Lexilla v511 Oniguruma v7.0.0

Notepad3.ini:

[Notepad3] ;Notepad3.ini=%USERPROFILE%\Notepad3.ini ;Notepad3.ini=%APPDATA%\Rizonesoft\Notepad3\Notepad3.ini [Settings] SettingsVersion=5 RegExprSearch=true efrDatafuFlags=2097152 FindReplaceTransparentMode=false FileMRUDlgSizeY=379 PathNameFormat=2 MuteMessageBeep=true ToolbarButtons=1 2 4 28 0 3 5 6 0 7 8 9 0 10 11 0 30 0 12 0 24 26 0 22 23 0 13 14 0 15 0 25 0 29 0 17 [Settings2] SingleFileInstance=0 ;IMEInteraction=0 ;AutoReloadTimeout=2000 ;DateTimeFormat= (-> ) ;DateTimeLongFormat= (-> ) ;TimeStampRegEx= (-> \$Date:[^\$]+\$ ) (Find-Pattern to Update Stamps) ;TimeStampFormat= (-> $Date: %s $) {Print format should fit to TimeStampRegEx} ;DefaultDirectory= ;DefaultExtension=txt ;DefaultWindowPosition= ;DenyVirtualSpaceAccess=0 ;filebrowser.exe=minipath.exe ;grepWin.exe=grepWinNP3.exe ;FileCheckInverval=2000 ;FileChangedIndicator=[@] ;FileDeletedIndicator=[X] ;FileDlgFilters= ;FileLoadWarningMB=4 ;MultiFileArg=0 ;NoCGIGuess=0 ;NoCopyLineOnEmptySelection=0 ;NoCutLineOnEmptySelection=0 ;NoFadeHidden=0 ;NoFileVariables=0 ;NoHTMLGuess=0 ;PortableMyDocs=1 ;OpacityLevel=75 ;FindReplaceOpacityLevel=50 ;RelativeFileMRU=1 ;ReuseWindow=0 ;SciFontQuality=3 ;SimpleIndentGuides=0 ;SingleFileInstance=1 ;ShellAppUserModelID=Rizonesoft.Notepad3 ;ShellUseSystemMRU=1 ;StickyWindowPosition=0 ;LaunchInstanceWndPosOffset=0 ;LaunchInstanceFullVisible=0 ;UseOldStyleBraceMatching=0 ;WebTemplate1=https://google.com/search?q=%s ;WebTmpl1MenuName=Open Web Action 1 ;WebTemplate2=https://en.wikipedia.org/w/index.php?search=%s ;WebTmpl2MenuName=Open Web Action 2 ;ExtendedWhiteSpaceChars= ;AutoCompleteWordCharSet= ;AutoCompleteFillUpChars= ;LineCommentPostfixStrg= ;UpdateDelayMarkAllOccurrences=50 ;CurrentLineHorizontalSlop=40 ;CurrentLineVerticalSlop=5 ;UndoTransactionTimeout=0 ;AdministrationTool.exe= ;DevDebugMode=0 ;AnalyzeReliableConfidenceLevel=92 ;LocaleAnsiCodePageAnalysisBonus=33 ;LexerSQLNumberSignAsComment=1 ;ExitOnESCSkipLevel=2 ;ZoomTooltipTimeout=3200 ;WrapAroundTooltipTimeout=2000 ;LargeIconScalePrecent=150 ;DarkModeBkgColor=0x1F1F1F ;DarkModeBtnFaceColor=0x333333 ;DarkModeTxtColor=0xEFEFEF ;HyperlinkShellExURLWithApp="" ;HyperlinkShellExURLCmdLnArgs="${URL}" (use ${URL} as place holder for clicked Hyperlink URL string) ;HyperlinkFileProtocolVerb="" (ShellExecuteEx()::lpVerb (""=default, "edit", "explore", "find", "open", "print", "properties", "runas") [Statusbar Settings] ;VisibleSections=0 1 12 14 2 4 5 6 7 8 9 10 11 ;SectionPrefixes=Ln ,Col ,Sel ,Sb ,SLn ,Occ ,,,,,,,Ch ,Repl ,Eval , ;SectionPostfixes=,,,,,,,,,,,,,,, ;SectionWidthSpecs=30 20 20 20 20 20 0 0 0 0 0 0 20 20 20 ;ZeroBasedColumnIndex=0 ;ZeroBasedCharacterCount=0 [Toolbar Images] ;BitmapDefault=<[:|relative]\pathto>\Toolbar.bmp ;BitmapHot=<[:|relative]\pathto>\ToolbarHot.bmp ;BitmapDisabled=<[:|relative]\path_to>\ToolbarDisabled.bmp [Toolbar Labels] ;01=New ;02=Open ;03=Browse ;04=Save ;05=Undo ;06=Redo ;07=Cut ;08=Copy ;09=Paste ;10=Find ;11=Replace ;12=Word Wrap ;13=Zoom In ;14=Zoom Out ;15=Scheme ;16=Customize Schemes ;17=Exit ;18=Save As ;19=Save Copy ;20=Delete ;21=Print ;22=Favorites ;23=Add to Favorites ;24=Toggle Folds ;25=Execute Document ;26=Focused View ;27=Monitoring Log ;28=History ;29=Always On Top ;30=Search in Files [Custom Colors] [Styles] [Common Base] Default Style=font:YHM [2nd Common Base] [Text Files] [ANSI Art] [Apache Config Files] [Assembly Script] [AutoHotkey_L Script] [AutoIt3 Script] [AviSynth Script] [Awk Script] [Batch Files] [C# Source Code] [C/C++ Source Code] [Cmake Script] [Coffeescript] [Configuration Files] [CSS Style Sheets] [CSV Prism] [D Source Code] [Dart Source Code] [Diff Files] [Go Source Code] [Inno Setup Script] [Java Source Code] [JavaScript] [JSON] [Julia Script] [KiXtart Script] [Kotlin Source Code] [LaTeX Files] [Lua Script] [Makefiles] [Markdown] [MATLAB] [Nim Source Code] [NSIS Script] [Pascal Source Code] [Perl Script] [PowerShell Script] [Python Script] [Registry Files] [Resource Script] [R-S-SPlus Statistics Code] [Ruby Script] [Rust Source Code] [Shell Script] [SQL Query] [Tcl Script] [TOML Config] [VBScript] [VHDL] [Visual Basic] [Web Source Code] [XML Document] [YAML] [Window] 1366x768 HighDpiToolBar=0 1366x768 PosX=175 1366x768 PosY=0 1366x768 SizeX=876 1366x768 SizeY=728 1366x768 Maximized=false 1366x768 Zoom=100 1366x768 DPI=96 [Suppressed Messages] MsgFindWrap1=1 MsgFileUnknownExt=6 [Recent Files] 01="%CSIDL:MYDOCUMENTS%\java sucks.txt" ENC01=3 02="%SystemDrive%\cygwin\home\winn\a" ENC02=3 03="%SystemDrive%\cygwin\home\winn\subl" ENC03=3 04="%SystemDrive%\cygwin\home\winn\c" ENC04=3 05="%SystemDrive%\cygwin\home\winn\b" ENC05=3 06="%SystemDrive%\cygwin\home\winn\aa" ENC06=3 07="%SystemDrive%\phpStudy\PHPTutorial\WWW\a" ENC07=3 08="%SystemDrive%\cygwin\home\winn\rust\main.rs" ENC08=3 09="%SystemDrive%\绿色软件\notepad3\Docs\Notepad3.txt" ENC09=3 10="%CSIDL:MYDOCUMENTS%\拼音加加简介.txt" ENC10=54936 11="%SystemDrive%\绿色软件\notepad3\notepad3 v5.21.905.1能记忆窗口位置。.txt" ENC11=3 12="%SystemDrive%\cygwin\home\winn\ab" ENC12=3 13="%SystemDrive%\绿色软件\notepad3\grepWinLicense.txt" ENC13=3 14="%USERPROFILE%\Desktop\notepad3_v5\License.txt" ENC14=3 [Recent Find] [Recent Replace]

sunflower-guy commented 1 year ago

2 points as asked.zip

@RaiKoHoff

RaiKoHoff commented 1 year ago

@chuanliwen , @sunflower-guy : I am very sorry, but even with your settings (except switching my machine to "Locale -> zh-CN (CP:'ANSI (CP-936)')", I am not able to reproduce this issue using current Notepad3 (beta) version.

sunflower-guy commented 1 year ago

@RaiKoHoff @hpwamr

from my point: ":"&"平", are UTF-8 characters, which causing the issue, in another word: all English lines, or all Chinese lines without ":" or other special characters, it will function as expected without this issue;

so it's incompatible character scenario, as i see;

thanks for your effort on this point, sometimes it's just "hidden" little things to be noticed;

expect to see it be solved in the later versions.

RaiKoHoff commented 1 year ago

PR #5016 tries to fix this issue.

sunflower-guy commented 1 year ago

ok, waiting to verify it.

hpwamr commented 1 year ago

Hello @sunflower-guy , @chuanliwen ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_6.23.926.1_rc.paf" or newer, see in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_6.23.926.1_rc_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

sunflower-guy commented 1 year ago

wow... finally, i test it out to be smooth and working as expected.

@RaiKoHoff @hpwamr @chuanliwen thank you, my team, as always, professional and efficient.