v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-16 15:50:52 -07:00

39 Commits

Author SHA1 Message Date
eeeXun
8a9f267229 feat: add LibreTranslate, remove ArgosTranslate
ArgosTranslate is offline. Change it to LibreTranslate
2024-08-10 21:45:32 +08:00
Yin-Hsun Hong
f87b7b43ec
feat: support OSC 52 (#32)
* feat: support OSC 52

* docs: note for OSC 52
2024-08-10 14:12:15 +08:00
eeeXun
3b0edef864 feat: read API key from file
Close #29
2024-02-10 13:55:02 +08:00
eeeXun
943def5302 feat: make host of DeepLX configurable 2024-02-10 11:47:39 +08:00
eeeXun
ff46861080 feat: add DeepLX 2024-02-10 11:47:39 +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
eeeXun
23c4515256 refactor: set config, themeConfig, keyMapConfig in for loop 2023-06-30 20:19:35 +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
457549b7cc refactor: set api key in for-loop 2023-05-19 19:24:11 +08:00
Oguzhan Selcuk
129d8baed3
feat(translator): Add DeepL support (#20) 2023-05-16 13:26:31 +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
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
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
Xun
e0c5569adf
feat(translator): add BingTranslate (#16) 2023-04-22 00:17:18 +08:00
Xun
ea1e23172c
feat(translator): add ReversoTranslate (#14) 2023-03-10 20:51:38 +08:00
eeeXun
529decb190 style: change borderColor to border_color in config 2023-02-17 22:31:04 +08:00
eeeXun
303441125b refacotr: move hide_below to style struct 2023-02-14 15:45:51 +08:00
eeeXun
c5cdbcb99a refactor: move module color to style
- rename control.go to style.go
- remove windowStyle struct, don't need it
- rename global variable style to uiStyle
2023-02-14 15:25:40 +08:00
Xun
5fcb72cbb2
feat(translator): add ApertiumTranslate (#13) 2023-02-13 15:22:04 +08:00
eeeXun
34805264b3 refactor: rename go module 2023-02-11 14:23:07 +08:00
eeeXun
513ad36470 refactor: NewTranslator in for-loop
NewTranslator by name, so no need to create functions for each Translate
2023-02-03 13:30:55 +08:00
eeeXun
25b20b9f14 style: add comment 2023-02-01 14:56:59 +08:00
Xun
db58fa7912
Merge pull request #8 from eeeXun/libretranslate
feat: add ArgosTranslate
2023-01-29 11:18:40 +08:00
eeeXun
45b9c13c06 style: rename viper to config
viper already previde the variable. No need to New one.
2023-01-27 20:30:24 +08:00
eeeXun
3c33708f33 style: rename LibreTranslate to ArgosTranslate
LibreTranslate is an API and web-app built on top of Argos Translate
2023-01-27 16:49:33 +08:00
eeeXun
6244a00630 style: default language & restructure config
change default language to English
change the structure of language in config
2023-01-27 14:44:45 +08:00
eeeXun
1115d19b7a feat: add translatorDropDown 2023-01-27 12:24:42 +08:00
eeeXun
0faaa757e3 feat: add libretranslate 2023-01-26 23:45:59 +08:00
eeeXun
72f75e070e style: make defaultConfig to local variable 2023-01-26 01:18:00 +08:00
eeeXun
ed2bd312a3 refactor: make translator to an interface 2023-01-26 01:15:53 +08:00
eeeXun
b27a7dc11b fix: check if config value is missing
If config value is missing, set it with default value
2023-01-23 16:36:24 +08:00
eeeXun
8f48d9be1f feat: add version 2023-01-18 14:48:43 +08:00
Xun
d99585b386
feat: add definition & part of speech (#5) 2023-01-18 14:30:44 +08:00
eeeXun
10c6877230 style: rename function & reorder function call
- rename function `translatePageHandler` to `translateWindow`
- reorder function call in `ui.go`, let function call jointed
- change the position of comment
2023-01-11 10:49:12 +08:00
eeeXun
da5fc22258 feat: allow language to be passed in argument 2022-10-29 19:57:48 +08:00
eeeXun
98ff16df38 fix: Getenv XDG_CONFIG_HOME
Getenv don't need `$` sign
2022-10-25 01:01:50 +08:00
eeeXun
98d1cb3392 Initial commit 2022-10-24 23:43:20 +08:00