darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.13k stars 1.11k forks source link

Tab completion for tags #13063

Open IjhUDWzf opened 1 year ago

IjhUDWzf commented 1 year ago

Imagine having created a tag like places|England|London then you may want to create nested tags like:

places|England|London|Buckingham Palace
places|England|London|Tower
places|England|London|Westminster Abbey

I know of any convenient way to achieve this. Might be I am missing something...

Nevertheless, the by far most convenient way for me would be to be able to use tab completion in the text box in the tagging module. By this I mean that I would like to start typing places and when places is the first suggestion in the list/tree (e.g. after pla) hit Tab and have the text box completed to places (or places| if it does not exist as standalone node). Then start typing Eng hit Tab and have places|England and so on.

dterrahe commented 1 year ago

There is an option in the right-click menu of the dictionary to copy the selected item to the entry field. However this is not accessible using the keyboard. If that were made available, for example via ctrl+enter, you could type "London", use arrows to select which tag you want to extend, press ctrl+enter and continue typing in the entry field.

But it might be even better to be able to open the full submenu from the keyboard? Then you'd be able to pick "create tag..." and use the dialog to extend the tag.

Edit: for some reason I was assuming you wanted to be able to do all this from keyboard only. If happy to use mouse; use method described below.

gi-man commented 1 year ago

I know of any convenient way to achieve this. Might be I am missing something...

Go to the tag dictionary, Find the tag places, England, London. Right click on it and select Create Tag... Type Tower (or whatever you want), Leave the box checked that says: add to:'places|England|London'

IjhUDWzf commented 1 year ago

Thank you both for the tip I was not aware of that!

However, it does not seem to me as a really convenient way to do this. @dterrahe your assumption was mostly right. With a large collection of tags one would probably start by writing something (like London) then switch to the mouse to use the context menu only to write again the name of the new node. Not to mention that even finding the parent tag seems easier to me with tab completion. Using one and then the other (keyboard/mouse) seems ok to me, but if one has to switch between them multiple times it should be considered if there is a better way to do it.

Nevertheless, IMHO, it just seems very natural to have some kind of this functionality. The tags are similar to folder/file structure and for a good reason tab completion is well established for this. An alternative way would be to consider the displayed list of tags as a suggestion box and be able to change the entered text to the first/selected entry by hitting Tab, similarly to search engines.

github-actions[bot] commented 1 year ago

This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

mfg92 commented 1 year ago

I would like to have this feature too

github-actions[bot] commented 1 year ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] commented 3 months ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.