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

Add Run utility #7

Open
J-Marte opened this issue Jul 3, 2024 · 2 comments
Open

Add Run utility #7

J-Marte opened this issue Jul 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@J-Marte
Copy link

J-Marte commented Jul 3, 2024

Hello,

I have wrote some Code for a rough implementation of the run-utility over at my Fork in the feature/run branch. It is a separate Flutter-Application so that it can operate independently. I would like to integrate it into this Project. There are still a lot of things to do before it is stable and release ready (wrap into Gnome Extension, Settings, DBus interface naming, documentation, ...).

@domferr
Copy link
Owner

domferr commented Jul 14, 2024

Hey, great work! How does your implementation work? I'm curious to know!

@domferr domferr added the enhancement New feature or request label Jul 14, 2024
@J-Marte
Copy link
Author

J-Marte commented Jul 15, 2024

The Implementation will be split into two parts, the flutter application and gnome-extension.

flutter application

The flutter application handles the searching and displaying of the search results.

Summoning

The app listens on a D-Bus interface for the toggleVisibility method call and toggles the visibility via the window_size package

Plugins

When the user enters a search-text each plugin (if no activation Prefix is given) starts generating search results based on it's own cached search entries. The UI uses this search results to display the them in the correct order.

The plugins also implement the actions. For example to open a VScode-Workspace or the Git-repository in a terminal.

Search engine

The default search engine searches in the title and subtitle for all word given in the search text and generates based on the amount of occurrences and length of the search text a rating and highlight-sections.

UI

The ui handles the keyboard inputs, such as arrow movements/tabs to navigate through the application without mose and execution of the actions provided by the search-results.

Gnome Extensions (not implemented)

The Gnome Extension will handle the things which the App can not handle such as:

  • summoning with global key press
  • positioning of the window (i hope this can be done here, because based on my research it is not possible under wayland to reliable set the position)
  • remove is ready notification when visibility is changed

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

No branches or pull requests

2 participants