Skip to content
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

Vague suggestion: Use the Preview panel #30

Open
tdnzr opened this issue May 23, 2023 · 2 comments
Open

Vague suggestion: Use the Preview panel #30

tdnzr opened this issue May 23, 2023 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@tdnzr
Copy link

tdnzr commented May 23, 2023

FlowLauncher has a Preview panel which can be toggled via F1 and then resized manually. I'm not sure if plugin developers have control over what's displayed there. If they do, then maybe the TogglTrack plugin could make use of it for some purpose.

For example:

  • When I start a project via "tgl start Exercise", then display some previous statistics about the Exercise project.
  • When I continue a previous time entry, then display some statistics about this time entry, e.g. how often I've done this time entry before.
  • When I open the reports, maybe some of the information can be displayed better in the bigger preview panel.

But these are just suggestions. The main point is that there might be an extra UI element that the plugin could take advantage of.

@tdnzr tdnzr changed the title Vague suggestion: Use of the Preview panel Vague suggestion: Use the Preview panel May 23, 2023
@JamesNZL JamesNZL self-assigned this May 26, 2023
@JamesNZL JamesNZL added the feature New feature or request label May 26, 2023
@JamesNZL
Copy link
Owner

Haven't actually thought about this—this is a great suggestion.

Will try get around to this once I have some more time in a couple weeks.

@JamesNZL
Copy link
Owner

JamesNZL commented Jun 24, 2023

(notes to myself)

https://github.com/Flow-Launcher/Flow.Launcher/blob/e1c63af06184d3993128da09373307566265e425/Flow.Launcher.Plugin/Result.cs#L238C1-L238C1

Also,

new Result
{
	Title = $"Display {((this._state.ReportsShowDetailed) ? "summary" : "detailed")} report",
	ProgressBar = 100,
	ProgressBarColor = "#ffffff",
	IcoPath = "reports.png",
	AutoCompleteText = $"{query.ActionKeyword} {query.Search} ",
	Score = int.MaxValue - 1000,
	Action = c =>
	{
		this._state.ReportsShowDetailed = !this._state.ReportsShowDetailed;
		this._context.API.ChangeQuery($"{query.ActionKeyword} {query.Search} ", true);
		return false;
	},
}

gives this 👀
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants