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 a search bar #106

Merged
merged 7 commits into from
Dec 20, 2024
Merged

Add a search bar #106

merged 7 commits into from
Dec 20, 2024

Conversation

danirod
Copy link
Owner

@danirod danirod commented Dec 19, 2024

The intention is to add a search bar component that can be plugged into the different text editors (payload pane, export pane, response pane...). When the user presses Ctrl-F, this triggers a search request which may cause the bar to be presented. Then, the search bar can be used to start a search in the associated text view.

A screenshot of the search bar

Closes #80

Since the search behaviour will be attached to an action associated with
the text view, in order to avoid repeating the same work I'll just
create a common component called CarteroCodeView and use it instead of
GtkSourceView.

Features of CarteroCodeView:

* Automatic dark theme when dark mode.
* Automatic unidirectional binding to accept the current settings.
After this commit, the search bar can be used in the raw payload pane.
However, the buttons only print to stdout information about what button
or action you made, still pending to connect to a real search system.
@danirod danirod self-assigned this Dec 19, 2024
@danirod danirod marked this pull request as ready for review December 20, 2024 22:22
@danirod danirod merged commit 9c30d29 into trunk Dec 20, 2024
2 checks passed
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.

Ctrl-F and search in the response
1 participant