Replies: 12 comments 10 replies
-
The current behaviour is warn and stop user from assigning duplicate action keywords. Not sure how it behaves with downloaded plugin having duplicate action keywords, I think it might throw plugin loading error? But current design is to not allow duplicates. |
Beta Was this translation helpful? Give feedback.
-
That's true.
Not sure about that. I tried to modify the plugin.json file from plugin directory, and restart flow, but nothing happens. However, nothing in the code shows potential about plugin action keywords conflict will throw an error on loading, even though we do prevent users from assigning duplicate action keywords. Maybe we should add the check on it? |
Beta Was this translation helpful? Give feedback.
-
What would actually happen if action keywords are duplicated in two plugins, you get two sets of results right, one from each plugin, but other than that any potential problems? |
Beta Was this translation helpful? Give feedback.
-
Well, I think only one of the sets of results will be displayed, because the later one registering the action keyword will overwrite the earlier one. |
Beta Was this translation helpful? Give feedback.
-
Oh ok, I think the behaviour then would be to load and disable the external plugin and output a message to let user know why it is disabled? Or do we just want to automatically update it to a new keyword? |
Beta Was this translation helpful? Give feedback.
-
Maybe we can allow duplicate key, so that we put the control to users about whether they want to search those two plugin with the same duplicate key.
That seems also good, but we need to notify user when doing that. |
Beta Was this translation helpful? Give feedback.
-
I am ok with allowing duplicate keys as long as there are no side effects |
Beta Was this translation helpful? Give feedback.
-
@taooceros why is this moved to discussion as well, it's got pr linked |
Beta Was this translation helpful? Give feedback.
-
Hi, Ueli user here, I'm planning on moving over to Flow but not being able to use the same action keyword for many of my web searches is making it difficult, I use the same key for similar searches (like T for different torrent search engines) because it's easier to remember this way, Ueli also let's you select the order of priority when there are more than 1 plugin with the same action keyword (I believe this is already implemented), so in my opinion, it should be allowed. |
Beta Was this translation helpful? Give feedback.
-
thoughts @Flow-Launcher/team? i think dup action keyword is ok to go ahead. |
Beta Was this translation helpful? Give feedback.
-
Hey, is there any news about this? |
Beta Was this translation helpful? Give feedback.
-
@taooceros We need a work progress report here. You're working on this, right? |
Beta Was this translation helpful? Give feedback.
-
Flow.Launcher/Flow.Launcher.Core/Plugin/PluginManager.cs
Lines 122 to 126 in 69a5f29
Based on this code, it seems that if action keyword conflict, only the last one will be kept.
Beta Was this translation helpful? Give feedback.
All reactions