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
4.79k stars 322 forks source link

don't know the Sel calculation, and the display of Occ(occurrence) with bug #5176

Closed sunflower-guy closed 1 month ago

sunflower-guy commented 2 months ago

Hi Team, version: Notepad3 (x64) 6.24.307.1 rc2 & 6.24.414.1 rc3

scenario:

as the test file & screenshot showed, by accident, noticed that:

  1. copy 2 lines' content->paste into the Find box, it displays "Sel=4", keep clicking "Find Next" or "Enter" button, it displays "Occ=1-2/2";
  2. copy 3 lines' content->paste into the Find box, it displays "Sel=7", keep clicking "Find Next" or "Enter" button, it displays "Occ=1-2-3-4...->/2", i just stop at 39, which is increasing +1 each time;

question:

  1. in 1, why the Sel=4? how to calculate it out? in my opinion, it's 2, even including the "Newline special char", it's 3?
  2. it's correct when it's 2 lines, while in the 2nd scenario, apparently it's out of normal to display the Occ as it keep increasing, right? 1st_20240429225616 2nd_20240429225718 3rd_20240429231324

expectation:

  1. know how the Sel is calculated out here;
  2. the Occ number is displayed as expected when multiple lines(more than 2), e.g.: here it's 1-2/2.

Thanks for the consideration & possible fulfilment.

sunflower-guy commented 1 month ago

@hpwamr Hi, RaiKoHoff has not yet online since March 7th, which is not the case prviously, it looks like no one is maintaining this git, can we get some update here regarding the git status here?

Regards,

hpwamr commented 1 month ago

can we get some update here regarding the git status here?

Hello @sunflower-guy ,

For personal and professional reasons, @RaiKoHoff needed to take an indefinite break.

But no, Notepad3 support and development is not abandoned, it is just "suspended" while we reorganize and find one or more new "C++ Developer(s)".

RaiKoHoff commented 1 month ago

Hello @sunflower-guy : regarding your questions:

  1. Sel: Count of all selected characters (including invisible line-breaks (CR LF, \r\n) - switch on Show line endings) Pressing Esc Ctrl Chr in Search dialog box will show the selected characters too.
  2. Occ: I am not able to reproduce the 39/2 case - please provide a detailed workflow.
sunflower-guy commented 1 month ago

Hello @sunflower-guy : regarding your questions:

  1. Sel: Count of all selected characters (including invisible line-breaks (CR LF, \r\n) - switch on Show line endings) Pressing Esc Ctrl Chr in Search dialog box will show the selected characters too.
  2. Occ: I am not able to reproduce the 39/2 case - please provide a detailed workflow.

Hi @RaiKoHoff Nice to see you back as previously. ^^

the detailed workflow is mentioned in the "scenario" as initially, while i tried it again several time now, and i also can't reproduce it out. so basically it confused me also(though the screenshots initially make sense)

hence, i will close this ticket for now.

thanks again for the prompt reply.