Commit graph

1054 commits

Author SHA1 Message Date
Jack251970
f22b6449d4 Fix issue when querying history items in home page 2026-01-05 19:18:47 +08:00
Jeremy
11645fdc9a ensure history results ordered by ExecutedDateTime 2026-01-05 19:27:11 +11:00
Jack251970
5f992352ee Code cleanup 2026-01-05 13:48:58 +08:00
Jeremy
19fa107fea minor fixes and adjustments for code quality 2026-01-04 22:05:39 +11:00
Jeremy
ea7a2d271d mark PopulateHistoryFromLegacyHistory obsolete 2026-01-04 21:37:39 +11:00
Jeremy
55673cdb4b add method comments 2026-01-04 21:16:13 +11:00
Jeremy
4174b5e1e4 fix title when query history style used 2026-01-04 17:41:52 +11:00
Jeremy
024eeaf6bf changed LastOpenHistoryResult's Copy to DeepCopy to clarify intent 2026-01-02 22:30:09 +11:00
Jeremy
6d6003fd80 switch to using TrimmedQuery 2026-01-01 22:45:52 +11:00
Jeremy
f9df44a2cd rename to IcoPathAbsolute 2026-01-01 22:32:39 +11:00
Jeremy
7c670de7c2 fix history result highlight and scroll when history mode activated 2026-01-01 18:23:12 +11:00
Jeremy
2e8bb357fc Merge branch 'dev' into last_history_show_result_icon 2026-01-01 17:01:17 +11:00
Jeremy
8d7fa1d397 revert QueryHistoryItems property 2026-01-01 15:14:05 +11:00
Jeremy
6b6a9a9935 simplify GetHistoryItems 2026-01-01 14:30:28 +11:00
VictoriousRaptor
8e80c3bde6
Add option to show taskbar when Flow Launcher is opend (#4177)
* Add option to show taskbar when Flow Launcher is invoked

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Fix: Use ABM_ACTIVATE instead of ABM_SETSTATE for temporary taskbar showing

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Remove unnecessary unsafe keyword from ShowTaskbar method

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Fix missing closing braces in Win32Helper.cs

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Change wording from 'invoked' to 'opened' in localization strings

Co-authored-by: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com>

* Show/hide tasking when showing/hiding Flow

* Remove unused APPBARDATA

* Guard HideTaskbar() with state so show/hide stay balanced

* Improve taskbar visibility management in MainViewModel

Moved taskbar show logic to after keyboard layout switch in Show().Ensures consistent taskbar state when invoking or hiding the app.

* Clean code

* Clean code

* Remove blank line

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jack Ye <jack1160210343@gmail.com>
Co-authored-by: Jack251970 <1160210343@qq.com>
2025-12-31 18:05:53 +08:00
Jeremy
de0d022268 rename last opened class; use inheritance; initialise at startup 2025-12-31 12:14:07 +11:00
Jeremy
d78d313372 update to use IcoAbsoluteLocalPath 2025-12-26 21:37:30 +11:00
Jack251970
a07af87cb1 Update name 2025-12-19 15:56:58 +08:00
Heck-R
e01869afda Fix: Result.Preview.Description is not ignored anymore 2025-12-17 23:37:43 +01:00
Jack Ye
48f67b1886
Improve and fix query result update logic issue & provide access to exact query typed by user (#3502) 2025-11-26 21:15:12 +11:00
Jeremy
0f269455b1 remove duplicate history item sort call 2025-10-21 22:18:29 +11:00
Jeremy
25aa5bf2af show history result sorted descending by execution time 2025-10-21 21:54:38 +11:00
Jeremy
92551c58a5 show distinct records when history style is last opened 2025-10-21 21:53:32 +11:00
Jeremy
10d3ba268d update history result icon display logic & remove badge icon logic 2025-10-19 20:22:03 +11:00
Jeremy
7883e7a0a9 add result IcoPath & Glyph + handling show badge switching 2025-10-18 10:35:23 +11:00
Jack Ye
e2abc1b265
Merge branch 'dev' into plugin_initialization 2025-10-15 13:06:14 +08:00
Jack251970
b13c29ab91 Record user selection after successful execution 2025-10-15 12:40:00 +08:00
Jack Ye
83cab764a1
Fix typos
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 12:30:59 +08:00
Jack251970
629c2eb4c6 Record user-selected results for ranking
Moved `_userSelectedRecord.Add(result)` outside the `if (queryResultsSelected)` block to ensure all user-selected results are recorded, regardless of their source (query results, context menu, or history). Added a comment to clarify that only query results are added to history.
2025-10-15 12:26:21 +08:00
Jack251970
1298b76b77 Track user-selected results for ranking purposes
Added logic to record user-selected results in `_userSelectedRecord`
before executing both synchronous and asynchronous actions. This
enables tracking of user interactions for result ranking or analytics.
Comments were added to clarify the purpose of the new logic.
2025-10-15 12:23:52 +08:00
Jack251970
4b6ee4ea98 Improve code quality 2025-10-15 12:23:00 +08:00
01Dri
10d353defe Returning actions 2025-10-15 00:34:38 -03:00
01Dri
9ca7c8431b Revert modifications and returning actions 2025-10-15 00:34:16 -03:00
01Dri
9f652c33b4 History items filtered based on HistoryStyle. 2025-10-14 22:51:09 -03:00
Jack251970
787ccad384 Refactor history handling with async ResultHelper
Replaced `HistoryHelper` with a new `ResultHelper` class to handle plugin result population asynchronously, improving performance and maintainability. Removed `ExecuteAction` and `QueryAction` properties from `LastOpenedHistoryItem` and updated `QueryHistory` and `MainViewModel` to use `LastOpenedHistoryItems` directly.

Refactored history result generation to support `AsyncAction` in `Result` objects, replacing synchronous plugin queries. Simplified legacy history migration and enhanced support for `HistoryStyle`. Improved error handling, code readability, and UI-related logic for history navigation.
2025-10-14 21:29:22 +08:00
Jack251970
693bae7631 Optimize query result selection handling
Refactored `QueryResultsSelected()` usage by introducing a local
variable `queryResultsSelected` to avoid redundant method calls,
improving efficiency and readability. Added a comment to clarify
the purpose of the variable. Updated conditional logic to use
the new variable instead of directly invoking the method.
2025-10-14 20:47:57 +08:00
Jack251970
f6d5a27e0b Refactor and enhance history management system
Refactored the `History` class to separate query and last opened history into distinct models, introducing `LastOpenedHistoryItem` and deprecating `HistoryItem`. Added a `HistoryStyle` enum and property to allow users to toggle between "Query History" and "Last Opened History." Simplified history display logic and updated the UI with a dropdown for history style selection.

Improved history item display with dynamic action population and relative timestamps. Enhanced performance by optimizing history storage with a maximum limit and streamlined logic for adding/retrieving items. Ensured backward compatibility by migrating legacy history data to the new format.

Updated localization strings, removed deprecated properties, and cleaned up redundant code. Fixed bugs related to inconsistent history actions and edge cases with legacy data.
2025-10-14 20:28:39 +08:00
Jack251970
7fa78f0304 Code cleanup 2025-10-13 15:30:38 +08:00
01Dri
690d33ece3 up 2025-10-11 03:43:06 -03:00
01Dri
d7579cce9e fix erros 2025-10-11 03:23:14 -03:00
01Dri
e468c48da4 feat: fix erros 2025-10-11 03:15:10 -03:00
01Dri
9e1b8c1a72 feat: Populate new history system with legacy query history 2025-10-11 02:43:27 -03:00
01Dri
8e8e9d35ac code quality 2025-10-10 00:08:27 -03:00
01Dri
545c4208d9 code quality 2025-10-10 00:07:24 -03:00
01Dri
156cb3055c merge 2025-10-08 22:06:39 -03:00
01Dri
6aa35d592e merge dev 2025-10-08 21:38:10 -03:00
01Dri
b290055e83 feat: up 2025-10-08 21:25:13 -03:00
01Dri
c051c5cd50 feat: new history logic in MainViewModel 2025-10-08 21:15:10 -03:00
01Dri
9e182a2e47 feat: base history model in MainView and refactoring code to replace action between query result or last opened 2025-10-07 00:35:34 -03:00
Jack Ye
a2d12eb225
Merge branch 'dev' into plugin_initialization 2025-10-05 19:25:01 +08:00