Apps Icon displays folders in filer window.
GavinWraith (26) 1563 posts |
A very small didactic point about the RiscLua program. Note the added comment here: Lots of nested conditionals can be slow. It is best to avoid them where possible if one can use a jumptable instead. The next line
ensures that filetypes not occurring in the |
GavinWraith (26) 1563 posts |
I quite understand that memory was expensive in the old days so that every bit had to pull its weight. But later filing systems (elsewhere) had all kinds of bells and whistles that could be used for making searches quicker: user-defined attributes, hidden files, linkages, etc. What is the consensus on hidden files? Useful idea or unnecessary complication? |
David J. Ruck (33) 1635 posts |
RISC OS already has hidden files in a way, everything inside an application is usually hidden from the user. |
Andrew McCarthy (3688) 605 posts |
That also includes !Boot. I’m not opposed to the concept. It depends on the purpose; Linux uses it to conceal configuration information for applications (amongst other things); we have !Boot, and the Apps folder concept for those scenarios. How else could it be utilised? |
Paolo Fabio Zaino (28) 1882 posts |
I am totally ok with it, as long as it’s standardised. One of the Desktop extensions I am working on in my usual little spare time, is called !PowerFiler and basically it’s a Filer replacement that uses “Unix Like” hidden files (files starting with a special character, right now I am just using a “+” symbol for debugging purposes). The hidden files are used to store:
Obviously, the filer replacement also will use tabs and tree-view as well as supporting drag and drop of files as the regular filer does and, if a file is dropped on top of a directory, it will be copied inside that directory. As always, at some point, also !PowerFiler will be available for free and open sourced, no one is requested to use it or anything, so please no comments like “if one wants a Windows PC he/she can buy a Windows PC” thx. The reason I am mentioning this is also in answer to Andrew’s comment “how else it could be used”. The thing that would be nice to have from ROOL/ROD, would be to declare a character as “special” for hidden files (or at least reserved), so that I do not go on my own way and then someone may have issues because they decided to call their file with that (non standardised) special character in front. One thing I have tried experimenting with was to store all the info in a special DB used by one of the !PowerFiler prototypes, but it ended up to be convoluted and obviously one loses a directory metadata when the directory is copied on a different RISC OS system, so I abandoned this idea pretty quickly. |
Richard Coleman (3190) 54 posts |
Bit 6 of the file attribute is/was allocated to Filer+ (Now FilerPro). Why not just use that attribute bit instead of a special character? |
Paolo Fabio Zaino (28) 1882 posts |
Great point Richard! I completely forgot about Filer+/FilerPro, thanks a lot :) |
Steve Drain (222) 1620 posts |
FilerPro has led to Dave Thomas’s PhotoFiler, which is up to date and well worth a look. |
GavinWraith (26) 1563 posts |
For obvious reasons I have always used a backslash (/) prefix for this.
I don’t recommend this unless the directory is automatically opened to signify success. There is a fundamental principle that every action in a GUI should give a visual confirmation of success or failure. This is also why drag & drop is superior to cut & paste. Cut & paste is fine if you are used to controlling the computer with the keyboard, but that is not what RISC OS is about. Not for me, anyway. |
Paolo Fabio Zaino (28) 1882 posts |
I think I can have the directory opened, it’s just a bit more code to add when I’ll have time, the issue will be having a solid approach to understand when the user has “stopped by that specific icon” which means I’ll need to add a time consideration (because obviously there won’t be any specific action except the mouse pointer, in a drag/drop state stopped by a certain icon for xy ns, to identify I have to open the corresponded directory window if that icon is indeed a directory icon). |
Steve Pampling (1551) 8170 posts |
Indeed, another source of ideas/concepts1 to incorporate into something I feel sure Paolo intends to submit for merging into the base OS 1 I’m pretty sure Nemo wouldn’t mind the idea behind ColourFiler being borrowed either. Obviously the code is a different thing, but then ask nice and that might be available. |
Paolo Fabio Zaino (28) 1882 posts |
Steve, all my work is or will be released as Open Source and on github.com only, with licenses compatible with RISC OS sources and ROOL policies and directions. But, if any of my work will be incorporated in to the main OS is solely ROOL/ROD decision and on their own will. The same for everyone else that intend to use and/or incorporate my code in their own projects. My changes to my RISC OS are mostly for myself to improve my own experience on it (the way I’d like to use it). Obviously, I am sharing the process and the sources with the community in case my work may be useful to others that are interested in it and may or may not have the technical skills to do it, but that would like to share their ideas on how to improve it and make it a bit more modern. I am not part or collaborating on any effort that is directly used by ROOL/ROD or any other company. All my code is solely stored and shared on the RISC OS Open Source community on github.com. Whoever wants to use it is free to use it as long as they respect the terms of use and distribution licenses. |
Steve Pampling (1551) 8170 posts |
Apologies. Assumptions on my part, Paolo, and we all know the problem with assuming. As you say, with the licence on the code, ROOL are free to incorporate all or part just as they could with any other block of similarly licenced code. |
Paolo Fabio Zaino (28) 1882 posts |
no problem at all Steve, just wanted to clarify my position, all good sir! :) |
Matthew Phillips (473) 721 posts |
I totally agree. When people at work complain that a file or a whole folder has vanished from the shared drive, and request it to be restored from backup it is almost always because someone else started dragging it, realised they had got the wrong one, and then inadvertently let go when it happened to be over another folder. |
Stuart Swales (8827) 1357 posts |
You talking about my dad? Every time I’d visit I’d have to rationalise the file system structure as ‘files had disappeared’. |
Steve Pampling (1551) 8170 posts |
I can’t recall, has anyone been daft enough to replicate the Windows model of “the desktop is just another folder in the file system”? 1 I always considered the labelling of the RO4.xx stream to be wrong on the multi-users setup. “Disabled”?? sigh. “All_User” or “Generic” please. “Disabled” conjures up visions of a location no can or does use. |
David J. Ruck (33) 1635 posts |
I did say that on the very first day I saw it, and it created an enormous amount of support enquires from people who didn’t think files used by the active boot sequence would be inside Disabled, or worse still deleted the contents thinking it wasn’t needed. |
Rick Murray (539) 13840 posts |
Well, yes, that’s exactly what it implies. Stuff that might have been required but is not utilised in the current configuration (and by extension, could be removed if not necessary). Like Windows allows one to disable a driver. If what I’m reading here is correct, that “Disabled” is a synonym for “Everybody”, then someone needs their head smacked repeatedly with the nearest dictionary… Now, I don’t claim to be perfect with words, but that one is an error on par with saying “click the green icon” and then offering up two orange ones. |
Jeff Doggett (257) 234 posts |
That’s a forward slash. |
Stuart Swales (8827) 1357 posts |
A leading forward slash character is already used on RISC OS by tools like svn in lieu of a dot prefix, i.e. for hidden files, so we do have a precedent at least. But what constitutes hidden? Hidden from the Filer, or from OS_GBPB without magic incantations? |
GavinWraith (26) 1563 posts |
I have some apps which do things to all the files in a directory except those whose names begin with /. !Infuse is an example. It is basically the mailmerge concept. Keep some things as variables (in this case strings beginning and ending with $) and then evaluate the variables with a content file specifying what they mean. |
Steve Fryatt (216) 2105 posts |
Whether we go down the route of an attribute or a filename prefix1, it should be the OS (Fileswitch?) which does the interpreting and apps should just read the info back from the returned lists of files. Just as we don’t identify apps by looking to see if the first character of the name is “!” (or not unless it really can’t be avoided), I don’t think software should be parsing the “/” and concluding “hidden”. SWIs like OS_GBPB should return everything (at least by default), and leave it up to the caller to filter that down. Thus the filer can have a “show hidden files” option, search tools can choose whether or not to find hidden files, and so on. 1 How do you do a hidden application, though? |
Steve Fryatt (216) 2105 posts |
This sounds remarkably close to what Locate already does if you send it a search request over the FilerAction Plugin protocol and it has “Open search window” off in its choices… The only thing missing is the ability to set the “Applications” constraint in the search, but it may be possible to use the flag word in the user message to extend the information passed across. |
Bernard Boase (169) 208 posts |
@Steve |