Skip to content

add a key binding to clear the query editor#258

Merged
danvergara merged 2 commits intomainfrom
delete-text-box-content
Apr 23, 2025
Merged

add a key binding to clear the query editor#258
danvergara merged 2 commits intomainfrom
delete-text-box-content

Conversation

@danvergara
Copy link
Copy Markdown
Owner

Add Ctrl+D to clear the query editor

Description

I found myself running multiple queries earlier today and I realized that doing son multiple times is very tedious due to the limitations of the TextArea object from the tview library. The easiest way to start over is cleaning the whole text.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

@danvergara danvergara merged commit e8b7a93 into main Apr 23, 2025
4 checks passed
@danvergara danvergara deleted the delete-text-box-content branch April 23, 2025 14:06
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 10, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [danvergara/dblab](https://github.com/danvergara/dblab) | minor | `v0.30.1` -> `v0.32.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>danvergara/dblab (danvergara/dblab)</summary>

### [`v0.32.0`](https://github.com/danvergara/dblab/releases/tag/v0.32.0)

[Compare Source](danvergara/dblab@v0.31.0...v0.32.0)

#### Changelog

-   [`db0e6b4`](danvergara/dblab@db0e6b4) feat:  configurable key bindings  ([#&#8203;255](danvergara/dblab#255))

### [`v0.31.0`](https://github.com/danvergara/dblab/releases/tag/v0.31.0)

[Compare Source](danvergara/dblab@v0.30.1...v0.31.0)

#### Changelog

-   [`2fd4b96`](danvergara/dblab@2fd4b96) build: bump go version 1.24 ([#&#8203;254](danvergara/dblab#254))
-   [`afb91a3`](danvergara/dblab@afb91a3) chore: housekeeping changes ([#&#8203;256](danvergara/dblab#256))
-   [`919d753`](danvergara/dblab@919d753) docs(mkdocs): update usage markdown file ([#&#8203;259](danvergara/dblab#259))
-   [`e8b7a93`](danvergara/dblab@e8b7a93) feat: add a key binding to clear the query editor ([#&#8203;258](danvergara/dblab#258))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNTkuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI1OS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
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