Opened 6 years ago

Closed 4 years ago

#9200 closed enhancement (fixed)

Hide files which start with a dot

Reported by: Giova84 Owned by: waddlesplash
Priority: normal Milestone: Unscheduled
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Would be nice add a preference/filter in Tracker, to hide files which start with a dot. In BeOS that was possible, using Tracker.NewFS: http://bebits.com/app/1567

From that page: "* StaticFiltering (always filtering out all files starting with a "." for example (POSIX))"

This option could be also extended, creating personal rules.

Change History (14)

comment:1 Changed 6 years ago by axeld

This has already been implemented ages ago; it is just not exposed in the settings window. To enable the feature, you have to manually change the /boot/home/config/settings/Tracker/TrackerSettings, and set HideDotFiles to true. I currently don't remember whether or not Tracker is allowed to run when you do changes to this file.

I'm not sure if this feature really needs a setting in the UI.

comment:2 in reply to:  1 Changed 6 years ago by Giova84

Replying to axeld:

I'm not sure if this feature really needs a setting in the UI.

Hi Axel, if i remember correctly this setting was available in the GUI of Tracker.NewFS; but in anyway in my opinion this option should be present in the UI, since (for example) in some file commanders is available under options>settings. So, this undocumented option, will be clear to any user. And consider the fact that sometime this option could be enabled/disabled on the fly (eg to browse a ".config" folder to change some setting file and then, hide it again). I hope i was clear in my explaining :-)

Best regards.

comment:3 Changed 6 years ago by Giova84

And again: this option about static filtering, could be enhanced, to filter (exclude) any word in files and folders!

comment:4 in reply to:  1 Changed 6 years ago by Giova84

Replying to axeld:

This has already been implemented ages ago; it is just not exposed in the settings window. To enable the feature, you have to manually change the /boot/home/config/settings/Tracker/TrackerSettings, and set HideDotFiles to true.

By default this entry is set to "off", if i set to "on" like all other voices in this setting file, doesn't work: if i restart Haiku or only the Tracker and if i reopen TrackerSettings file, i will find again the HideDotFiles set to "off".

Last edited 6 years ago by Giova84 (previous) (diff)

comment:5 Changed 6 years ago by axeld

You are the first to complain in ten years, so it's not a feature everyone missed.

Anyway. as I said before: I don't know if Tracker is allowed to run when you change the file. Apparently, it is not, ie. it will save the settings on exit. So you have to quit Tracker, then change the file, and launch Tracker again afterwards.

comment:6 in reply to:  5 Changed 6 years ago by anevilyak

Replying to axeld:

Anyway. as I said before: I don't know if Tracker is allowed to run when you change the file. Apparently, it is not, ie. it will save the settings on exit. So you have to quit Tracker, then change the file, and launch Tracker again afterwards.

For reference, this is correct. For that matter, Quit is actually the only time they're saved, ergo if settings are changed on the fly and Tracker crashes, those changes are lost. Needs to be revisited/refactored at some point.

comment:7 Changed 6 years ago by leavengood

FWIW this sounds like something which would be nice to be expanded and made more generic. It would at least make sense to expose this option in the settings window.

Also it might be a bit better to flush settings to disk when they are changed, not just at quit. And maybe node monitor the settings file for manual changes, though personally I think hiding settings in a file isn't really the "Haiku way".

comment:8 Changed 4 years ago by pulkomandy

Milestone: R1Unscheduled

comment:9 Changed 4 years ago by waddlesplash

Component: Applications/TrackerKits/libtracker.so
Keywords: Hide files which start with a dot advanced filtering removed
Owner: changed from axeld to nobody
Platform: x86All
Version: R1/alpha4.1R1/Development

comment:10 Changed 4 years ago by pulkomandy

Component: Kits/libtracker.soApplications/Tracker
Owner: changed from nobody to axeld

So you got ticket edit permissions again? This is indeed a problem of Tracker (the app) missing the entry in the settings window to do it, the needed code in libtracker is already there. Wether or not we actually want it implemented is the open question here.

comment:11 Changed 4 years ago by waddlesplash

I have the ability to edit tickets it appears, but I didn't ask anyone for them. (I can't reassign them though).

Also, this affects libtracker too -- filepicker dialogs show entries that begin with "."

comment:12 Changed 4 years ago by pulkomandy

Please read the comments again. There IS support for hiding dotfiles, and there IS an option in the settings file. The only missing part is making the option visible in tracker prefs so you don't have to edit that file directly.

comment:13 Changed 4 years ago by waddlesplash

Owner: changed from axeld to waddlesplash
Status: newassigned

comment:14 Changed 4 years ago by waddlesplash

Resolution: fixed
Status: assignedclosed

Implemented in hrev48957.

Note: See TracTickets for help on using tickets.