Multi-line strange pasting and double spaces gone

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Multi-line strange pasting and double spaces gone

Post by Herkules97 »

EDITED SOMEWHAT IF YOU SAW THIS THREAD BEFORE, CHANGED TITLE TO REFLECT CHANGES.
So something got me to finally get onto 1.5 and I have stumbled upon my first issue that I can't quick-ish find a fix for with the advanced tab in settings nor the last 5-8 pages of this section with the keywords "folder" and "multi" of searching titles, but maybe there is something else I could search for that I haven't though of currently..

Anyway, in 1.4 when I copy and paste something it goes from..
"F:\alright"
"F:\F3\yes"
to
"F:\alright" "F:\F3\yes"
and then I can make it quickly into the below to see contents, including the folders' properties.
"F:\alright"|"F:\F3\yes"
or exclude
!"F:\alright" !"F:\F3\yes"

But with 1.5, I copy and it's fine, still
"F:\alright"
"F:\F3\yes"
But then when I paste, it's something strange..
<<"F:\alright">|<"F:\F3\yes">>

Also when pasting it seems to remove the second space in a folder's name. The folder has 2 spaces, when it removes that in the pasting it can no longer show up in the results as it has the wrong folder name pasted. I discovered this some minutes ago(6 or so hours after this post was created) and it may have already have an answer elsewhere, but it replaces the thread's previous state where I thought multi-folder searching wasn't working.

How do I get back the old behaviour for both of these? I am hoping both can be changed back, not that there is some other way to display folders with multiple spaces between letters. Makes it easy in history if searches use the actual folder names.
Also easier when using other things, like robocopy, if the pasting is like 1.4. For example in excluding folders, I copy multiple folder paths, paste back into Everything then copy that because it gets rid of the new lines quickly and has spaces between each folder. No need for anything extra.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

Everything 1.5 will use the OR operator on pasted multi-line text by default.

To change back to the AND operator (as it was in Everything 1.4):
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    new line
  • Select: paste_new_line_op
  • Set the value to: AND
  • Click OK.


The pasted text is wrapped with < and >
< and > are used for grouping.
This makes it easier to pass to functions or perform operations on the entire pasted text.

Is the < > grouping getting in the way?
Would an option to disable grouping be useful?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Multi-line strange pasting and double spaces gone

Post by tuska »

Just a note:
  1. Options > Advanced: paste_new_line_op: OR
    1. Copying file names into the search box of Everything results in the following:

      Code: Select all

      <20240115_092900.jpg|20240115_123109.jpg>
    2. Drag and drop of two file names into the search box of Everything results in the following:

      Code: Select all

      20240115_092900.jpg | 20240115_123109.jpg 
  2. Options > Advanced: paste_new_line_op: AND
    1. Copying file names into the search box of Everything results in the following:

      Code: Select all

      <20240115_092900.jpg 20240115_123109.jpg>
    2. Drag and drop of two file names into the search box of Everything results in the following:

      Code: Select all

      20240115_092900.jpg | 20240115_123109.jpg 
    ________________________________
    Everything 1.5.0.1366a mod1 (1367a)
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

This is expected.

Search text is different to filenames (drag-drop).

20240115_092900.jpg 20240115_123109.jpg

(20240115_092900.jpg AND 20240115_123109.jpg)
will likely not match any results.
Drag-dropping multiple files will always use the OR operator.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Multi-line strange pasting and double spaces gone

Post by tuska »

void wrote: Sat Jan 20, 2024 1:53 am This is expected.

Search text is different to filenames (drag-drop).

20240115_092900.jpg 20240115_123109.jpg

(20240115_092900.jpg AND 20240115_123109.jpg)
will likely not match any results.
Drag-dropping multiple files will always use the OR operator.
Ahh, thanks!

I am sorry.
Example 2.a. above naturally does not produce a result. :?
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Re: Multi-line strange pasting and double spaces gone

Post by Herkules97 »

void wrote: Sat Jan 20, 2024 1:14 am The pasted text is wrapped with < and >
< and > are used for grouping.
This makes it easier to pass to functions or perform operations on the entire pasted text.

Is the < > grouping getting in the way?
Would an option to disable grouping be useful?
Yes, I am looking for a way to disable the arrows when pasting so it behaves the same way 1.4 did with pasting as you've already implemented the toggle for pasting in new lines as OR or AND and I can toggle that whenever. If I can toggle the arrows whenever, then 1.5 might just be an entirely improved version. At least in the way I used 1.4, 1.5 hasn't had any other changes that has made it worse than 1.4 from what I can tell in the 3 days I've used it.

Oops, I forgot the second part..So I have this folder with 2 spaces and when I paste into 1.5, it deletes one of the spaces. That might already be an advanced setting, but I don't know what keywords I'd use for it if so. Tried "space", "empty", "blank" and "past". The only thing that stands out to me is rename_paste_format, but I don't know what I would put in it if that's what I need to change to keep all spaces when pasting.


Also is there a way to add date accessed to .efu exports as Everything currently is? I think that might be the only thing missing for an .efu to be like a database which would be nice to have for something like the Everything folder I add .efu to for files I've archived or deleted so I can still search my way to something that is now in an archive or find out that I deleted something so I can stop looking for it.
Last edited by Herkules97 on Sat Jan 20, 2024 8:59 am, edited 1 time in total.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

Thanks again for the issue report Herkules97,



The next alpha update will:
Fix double spaces being merged into one.
Add a paste_multiline_group advanced setting to remove the < > grouping.

The reason for the change is
"F:\alright" "F:\F3\yes"
will not match any results.

Setting the new line op to AND and disabling paste_multiline_group will give the same behavior as Everything 1.4.



I'll make another post here once I have a build to test.

Added a note to: Everything 1.4 feature changes in Everything 1.5
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Re: Multi-line strange pasting and double spaces gone

Post by Herkules97 »

void wrote: Sat Jan 20, 2024 8:57 am Fix double spaces being merged into one.
Just to clarify, did you write double spaces but meant any spaces more than one between letters?
Because 1.5 does the same with a folder that has 3 spaces and one that has 10, removes all but one for each gap there is if a gap has more than 1 space.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

Yes, two or more.

The number of spaces will be preserved in the next alpha update.



Multiple spaces will continue to be merged into one when you paste with punctuation removed (Ctrl + Shift + V)
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

Everything 1.5.0.1367a improves pasting multiline text into the search box:

Multiple spaces are preserved.
< and > grouping can be disabled with the new paste_multiline_group advanced setting.
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    paste
  • Select: paste_multiline_group
  • Set the value to: false
  • Click OK.


With paste_multiline_group disabled, you should see the exact same formatting as Everything 1.4
Please let me know if you have any troubles with pasting multiline text with this version.
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Re: Multi-line strange pasting and double spaces gone

Post by Herkules97 »

void wrote: Thu Feb 08, 2024 6:59 am Everything 1.5.0.1367a improves pasting multiline text into the search box:

Multiple spaces are preserved.
< and > grouping can be disabled with the new paste_multiline_group advanced setting.
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    paste
  • Select: paste_multiline_group
  • Set the value to: false
  • Click OK.


With paste_multiline_group disabled, you should see the exact same formatting as Everything 1.4
Please let me know if you have any troubles with pasting multiline text with this version.
Testing both multiline grouping and double or more spaces in a name, it is now behaving like 1.4. Also compared to 1366a just to make sure I didn't dream it up. Nice :)

I do wonder, because you have a dedicated page making 1.5 possible to behave like 1.4, why doesn't 1.5 already behave like 1.4 and these advanced settings make it work like the current 1.5 does by default?
For example, why is multi-line pasting not like 1.4 and then an advanced setting can make it group like it does in actual 1.5? Did you re-write the program? My question is without knowing programming.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

Many users requested ORing multiple lines.

Everything 1.5 will trial this as the default.



I will consider an option in the UI (not an advanced option) to configure pasting multiple lines of text.
(Depending on the number of requests to revert to ANDing multiple lines.)
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Re: Multi-line strange pasting and double spaces gone

Post by Herkules97 »

void wrote: Thu Feb 08, 2024 9:10 am Many users requested ORing multiple lines.

Everything 1.5 will trial this as the default.



I will consider an option in the UI (not an advanced option) to configure pasting multiple lines of text.
(Depending on the number of requests to revert to ANDing multiple lines.)
I don't know why you mention the first part, maybe you mean grouping is "ORing" or I wasn't clear, whatever the case here comes the question..
I understand that they are the default in 1.5, but as 1.4 didn't group, is it because 1.5 was written "from scratch" or because you made grouping the default in 1.5 and until 1367a there wasn't a way to toggle on that part of the 1.4 code for the user?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

It's not a complete rewrite.

It was an improvement on the existing code.
Everything 1.4 also has the paste_new_line_op ini setting.



The grouping was only recently added.

Grouping has been the default since 1358a.



1367a adds an option to disable the grouping.
Herkules97
Posts: 71
Joined: Tue Oct 08, 2019 6:42 am

Re: Multi-line strange pasting and double spaces gone

Post by Herkules97 »

void wrote: Mon Feb 12, 2024 2:28 am It's not a complete rewrite.

It was an improvement on the existing code.
Everything 1.4 also has the paste_new_line_op ini setting.



The grouping was only recently added.

Grouping has been the default since 1358a.



1367a adds an option to disable the grouping.
Should I ask this here or make a new post just for this..I don't know, it has a tiny relevance to your reply..
In Windows there are a good few registry changes that are either hidden in obscure places on the internet to find or maybe hidden entirely, they're not in the registry by default. I believe seconds in the clock is one such setting, I can't remember if it was set to 0 previously or did not exist.

So I found a link within that link of yours(viewtopic.php?p=62254#paste_multiline_type) and I'm wondering if the .ini has every setting visible, on or off by default, or if there are settings that only show up after you either toggle them off or on within Everything or add them in the .ini using that forum post and other ini setting posts if they exist and contain other settings?

Would also be nice if whichever the case, ini settings were added into the program under the Help sub-menu, like how the search syntax one is.
If it's basic enough to write, I could try my hand at it as I am the one that wants it. Using the search syntax one for an understanding, maybe.
It might be what they call "open source" and this program doesn't seem to be that, but I'll at least mention it.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

I'm wondering if the .ini has every setting visible, on or off by default, or if there are settings that only show up after you either toggle them off or on within Everything or add them in the .ini using that forum post and other ini setting posts if they exist and contain other settings?
The Everything.ini contains all settings.
There's no hidden settings.



I will consider showing settings under the Help menu.
Thank you for the suggestions.



For now, Help -> Everything Help will quickly get you to the ini settings help.



Basic ini settings are found here:
https://www.voidtools.com/support/everything/ini/



Most of the advanced ini settings can be found under Tools -> Options -> Advanced.
Select an advanced setting and press F1 to show more help (online):
https://www.voidtools.com/forum/viewtopic.php?t=9994#setting-name
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Multi-line strange pasting and double spaces gone

Post by tuska »

void wrote: Mon Feb 12, 2024 10:17 pm Most of the advanced ini settings can be found under Tools -> Options -> Advanced.
Select an advanced setting and press F1 to show more help (online):
https://www.voidtools.com/forum/viewtopic.php?t=9994#setting-name
I would like to suggest a "Help" button,
because I didn't realise until now that you can press F1 to get help in this settings window.
 
2024-02-12_Help button in Advanced Settings.png
2024-02-12_Help button in Advanced Settings.png (1.72 KiB) Viewed 3698 times
 
However, the user should still be able to access help by pressing the F1 key.
I think that would be a good hint that you can get to the help directly.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-line strange pasting and double spaces gone

Post by void »

I will consider a help button.

Thank you for the suggestion.



F1 is reserved for the blind.
Pressing F1 will show the tooltip for the currently focused item.

I'll make sure F1 only works from the Advanced Search listview in the next alpha update.

I think there needs to be a separate Help button next to the advanced search listview.



General options help can be found from main search window -> Help -> Everything Help -> Options.
Post Reply