-
-
Notifications
You must be signed in to change notification settings - Fork 448
Last opened history mode show result icon instead #4057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
🥷 Code experts: Jack251970 Jack251970 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
@Jack251970 @01Dri thoughts on showing the last opened with the actual result icon? Should it just show the icon instead of badge icon as well? |
Also, there is a bug in the comparison logic when saving history results because as seen in the screenshot 'Save Settings' result shouldn't be duplicated. |
It’s not really a bug. The equality comparison also uses the query, so in scenarios where I type “Ter” and open Terminal, and then type “Term” and open Terminal again, I end up with two history items “Ter” and “Term” both referring to the same application (Terminal), which causes duplicate results. In Query style, that makes sense because the two queries are different.
CompositeKey (This name is just an example; it could be something else)
|
I think the icon with the badge is more intuitive for the user, as it indicates that the item is a history entry. |
As 01Dri said, it is not a bug. Duplicated items will occur if you click A for many times. |
SubTitle = Localize.lastExecuteTime(h.ExecutedDateTime), | ||
IcoPath = Constant.HistoryIcon, | ||
IcoPath = Settings.ShowBadges ? h.IcoPath : Constant.HistoryIcon, | ||
BadgeIcoPath = Settings.ShowBadges ? Constant.HistoryIcon : h.IcoPath, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check if h.IcoPath
exists to prevent possible blank icon
PluginID = result.PluginID, | ||
Query = result.OriginQuery.RawQuery, | ||
RecordKey = result.RecordKey, | ||
IcoPath = result.IcoPath, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result.IcoPath
should be absolute path which depends on Flow installed place, plugin version, Flow portable mode, etc. I think here we should use the relative path:
If this icon is inside the directory of the preinstalled plugins, let us store a relative path based on preinstalled plugin directory.
Else if the icon is inside the directory of the Flow data directory, let us store a relative path based on Flow data directory.
Else let us just use the absolute path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Showing icons enhance users' experience and I agree with this change. But there is still something we need to resolve
What about just use the actual results icons, no badge?
I think we should apply filtering of duplicates when last opened style is selected. What do you think? |
@jjw24 I think we can do the filtering here as long as we keep the history in the order of execute time so that we can utilize the history list more effectively. |
@Jack251970 @jjw24 Sorry for the question, I’m new to the open source community. My question is: am I allowed to make the requested changes, or is this PR only for jjw? Thanks! |
Follow on with #4042
Before

After
