Folders without txt files are hidden
Bug #1097742 reported by
p.samim
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Zim 0.58 portable on Windows 7
Hi,
Folders that do not contain txt files or do not have zim text files associated with them, are kind of hidden and do not show up in the index. I do not know if it is a bug or not, but it would be a nice feature for Zim to show all folders (at least optional), so Zim will act like a file explorer a little more.
Thanks
Changed in zim: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
Currently these "zim-less" folders appear in the index with an italic font but disapper on leaving the focus.
As I would also like to have this "feature" I investigated the code and found that _cleanup() in index.py is responsible for removing these folders:
- if not (path.hascontent or path.haschildren) \ list_links( path, direction= LINK_DIR_ BACKWARD) == 0: path.parent) # recurs
- and self.n_
- self._delete(path)
- self._cleanup(
I deleted these lines and it is working for me now but I do not know tje side effects provoked by these changes.