Skip to content

Commit

Permalink
new config, for various markdown renders
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosNyaruko committed Aug 10, 2024
1 parent 35027fe commit 6c04a88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion decoder/mdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ func decryptRegCode(regCode []byte, id []byte) []byte {
}

func (m *MDict) salsaDecrypt(data []byte, id []byte, regCode []byte) ([]byte, error) {
// TODO:
key := decryptRegCode(regCode, id) // [32]byte
return salsa20(data, key, [8]byte{}, 8), nil
}
Expand Down
1 change: 1 addition & 0 deletions sources/ldoceonline.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func QueryByURL(word string) string {
// https://bugz.pythonanywhere.com/golang/Unexpected-EOF-golang-http-client-error --> not working either
// Maybe not my problem? It's work when I developed the first demo version. https://www.appsloveworld.com/go/2/golang-http-request-results-in-eof-errors-when-making-multiple-requests-successiv
// I change my User-Agent to curl, it works then. 🥲
// Update on 20240810, even a "curl" request is not working, I changed it to "Firefox"
client := &http.Client{}
req, err := http.NewRequest(
"GET",
Expand Down
13 changes: 7 additions & 6 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@
- [x] Parse the MDD file, and serve the picture sources when working in HTML mode.
- [x] Support multiple mdx libs at the same time and provide a user interface (no UI yet)
- [x] Integrated with FZF? or https://github.com/lithammer/fuzzysearch? https://github.com/junegunn/fzf/wiki/Language-bindings#go?
- [ ] Auto history.
- [ ] A independent parser cmd.
- [ ] See the TODOs in the code.
- [x] `entry://` protocol and "auto"jump, such as `versatility` to `versatile` [node demo](./play.txt)
- [ ] Integrated with [mdcat](https://github.com/swsnr/mdcat)
- [x] Integrated with [mdcat](https://github.com/swsnr/mdcat)
- [x] Auto history.
- [ ] A better history/record system, to make the history.table less "polluted" by ongoing fzf-based queries.
- [ ] An independent parser cmd.
- [ ] See the TODOs in the code.

---
The following are less important things that I want to finish.
- [ ] Editor plugin: give users the option to setup the server in advance, for better first-query user experience.
- [x] Editor plugin: give users the option to setup the server in advance, for better first-query user experience.
- [ ] A system for reviewing, e.g. simple ANKI? --> related to the history functionality?
- [ ] Online mode: more information such as collocations/corpus/.....
- [ ] More search algorithms?(Refs: https://aclanthology.org/C10-1096.pdf)
- [ ] A more decent web page.
- [ ] Other online dict parsing engines if I have the motivation?
- [ ] A simple TUI using https://github.com/charmbracelet/bubbletea ?
- [ ] Vim plugin
- [ ] Make the plugin compatible with Vim

0 comments on commit 6c04a88

Please sign in to comment.