Skip to content

Conversation

HelloWorld017
Copy link

Summary

Adds new configuration option to sort the entries to the applications plugin.

// Can be ActionsFirst (default), ApplicationsFirst, NoPriority
entry_priority: Some(ApplicationsFirst)

Motivation

#257

Screenshot

With ActionsFirst:
image

With ApplicationsFirst:
image

Copy link
Collaborator

@Kirottu Kirottu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpicks, but otherwise looks alright as a feature.

max_entries: 5,
preprocess_exec_script: None,
terminal: None,
entry_priority: None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the default behavior resolves to ActionsFirst, it should be reflected here. That should also be returned by a separate function Config::default_entry_priority or by a sufficient implementation of Default on EntryPriority.

@HelloWorld017 HelloWorld017 force-pushed the feature/add-entry-priority branch from 460a293 to 3494622 Compare September 26, 2025 17:21
@Kirottu
Copy link
Collaborator

Kirottu commented Sep 28, 2025

Alright the code looks good now, but at least in my testing the setting didn't actually have any effect (with both the Zen browser and Firefox the main entry appeared first regardless of the priority setting). I think the weights need to be adjusted so that it works like expected.

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

Successfully merging this pull request may close these issues.

2 participants