Sorting: Ignore first 7 characters And sort
Sorting: Ignore first 7 characters And sort
Hi,
I have files like this:
2015 - book1
1999 - book2
1989 - book3
Can I configure Everything to ignore the year of the book. And sort the than? So that I have the titles in alphabetical form.
Thank you in anticipation!
ps
I do not want to rename the files and directories. I need the sortig via year too.
I have files like this:
2015 - book1
1999 - book2
1989 - book3
Can I configure Everything to ignore the year of the book. And sort the than? So that I have the titles in alphabetical form.
Thank you in anticipation!
ps
I do not want to rename the files and directories. I need the sortig via year too.
Re: Sorting: Ignore first 7 characters And sort
Advanced sort?
I don't think this is possible.
But I'm thinking about some solutions like:
1. EFU Everything File List (*.efu)
2. Editing dates of files
3. Double files (shortcuts/hardlinks with other filenames)
4. Tags
I don't think this is possible.
But I'm thinking about some solutions like:
1. EFU Everything File List (*.efu)
2. Editing dates of files
3. Double files (shortcuts/hardlinks with other filenames)
4. Tags
Re: Sorting: Ignore first 7 characters And sort
Currently, this can't be done easily, sorry.
You could try creating a file list of the filenames and stripping the first 7 characters.
However, once the file list is opened, the filenames will not reference the real files.
Sorting by the first regex match would be really useful here.. Added to my TODO list.
You could try creating a file list of the filenames and stripping the first 7 characters.
However, once the file list is opened, the filenames will not reference the real files.
Sorting by the first regex match would be really useful here.. Added to my TODO list.
Re: Sorting: Ignore first 7 characters And sort
Is the Advanced Rename feature of Everything can help here?
Re: Sorting: Ignore first 7 characters And sort
Thx for that discussion for solution!
@void
For what should I look for to know that that feature is intigrated?
a) will you post it here?
b) or what will be the name to search for in each update you release?
@void
For what should I look for to know that that feature is intigrated?
a) will you post it here?
b) or what will be the name to search for in each update you release?
Re: Sorting: Ignore first 7 characters And sort
I'm not @void, but I "follow" what's going on in this thread: viewtopic.php?f=2&t=5718
Here all fixes and new functonality is posted.
BTW: If you want just a list of all your books, sorted like you want it to, that is certainly possible. LEt me know if you're interested in that.
Here all fixes and new functonality is posted.
BTW: If you want just a list of all your books, sorted like you want it to, that is certainly possible. LEt me know if you're interested in that.
Re: Sorting: Ignore first 7 characters And sort
Yes please, go on!BTW: If you want just a list of all your books, sorted like you want it to, that is certainly possible. LEt me know if you're interested in that.
Re: Sorting: Ignore first 7 characters And sort
- First step is to write a search command in Everything so you find all your books.
Let's say your search query is:(Probably more along the lines of c:\MyBooks ext:mobi;pub regex:^^[0-9]{4}" - ".* , but it's an example)Code: Select all
c:\MyBooks ext:txt
- Now download Everything Command-line Interface (current version of ES is 1.1.0.9) from http://www.voidtools.com/downloads/
- Extract this zip to some folder on your harddisk
- Start CMD and go to this folder (CD /d "c:\My Folder" ,or whatever your folder is)
- Execute this command:
Replace c:\MyBooks ext:txt with the searchquery youy used earlier.
Code: Select all
ES.exe -name c:\MyBooks ext:txt | SORT.exe /+7 /output MyBookList.txt
- In MyBookList.txt are your books, sorted from the 7th character (ie the first 6 characters are ignored for the sorting)
EDIT: Just tested. This is my output, based on your (demo) books:
Code: Select all
2015 - book1.txt
1999 - book2.txt
1989 - book3.txt
Last edited by NotNull on Thu Jan 30, 2020 4:41 pm, edited 1 time in total.
Re: Sorting: Ignore first 7 characters And sort
Thak you! I am not home.
I will tell you my progress when I have time to test it. Good Evening
I will tell you my progress when I have time to test it. Good Evening
Re: Sorting: Ignore first 7 characters And sort
You must be a very busy man/woman!!cadillac wrote:I will tell you my progress when I have time to test it. Good Evening
Re: Sorting: Ignore first 7 characters And sort
Sorry I forgot to give feedback.
It works good, thank you!
ps
But I would need much more the feature we discussed here in this thread.
It works good, thank you!
ps
But I would need much more the feature we discussed here in this thread.
Re: Sorting: Ignore first 7 characters And sort
Everything 1.5 Alpha adds support for a regex match 1 property.
Results can be sorted by regex match 1.
To sort by book name, instead of year:
Results can be sorted by regex match 1.
To sort by book name, instead of year:
- In Everything 1.5 Alpha, type in the following search:
c:\MyBooks ext:mobi;pub regex:"^[0-9]{4} - (.*)$" - Right click the result list column header and check Search -> Regular Expression Match 1
- Sort results by this new column.
Re: Sorting: Ignore first 7 characters And sort
So I was messing with this...
(One of my normal columns is (video) 'Length'.
And as I'm messing with this, it added, 'Regular Expression Match 1' to the right of the Length column (& that is fine).
But... at that point in time, Length details, lazyload as they are (for me), were irrelevant, & I could have done with that data loading. [Which brings me back to, RFE: Disable Updates of Lazy Load Column.]
Just mentioning, cause, well, I ran into that specific situation.)
---
RFE:
Oh, perhaps, for the column name, abbreviate that to something like: RexEx 1...
As it is 'Regular Expression Match 1' is rather wordy & long, & the match # likely, well in my case, is truncated (overflow) as it is.
RexEx 1 is short & sweet & conveys the expected meaning.
(One of my normal columns is (video) 'Length'.
And as I'm messing with this, it added, 'Regular Expression Match 1' to the right of the Length column (& that is fine).
But... at that point in time, Length details, lazyload as they are (for me), were irrelevant, & I could have done with that data loading. [Which brings me back to, RFE: Disable Updates of Lazy Load Column.]
Just mentioning, cause, well, I ran into that specific situation.)
---
RFE:
Oh, perhaps, for the column name, abbreviate that to something like: RexEx 1...
As it is 'Regular Expression Match 1' is rather wordy & long, & the match # likely, well in my case, is truncated (overflow) as it is.
RexEx 1 is short & sweet & conveys the expected meaning.
Re: Sorting: Ignore first 7 characters And sort
I will consider an option to pause the loading of properties.
I will consider using abbreviated header titles when the header width is short.
Header tooltips are on my TODO list.
Use localization_strings to set the header text to anything you like (not ideal, but does give the user full control).
For example:
localization_strings=Regular Expression Match 1=Regex1
Thank you for the suggestions.
I will consider using abbreviated header titles when the header width is short.
Header tooltips are on my TODO list.
Use localization_strings to set the header text to anything you like (not ideal, but does give the user full control).
For example:
localization_strings=Regular Expression Match 1=Regex1
Thank you for the suggestions.
Re: Sorting: Ignore first 7 characters And sort
Would it be possible to use a regex search to define a new property consisting of text extracted from a filename or another property? Using the above example - you might define the property "Book:" with the associated search "c:\MyBooks ext:mobi;pub regex:"^[0-9]{4} - (.*)$"" Then you could do a search like "book:potter" if you wanted to find a Harry Potter book. You could have a whole list of property definitions defined this way.void wrote: ↑Sat Jun 19, 2021 4:58 am Everything 1.5 Alpha adds support for a regex match 1 property.
Results can be sorted by regex match 1.
To sort by book name, instead of year:
- In Everything 1.5 Alpha, type in the following search:
c:\MyBooks ext:mobi;pub regex:"^[0-9]{4} - (.*)$"- Right click the result list column header and check Search -> Regular Expression Match 1
- Sort results by this new column.
Re: Sorting: Ignore first 7 characters And sort
I've put on my TODO list to add a regexcapture: search modifier to reference captured regex matches.
Thanks for the suggestion.
"book:potter"
You might be interested in filter macros.
To create a book: search:
In Everything, from the Search menu, click Add to filters...
Change the Name to: Book
Change the Search to: c:\MyBooks ext:mobi;pub search:
Change the Macro to: book<search>
Click OK.
Now when you search for book:potter it is replaced with:
c:\MyBooks ext:mobi;pub potter
Thanks for the suggestion.
"book:potter"
You might be interested in filter macros.
To create a book: search:
In Everything, from the Search menu, click Add to filters...
Change the Name to: Book
Change the Search to: c:\MyBooks ext:mobi;pub search:
Change the Macro to: book<search>
Click OK.
Now when you search for book:potter it is replaced with:
c:\MyBooks ext:mobi;pub potter
Re: Sorting: Ignore first 7 characters And sort
Would regexcapture: be something different from "regular-expression-match-1:" in the example below?
Re: Sorting: Ignore first 7 characters And sort
regular-expression-match-1: will only work on filenames.
regexcapture: would work with properties and other search functions.
An example might be:
regex:property1:(\d\d\d\d) regexcapture:property2:\1
regexcapture might not be the best name, regexmatch: might be better..
regexcapture: would work with properties and other search functions.
An example might be:
regex:property1:(\d\d\d\d) regexcapture:property2:\1
regexcapture might not be the best name, regexmatch: might be better..
Re: Sorting: Ignore first 7 characters And sort
Great! I look forward to using it!