-
Notifications
You must be signed in to change notification settings - Fork 0
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
Topmost Record Becomes Invalid When Tab Number Changes #3
Comments
I see, so every time the subtitle changes, Flow believes it is a brand new workspace, and the previous workspace -- the one you pinned as topmost -- has disappeared.
I want the total # of tabs to appear visually in Flow's list. Is there away to preserve the current visual presentation at the same time as fixing your issue? |
I believe this is the relevant docs page. Can you suggest a way to tell Flow Launcher to index the topmostrecord using a different key, avoiding subtitle? That way, we preserve the current subtitle while fixing your issue. |
Can TitleTooltip help? If you want to keep displaying the subtitle, the only way is to create a PR to FL for this feature. |
@cspotcode Another way is to implement the pinning feature. You need to implement the context menu interface and save the pinned records in the local folder like plugin folder. Every time you provide scores of records, plugin need to give pinned records a large value like 1000000. (This can help users have many topmost records and will solve the problem that FL can only has one topmost record for one specific search.) If you think this is too complex, just wait for my PR to FL for this feature, which let FL ignore subtitle when checking topmost records. |
Sounds good, this does sound like Flow's responsibility, and should be plugin-agnostic. Please link your FL PR on this ticket, it will be helpful to follow along. |
Please see Flow-Launcher/Flow.Launcher#3178. Here are some codes for your reference if this PR can be merged:
|
Would it be simpler for my plugin to pass a Your code example shows a function written in C#. How would JSON-RPC plugins use it? |
FL uses title and subtitle for identifying one record. So recordKey is not a good idea and it can make the old record data unable to work. My solution is to let plugin filter the title and subtitle so that old version is compatible.
I have little experience of this. Sorry I cannot help. |
Now I create new PR for |
When I set the record of one specific workspace to the topmost, I find that if I change the tab number of this workspace, this record will not be the topmost record anymore.
After checking the
TopmostRecord.json
file of theFL
, I find the workspace record seems to record the tab number in the subtitle, which causes this issue.In this screenshot,
ew
is my keyword of your plugin. AndLatex Formula
workspace is not the topmost record because the tab number changes to 5.A possible solution is to use other property rather than subtitle to record the information of the current subtitle.
The text was updated successfully, but these errors were encountered: