v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-21 01:50:36 -07:00

129 Commits

Author SHA1 Message Date
eeeXun
72034636af feat: add DeepLX 2024-02-08 22:41:29 +08:00
eeeXun
d83cbabc35 feat: move api_key from gtt.yaml to server.yaml
When you exist gtt, if you change something from the menu, gtt.yaml will
be overwritten. Therefore, when you write your api key after opening gtt, you
might lose what you wrote in gtt.yaml. So I change it from gtt.yaml to
server.yaml
2024-02-08 18:05:23 +08:00
linuxissuper
b6a9d79237
docs: add install instructions for nix to readme (#27)
Co-authored-by: linuxissuper <m@linuxistcool.de>

Close #26
2024-01-28 19:42:07 +08:00
eeeXun
d56deea3ca chore: run go mod tidy 2023-08-23 00:50:08 +08:00
eeeXun
1d0f75ece3 docs: add ldflags in go install 2023-08-13 12:04:24 +08:00
eeeXun
4b9776b4d9 refactor: io/ioutil deprecated by io 2023-08-13 11:48:01 +08:00
eeeXun
31f0794c0e docs: specify request method 2023-07-26 11:36:38 +08:00
eeeXun
369f19290d style: change nord background to darker 2023-07-26 11:35:09 +08:00
eeeXun
f9571ed895 refactor: remove unused err 2023-07-09 16:17:43 +08:00
eeeXun
22aa6c5333 docs: keymap keys without double prime 2023-07-02 13:11:15 +08:00
eeeXun
09207e7e3d refactor(ui): KeyEsc trigger showLangPopout 2023-07-01 13:01:46 +08:00
eeeXun
04efa4e649 refactor: move AddPage to uiInit v8 2023-06-30 20:59:03 +08:00
eeeXun
23c4515256 refactor: set config, themeConfig, keyMapConfig in for loop 2023-06-30 20:19:35 +08:00
eeeXun
d5fcc90037 docs: move key map section before theme section 2023-06-30 19:59:50 +08:00
Xun
d01ef4e768
feat: support custom key mapping (#22)
* feat: support custom key mapping

* remove testing code

* feat: support function key

* style: add comment

* feat: support read config

* docs: add keymap.yaml example

* docs: add function key in README

* refactor: rename config key name

* feat: support Alt prefix

* docs: fix syntax

* feat: let exit be configurable

* refactor: remove KeyEsc in keyNames

* refactor: space to Space

* refactor: style code
2023-06-30 19:55:41 +08:00
eeeXun
7be328cf8d docs: note purple is for button pressed color 2023-06-18 23:53:23 +08:00
eeeXun
993a8286a3 fix(ui): wrong button color
After update tview (49200f8), the background color of button get wrong.
The SetBackgroundColor doesn't work. Use SetStyle and SetActivatedStyle
instead.
2023-06-18 23:43:31 +08:00
eeeXun
6555252e70 docs: add Docker Hub link 2023-06-16 16:50:43 +08:00
eeeXun
49200f8e4d chore: update tview
Fix undo bug https://github.com/rivo/tview/issues/844
2023-06-16 11:03:37 +08:00
eeeXun
f47c8fdd1f refactor(ui): remove unneeded keyMapMenu SetText 2023-06-11 17:34:18 +08:00
eeeXun
18d8f948b4 refactor(ui): remove duplicated function call 2023-06-07 13:32:46 +08:00
eeeXun
1b185e88b9 refactor(ui): RemoveItem instead of Clear all 2023-06-07 13:31:56 +08:00
eeeXun
2fdbe8daee docs: play sound -> playing text to speech v7 2023-05-19 19:32:38 +08:00
eeeXun
457549b7cc refactor: set api key in for-loop 2023-05-19 19:24:11 +08:00
eeeXun
16cee7c895 refactor: use http.MethodPost 2023-05-19 19:15:08 +08:00
eeeXun
05f70b1a17 style: reorder DeepL language with alphabet 2023-05-16 14:14:42 +08:00
eeeXun
e08e563b1a docs: located under -> located at 2023-05-16 13:49:35 +08:00
eeeXun
242523cdd7 refactor: clean up 2023-05-16 13:44:01 +08:00
Oguzhan Selcuk
129d8baed3
feat(translator): Add DeepL support (#20) 2023-05-16 13:26:31 +08:00
eeeXun
4916708261 docs: add $HOME/go/bin to $PATH`
Close #19
2023-05-13 23:02:29 +08:00
eeeXun
4e61f852a2 docs: add go build v6 2023-05-13 10:46:02 +08:00
eeeXun
035d01db2b docs: add sound library to Install Dependencies 2023-05-12 23:44:28 +08:00
Xun
0d23bc1a24
docs: update screenshot 2023-05-12 22:22:02 +08:00
Xun
4aa96ec3de
feat: allow user to import their own themes (#17)
* feat: allow user to import their own themes

* refactor: use make to create map

* add catppuccin example

* fix: theme importing should before reading config file

* docs: add create theme in README

* docs: style
2023-05-12 21:57:40 +08:00
eeeXun
8dcf8c449d docs: fix grammar error & change sound to text to speech 2023-05-12 14:58:58 +08:00
eeeXun
6c8bbac7d8 refactor(translation): use type assertion if Sprintf is not needed 2023-05-12 14:04:46 +08:00
Xun
aa957d195c
feat(translator): add ChatGPT (#18)
* feat(translator): add ChatGPT

* feat: check chatgpt error

* refactor: change chatgpt apiKey not set text

* refactor: change language to google

* docs: yaml indent with 4

* refactor: APIKey in struct
2023-05-12 13:53:23 +08:00
eeeXun
2d2834c6da fix(ui): app should redraw in Goroutine
If error occurs when playing TTS, SetText would be called. But it's in
Goroutine, so we need to call app.Draw to redraw the screen.
2023-05-12 09:27:52 +08:00
eeeXun
837196dbd4 fix: check return code of Google TTS 2023-05-07 16:51:50 +08:00
eeeXun
3e2303ad66 docs: remove pbcopy in Dependencies, as it's build-in 2023-05-02 01:01:15 +08:00
eeeXun
7883e0026e refactor: write show Popout into function 2023-04-30 13:14:54 +08:00
eeeXun
24cadc4072 refactor: check Apertium translate with responseData instead of StatusCode 2023-04-29 21:18:09 +08:00
eeeXun
ecdebc39ad refactor: remove unneeded type conversion 2023-04-29 17:24:21 +08:00
eeeXun
04263a4eaf refactor: rename bing lang.go to language.go 2023-04-29 13:51:00 +08:00
eeeXun
29643a3cda feat: update google language 2023-04-29 13:46:43 +08:00
eeeXun
d0072abecc refactor: new a core.Language instead of return by function
Nothing needs to be initialized in core.Language. Just new one.
2023-04-29 01:41:31 +08:00
eeeXun
aaa06560a5 refactor(ui): change translatorDropDown proportion to 1 2023-04-29 01:38:13 +08:00
eeeXun
731d00c753 refactor: change default translator to Google 2023-04-29 00:22:38 +08:00
eeeXun
4f30ce9df6 refactor: rename Translator name without Translate 2023-04-29 00:17:09 +08:00
eeeXun
a76807d254 refactor: Change theme name to lowercase 2023-04-27 01:05:51 +08:00