Open LennaHammer opened 3 months ago
@hpwamr : No it is no bug or regression, this is an option within the "Sort lines" working as designed. @LennaHammer is correct, that the wording is not chosen well and may be misleading.
Remove unique lines.
=> OK Remove empty lines.
=> OK Remove white-space lines.
=> called in the Edit -> Lines ->
menu: Remove Blank Lines
- better: use same wordingRemove duplicate lines.
=> the meaning is as described by @LennaHammer : remove all duplicates (incl. first one) maybe we can find a better wording here.Merge duplicate lines.
=> Merge duplicate lines (into the first one) - this is the same functionality as menu Edit -> Lines -> Remove Duplicate Lines
- which removes all dupes except the first/original line.So, functionality is correct - we should find better wording here - any suggestions ?
@hpwamr : Since this is all about wording, I leave it up to you to find better wording. Suggestion: For the Sort-Lines Dialog:
Remove duplicate lines.
=> Remove all dupes (incl. orig. line).
Merge duplicate lines.
=> Remove duplicate lines.
Since this is all about wording, I leave it up to you to find better wording.
Hello @craigo-, @jupester, @kofifus, @ltGuillaume, @MelchiorGaspar, and other Notepad3 BETA/RC testers, I need your help. 🤔 Do you have an idea for better wording (or the above suggestion is OK)?
Not functions I use regularly, but I do love having consistent wording - good catch, @LennaHammer 😄
I initially reacted positively to the suggestion from @ltguillaume - it does clear up the inconsistency, but I find it troublesome to apply everywhere else.
I actually find the following definition (as found in the majority of the menu options) to be fairly clear, i.e.:
i.e. how it is currently in the following functions:
Therefore, I would propose the following change:
You could even add the then-missing function "Edit > Lines > Remove Duplicate Lines", which retains no instances of duplicated lines (but that might be beyond the scope of this issue, and as we know, extra keyboard shortcuts are hard to find!)
Does that then clear up the inconsistency everywhere? I cannot find anywhere else that this exists.
As for clarification of the wording, is it possible to add a ToolTip for menu options and/or the sort dialogue that explains the merge/remove definitions? And also in the documentation at rizonesoft.com?
May I also add one thing? Can the Sort Lines dialogue option "Remove white-space lines." be changed to "Remove blank lines."? I believe this is the correct phraseology used elsewhere.
I'd say the definition of merging is not retaining one of several identical things, but combining two or more (different) things into one (new) thing. This makes the term "merge" confusing in the presented context imho.
In essence, what we're doing, instead of merging, is deduplicating.
In essence, what we're doing, instead of merging, is deduplicating.
Just a question: is not "Keep unique lines" better than "Merge duplicate lines"? 🤔
In essence, what we're doing, instead of merging, is deduplicating.
OK, I can get on board with that.
Just a question: is not "Keep unique lines" better than "Merge duplicate lines"? 🤔
Also a good option.
So we have two primary candidates (and a couple of alternates) to replace the "Merge" function:
What do we do with the "Remove" function? Suggestions:
That's the best I can come up with in the limited time I have, and I must say I'm not wildly happy about any of them - they all seem rather unwieldy, which is why I originally stuck with the existing merge/remove wording. I'd still like to table that as a viable option, but if I was forced to choose a best alternative pair, it would probably be:
Whatever we end up with:
How about Keep (only) first of duplicated lines (=merge) and Remove all duplicated lines (=remove)?
Hello @LennaHammer , @craigo- , @ltguillaume ,
Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_6.24.703.1_rc3.paf" or newer, see the 1st list 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.24.703.1_rc3_Setup" or newer, see the 2nd list in issue #1129.
Comments and suggestions are welcome... 😃
when using lines > remove dup lines, it works like the uniq command which keeps the first dup line,
but when using selections > sort lines > remove dup lines, the lines that appear twice will all be removed.
it's very confusing that the same command has two different meanings in two different submenus. I've used these commands incorrectly, I think it can be avoided by providing a better name.