Opened 12 years ago

Closed 10 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:
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 by axeld, 12 years ago

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.

in reply to:  1 comment:2 by Giova84, 12 years ago

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 by Giova84, 12 years ago

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

in reply to:  1 comment:4 by Giova84, 12 years ago

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, doesen'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".

Version 0, edited 12 years ago by Giova84 (next)

comment:5 by axeld, 12 years ago

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.

in reply to:  5 comment:6 by anevilyak, 12 years ago

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 by leavengood, 12 years ago

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 by pulkomandy, 10 years ago

Milestone: R1Unscheduled

comment:9 by waddlesplash, 10 years ago

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 by pulkomandy, 10 years ago

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 by waddlesplash, 10 years ago

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 by pulkomandy, 10 years ago

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 by waddlesplash, 10 years ago

Owner: changed from axeld to waddlesplash
Status: newassigned

comment:14 by waddlesplash, 10 years ago

Resolution: fixed
Status: assignedclosed

Implemented in hrev48957.

Note: See TracTickets for help on using tickets.