haikuarchives / filer Goto Github PK
View Code? Open in Web Editor NEWThe Filer is a powerful, flexible automatic file organizer. It is an implementation of the Sorting Chute idea conceived on the Glass Elevator mailing list for Haiku.
The Filer is a powerful, flexible automatic file organizer. It is an implementation of the Sorting Chute idea conceived on the Glass Elevator mailing list for Haiku.
We have the old format from v1.1.0, the newer format with the enabled/disabled flag for each rule, and the newest format that replaces string names for test (e.g., "Type"), mode (e.g., "is"), and action (e.g., "Move to folder...") with integer codes (TEST_TYPE, MODE_IS, and ACTION_MOVE, respectively). Because the newer formats are post-v1.1.0 and from unreleased versions of Filer, it's probably sufficient to make the newest format compatible with the v1.1.0 format and ignore all the other formats in between. (There were intermediate formats that only converted some of the test, mode, and action strings to integers.) If so, we need to remove the SupportLocale flag from Filer_settings file.
Now fixed.
Also, invalidate the text controls and disable the OK button in RuleEditWindow if any text entry contains only white spaces.
Only decimal digits 0-9 and the decimal point should be allowed in the text control for the Size test.
I've built filer from the last available commit 514d5dd
All went fine, but when I launch Filer, it will immediately crash.
I saved the debug report: http://sprunge.us/gQFA
The file panel titles of the rules edit window should be changed:
Test:
"Filer: Choose file with same: {test-pop-up-label}"
Action:
"Filer: {action-pop-up-label}
The Edit button in the AutoFiler tab is superfluous and problematic. It opens a file panel that asks me to "choose" a subfolder of the folder that is being "edited". If the folder has no subfolders, I am given an empty (sub)folder list with nothing to choose from.
"Edit" right now actually means "Choose" another folder instead. Why not just remove the folder and then add a new one (or ones)?
I have added a folder to monitor, under the option "automatically run autofiler on the contents of these folder", but AutoFiler will only monitor the root of these folders.
Eg: I added /boot/home/Downloads but would be nice have Autofiler also watch for subfolders of /boot/home/Downloads (eg /boot/home/Downloads/foo1, /boot/home/Downloads/foo2 and so on).
I was thinking to implement this feature by adding a checkbox called "also check subfolders" in the "AutoFiler" tab.
File dialogs used to select folders-only, i.e. "move/copy to folder", should only show folders, not even the files with application/octet-stream. Those are only acceptable when allowing files and folders and filtering for specific MIME typed files, like when looking for text/plain scripts or zip-archives.
For Type, Name, Size, and Location. See #32.
I had this idea since I have a lot of rules (some of them are also complex), and I'd like to import them in another Haiku's installation where Filer is present. Ok, I can made them again, but the ability to save/import a rule (some of them or all) would be definitely useful also because can save time; I also imagine the ability to share Filer's rules between users.
The "When"-condition part of a rule has a 'qualifying' pop-up menu (is/is not/startswith...). The setting of that menu isn't saved with the rule. Always returns to "is".
I'm building Filer time after time, to check the various improvements which are made.
Until last week everything worked fine. Now, since the commit 3e99669 when I attempt to launch the "Filer" executable, it doesn't start. If i launch it from a terminal window, all that i see is:
[baron@haikubox] # Filer
Abort
Abort
[baron@haikubox] #
Please notice that I'm running the executable which is builded with the debug flag (the one which is 6.02 MiB in size), but I don't see any debug message in the output.
I miss something?
From humdingerb:
I see a valid use case for providing a folder where archives are stored: Say you wait for a log file to grow to 5 MiB, then zip it up and put it in a folder. The user generally might want to just have single files archived as single-file-name.zip.
Here is a proposed specification:
If the user enters (manually or using drag&drop) the path name of an existing folder, the path name of the archive file passed to the zip command will be the path name of the folder + "/" + the name of the file processed by Filer.
Otherwise, the path name of the archive file passed to zip will be exactly as what the user enters.
Localize GUI so that Filer can be used in non-English locales.
The help section for the rules doesn't work
Is the second time that i notice this behaviour in few days:
Inside Filer, under the "Autofiler" TAB i added five folders to watch with Autofiler, then, suddenly and apparently randomly, I notice that Autofiler doesn't work anymore on certain folders: I noticed, in fact, that if I go in the Autofiler settings, some folder disappears from the list of folders to watch (I refer to the "Automatically run Filer on the contents of these folders:" list.) As I've said, sometime just one folder will disappear from the list and sometime two or more folders disappear.
Currently the user has to enter the file size in bytes. It'd be nice if the test could look for "k" or "K", "m" or "M" and "g" or "G" to use kilo, mega, giga bytes in its comparisson.
Until then, the "Size" test should be more specifically named "Size (in bytes)", I guess.
As there are + and - buttons in the "Edit rule" window, we could exchange the "Add..." and "Remove" buttons in the RuleTab for "-" and "+". That visually compacts the widgets as there's be only 3 rows of buttons beside the list.
Theoretically, it could even cut down the minimal window height, were it not for the problematic text view in the HelpTab...
I have a rule called "Store pictures in my Pictures folder"; so eg, when I take a screenshot named "Screenshot1.png" which is saved on the Desktop, this file will be automatically moved in my pics folder by Autofiler.
Then, If i take another different file called "Screenshot1.png" and I place it on my Desktop, AutoFiler will move this file inside the pics folder, overwriting the "Screenshot1.png" which was previously present inside the pics folder.
The previous version of Filer doesn't support locale and saves rules that assume the English locale. It'd be handy to automatically convert them for non-English Haiku so that the user wouldn't have to recreate existing, locale-insensitive rules for a different language.
The labels of tests/actions ("Move to..." etc.) use the strings saved into the rules.
Therefore, labels can't be renamed without the stored rules becoming outdated. This also prevents localizing Filer.
I built filer from the last commit (when the Layout management was introduced) and i discovered that some "edit rule" windows of some rules are narrow and cannot be horizontally resized. Eg this one, which I cannot resize horizontally:
I said "some rules" because not all suffer of the same issue: Seems that if in the "Do" section, the action name is shorter (like in the above case "Delete") than the "Remove" button I cannot resize the window.
Instead, ** seems** that if the action name is longer then "Remove" (eg "Move to folder") I am able to horizontally resize the edit rule window.
See:
After the user clicked on the Add... button, multiple selections should be allowed in the "Filer: Open" window.
The decimal mark should be disallowed for the "bytes" unit and localized to either '.' or ',' depending on the current locale.
Also, dragging & dropping a file should set the text to a value and unit that makes the most sense, e.g., 1.23 MiB instead of 1259.52 KiB or even worse, 1289748 bytes.
With the checkbox selected, the window will occasionally pop up again for the next conflict.
The cause: sometimes AutoFiler gets a B_BAD_PORT_ID error after Filer has successfully sent AutoFiler a reply.
The explanation in BeBook for B_BAD_PORT_ID: "the reply port was deleted while waiting for a reply"
It'd be nice to be able to re-arrange test views and action views via drag&drop. Currently you'll have to remove all the tests/actions one by one from the bottom up, and recreate them in the new order...
This is with the latest merged PR #46.
Open Filer, either add a new rule, or open an existing one. Press TAB twice to move the widget focus. And BANG!
Web+ won't let me attach the debug.report, therefore: http://sprunge.us/XMgS
Replace the Add/Remove buttons with one +/- button per row so that any row can be removed and a new row can be added below any row. (See issue #11.)
Also, moving the buttons to the right of the list view and arrange them vertically.
Maybe Zumi's funnel ?
http://zumi.xoom.it/myhaiku/miscellaneous/index.html
Certain actions could do with a file dialog to enter folder paths. It could be added in front of the text control that holds the path.
An 'Open' 'Directory' file dialog for:
A 'Save' File dialog for:
An 'Open' 'File' dialog for:
Whenever a folder is added, removed or edited on the AutoFiler tab, the list of monitored folders should be alphabetically sorted.
The window to add/edit a rule is still doing manual layouting of its widgets. Since the views with buttons and textcontrols are added/removed dynamically, re-writing it isn't trivial (for me, that is...).
Layout managment is needed for font-sensitivity and localization.
It looks like the logic for the "Size" tests are reversed, see https://github.com/HaikuArchives/Filer/blob/master/sources/RuleRunner.cpp#L612
The variable names "fromsize" and "tosize" aren't that great IMO...
#include <stdio.h>
#include <stdlib.h>
are missing at top.
command << tablename <<
"( .... "
" ....."
"....);" ;
ObjectList.h: missing named argument item in BinaryInsertUnique() templates
RuleEditWindow.cpp line 110 : BRect frame shadows the frame constructor argument.
It seems that Filer doesn't need to use SQLite.
Sometimes could be useful to disable some "rules", but actually is only possible by deleting them: in a case of a complex rule, we will have to reinsert again every part of a "formula" which composes the rule.
So would be nice to add a "enable/disable" option for every rule.
The RuleEditWindow should better use pop-up menus instead of the buttons.
If anyone wants to update translations with missing strings or add strings for more languages, please visit Polyglot. You can log in with your GitHub account.
Thanks!
If you click on the Add... button from the AutoFiler tab, you will see that the Open button in the "Filer: Open" window is disabled. It should be enabled so that you can add the home folder.
After a monitored folder in AutoFiler tab is edited, no more folders can be added. The Add button from now on will replace the edited entry regardless whether it is selected.
Conditions and actions could be aware of dropped files onto their path/file text control.
E.g., a folder/file dropped on the text control of
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.