# 個人小工具 kbar component
## 說明
這個工具的起源是因為我經常需要在各個 Team 之間切換,對我來說每次進到 HackMD 都要去左上角切換團隊很麻煩,因為我不喜歡用滑鼠/觸控板。
在同學的建議下,我製作了一個類似 [GitHub Command Palette](https://docs.github.com/en/get-started/using-github/github-command-palette) 的瀏覽器插件來用鍵盤操作功能。
## 功能
- 切換團隊
- 開新的空白筆記、從模板開新的筆記
- 搜尋筆記
實現方式:我從開發者工具得知且使用了以下的 HTTP Request,以獲取程式需要的資料
* `GET /me` : To get teams information
* `GET /api/overview` : To get all notes in my workspace
* `GET /api/_/history` : To get recent notes
* `GET /api/_/search` : To search notes
* `GET /template` : To get templates
* `GET /new` : To create new empty note
* `POST /template/<templateId>` : To create new note from template

以上是我的使用案例,這個工具只是一個介面,若使用者能夠取用這些資料,就能以自己最順手的方式使用服務
---
GitHub Repo: https://github.com/uier/hackbar
關鍵字:search, navigation
提案者:[TzuWei](https://hackmd.io/@uier)
聯絡方式:[Facebook](https://www.facebook.com/TnUier/) / ap9940506@gmail.com