Summary: | Dolphin does not trim leading/trailing spaces from new tags | ||
---|---|---|---|
Product: | [Frameworks and Libraries] baloo-widgets | Reporter: | tagwerk19 |
Component: | general | Assignee: | Stefan BrĂ¼ns <stefan.bruens> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | goodaqua, kdedev, kfm-devel, nate, postix |
Priority: | NOR | ||
Version: | 24.08.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=437501 https://bugs.kde.org/show_bug.cgi?id=488588 |
||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Comparision of Assign Tags, Information Panel and Tag Folder views |
Description
tagwerk19
2021-03-05 09:06:40 UTC
Created attachment 138664 [details]
Comparision of Assign Tags, Information Panel and Tag Folder views
There's a similar behaviour with leading or trailing slashes on tags...
STEPS TO REPRODUCE
Make sure Baloo is running in order to see the tag folders under "Places"
Create a testfile and create, with "Assign Tags", the tags "/tag"
and "tag/". Confirm the tags have been written with getfattr:
getfattr -d testfile.txt
# file: testfile.txt
user.xdg.tags="/tag,tag/"
OBSERVED RESULTS
Go back to the file with "Assign Tags" and see what it shows
* /tag
tag
* tag/
Compare the info to that displayed in the Information Panel and listed
under "Places" (see attachment...)
EXPECTED RESULTS
"Assign Tags", the Information Panel and the Tag Folders under
"Places" should be consistent.
Maybe "Assign Tags" should drop leading and trailing slashes as
typed in, should cope with existing leading/trailing slashes when
it meets them.
ADDITIONAL INFORMATION
The information panel doesn't get it quite right either...
Hi tagwerk19. First of all, thank you for your contributions and your help here. I reproduced the problem you described in first message. Yes, these spaces should be trimmed. There is a trouble with second message, I can't reproduce this problem. In my case of: # file: Issue.md user.xdg.tags="/tag,tag/" It only shows "/tag" and "tag/" in "Assign Tags" of Context menu. (In reply to reports_go_brrr from comment #2) > First of all, thank you for your contributions and your help here. No problem :-) I'd say I don't manage to keep track of all the various bug reports, so thank you for checking and confirming. > There is a trouble with second message, I can't reproduce this problem. > In my case of: > # file: Issue.md > user.xdg.tags="/tag,tag/" > > It only shows "/tag" and "tag/" in "Assign Tags" of Context menu. For me, with a quick test on Fedora 40, I still get "/tag", "tag" and "tag/" appearing in Assign Tags. Let me try elsewhere.... My gut feeling is that the slash should be considered a separator, it's important in parent/tag but leding or trailing tags should be ignored when listed or input. There would be a case for treating leading and trailing tags as important in searches - you might want to search for "/tag" or "tag/" and find hierarchical tags, where "/tag" is a child and "tag/" is a parent. To tagwerk19, The usage of "/tag" or "tag/" for finding parents of tags and it's sub-tags is indeed a good solution for slashes. But I think in that case slashes need to be stripped away during tags creation completely, to avoid problems. So I am kinda skeptical about it. |