# How to add a custom search button or keybind?

**URL:** https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342
**Category:** Support
**Created:** [23 November 2022 15:25 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342 "2022-11-23T15:25:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Leigh](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/leigh/32/28126_2.png) [@Leigh](https://discourse.joplinapp.org/u/Leigh)
#### Post date: [23 November 2022 15:25 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/1 "2022-11-23T15:25:31Z")

</div>

Hi,  
I'm looking for a way of searching for `-tag:*` more easily  
eg

1. making a custom keybind
2. making a button or something via manipulation of userchrome.css
3. another way

I know typing this in the search field wont kill me, but I am curious

Any ideas, please?

Cheers

---

<div class="post-metadata">

### Author: ![JackGruber](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/jackgruber/32/3231_2.png) [@JackGruber](https://discourse.joplinapp.org/u/JackGruber)
#### Post date: [23 November 2022 19:42 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/2 "2022-11-23T19:42:48Z")

</div>

With css this is not possible, this is only for styling and i don't know any other way currently in joplin, except maybe the joplin-note-tabs plugin ...

---

<div class="post-metadata">

### Author: ![chairmanbrando](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/chairmanbrando/32/8099_2.png) [@chairmanbrando](https://discourse.joplinapp.org/u/chairmanbrando)
#### Post date: [26 November 2022 03:50 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/3 "2022-11-26T03:50:20Z")

</div>

In terms of #3...

- I believe there's a plugin that allows you to store and rerun searches. Not sure what it's called, but it may be along the lines of "bookmarks" or "favorites" and the like.

- It could be done using AutoHotkey if you're on Windows. You'd assign a macro to a key that would send inputs for `Ctrl-Shift-F` and then `-tag:*`. Not sure what equivalent tech exists on other operating systems.

---

<div class="post-metadata">

### Author: ![johano](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/johano/32/1053_2.png) [@johano](https://discourse.joplinapp.org/u/johano)
#### Post date: [26 November 2022 18:16 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/4 "2022-11-26T18:16:51Z")

</div>

[Autokey](https://github.com/autokey/autokey) makes a good Linux equivalent for AutoHotKey.

[Embed Search](https://discourse.joplinapp.org/t/embed-any-search-with-content/14328) and [Note Overview](https://github.com/JackGruber/joplin-plugin-note-overview/blob/master/README.md) might also be worth looking at.

Example for Embed Search:

Install the plugin, and paste the following into a note in the markdown editor:

```search  
-tag:\*  
```

You can now see a list of all untagged notes in the note's rendered view.

Not a specific solution to your problem, but might be useful

---

<div class="post-metadata">

### Author: ![Leigh](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/leigh/32/28126_2.png) [@Leigh](https://discourse.joplinapp.org/u/Leigh)
#### Post date: [27 November 2022 20:47 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/5 "2022-11-27T20:47:48Z")

</div>

> [@johano](#):
>
> Example for Embed Search:
> 
> Install the plugin, and paste the following into a note in the markdown editor:
> 
> ```search
> -tag:*
> 
> ```
> 
> You can now see a list of all untagged notes in the note's rendered view.

Thats a neat way to do it  
Not exactly what I was planning to do, but an as good if not better solution - Thanks!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)
#### Post date: [27 December 2022 20:48 UTC](https://discourse.joplinapp.org/t/how-to-add-a-custom-search-button-or-keybind/28342/6 "2022-12-27T20:48:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
