Commit graph

78 commits

Author SHA1 Message Date
Hiers
5c4092ff32 Add stroke info file and Makefile 2024-12-25 00:26:44 +00:00
Hiers
7119f55e66 Update dependencies 2024-12-25 00:26:27 +00:00
Hiers
55ee9ab6aa Fix clippy issues 2024-12-25 00:22:52 +00:00
Hiers
407aae7a0b Order results from radical search by strokes 2024-12-25 00:22:52 +00:00
Hiers
983e09b0ab
Merge pull request #1 from Hiers/dependabot/cargo/rustls-0.22.4
Bump rustls from 0.22.2 to 0.22.4
2024-05-05 20:21:16 +00:00
dependabot[bot]
200a5a8446
Bump rustls from 0.22.2 to 0.22.4
Bumps [rustls](https://github.com/rustls/rustls) from 0.22.2 to 0.22.4.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.2...v/0.22.4)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-05 20:18:33 +00:00
Hiers
553a09f43a Handle invalid UTF-8 instead of just crashing. 2024-03-15 12:53:49 +00:00
Hiers
d9fabf6570 Print entries that are just a wikipedia entry. 2024-02-28 20:34:31 +00:00
Hiers
8813605e5f Was using atty when it's available in the stdlib. 2024-02-18 11:20:54 +00:00
Hiers
03aa702c55 Hopefully final windows fixes. 2024-02-18 11:04:01 +00:00
Hiers
8c6020ea43 More windows fixes. 2024-02-18 10:23:09 +00:00
Hiers
bc4297bbbb Windows specific fixes. 2024-02-18 10:20:51 +00:00
Hiers
58161c18b7 Paltry changes. 2024-02-17 19:26:11 +00:00
Hiers
659003f647 Bump version. 2024-02-17 19:17:34 +00:00
Hiers
6fcd5489d5 Removed unnecessary mallocs.
The colored crate was being used for convinient coloring of the terminal
text, but after profiling I found it was responsible for almost 1/3 of
the memory allocations of the jisho searching feature.

Decided to write ANSI codes manually instead, along with using write! +
format_args! instead of format! for similar reasons, but not as
egregious.
2024-02-17 19:12:09 +00:00
Hiers
a475790e63 Only load the radkfile once per execution.
Before this, Yakudatsu would load and parse the whole file everytime you
used the kanji search.
2024-02-17 18:54:20 +00:00
Hiers
0070579f79 Fix underflow if executed outside of a terminal. 2024-02-17 18:33:25 +00:00
Hiers
eafa2550bb Fixed not checking correctly for empty strings. 2024-02-02 21:34:45 +00:00
Hiers
19929580da Final final changes before release. 2024-01-28 09:41:27 +00:00
Hiers
5f329ccab4 More Windows-specific fixes. 2023-12-19 13:08:06 +00:00
Hiers
f11950b0de Changed aux.rs to util.rs because of Windows. 2023-12-19 11:06:24 +00:00
Hiers
312ce83127 Not sure if this actually improves performance.
But just in case.
2023-12-18 07:52:33 +00:00
Hiers
f0d4e815d0 Update README. 2023-12-17 21:55:59 +00:00
Hiers
feb73531cd Preparing for 1.0 release. 2023-12-17 21:45:30 +00:00
Hiers
58d2c92e3a Fix some bugs on empty inputs. 2023-12-17 21:33:24 +00:00
Hiers
75bdf17905 Empty jisho command now starts interactive mode. 2023-12-17 21:02:26 +00:00
Hiers
86fed8b3d6 Moved error messages out of kanji_search.rs 2023-12-17 21:00:12 +00:00
Hiers
220a164c67 Cleanup. 2023-12-17 16:31:05 +00:00
Hiers
b3d8a06fdf Working sentence searching.
It's working, but the code is not very polished.
Will clean it up later.
2023-12-16 19:42:38 +00:00
Hiers
37e36db2a1 Fix program not exiting on EOF during some prompts 2023-12-16 11:44:37 +00:00
Hiers
5501c621c9 Split word search into its own file too. 2023-12-16 11:24:55 +00:00
Hiers
93576a3e34 Split kanji search by radical functions.
Put them in another file in preparation for adding sentence searching
which will add considerable complexity to the code.
2023-12-14 19:15:35 +00:00
Hiers
683610bf2c Update README. 2023-11-21 18:07:15 +00:00
Hiers
cb977989c6 Fixed "(common)" tag not showing up as green. 2023-11-20 19:42:29 +00:00
Hiers
ac5a961d8d Code cleanup. 2023-11-06 10:40:37 +00:00
Hiers
900cec4df4 Fix broken coloured text on Windows. 2023-10-14 18:02:32 +01:00
Hiers
139f3b17ab Upload local patches I've been running for jisho-cli. 2023-10-14 17:12:06 +01:00
Hiers
128c0a6e9b More changes to formatting and additional info. Also exit on EOF. 2023-03-18 21:47:50 +00:00
Hiers
c541922d05 Fix loop not reading more than 2 alternate readings. 2023-03-18 21:47:27 +00:00
Hiers
d067e01bd4 Remove aux variable and assign output to format! directly. 2023-03-05 15:05:10 +00:00
Hiers
6ad4c5cdc3 Add other forms section to results that have them. 2023-03-05 15:01:15 +00:00
Hiers
321aab0480 Few more minor changes to formatting. 2023-03-04 13:18:04 +00:00
Hiers
556c32b1ec Change formatting to be closer to what jisho presents. 2023-03-04 11:37:44 +00:00
Jojii
9b2e51fee3
Merge pull request #6 from Hiers/master
Print to less if output is bigger than terminal window height.
2023-02-20 18:26:46 +01:00
Hiers
1c3c5644d3 Move child process code to separate function and other small changes. 2023-02-19 23:18:42 +00:00
Hiers
d56d31cc64 Removed the pager crate in favour of implementing that functionality in jisho-cli. Added windows version of terminal_size function. 2023-02-19 11:01:24 +00:00
Hiers
bc8a29fcf3 Fix buffer underflow bug in output line counter. 2023-02-17 11:41:38 +00:00
Hiers
7f149998bb Print to less if output is bigger than terminal window height. 2023-02-17 10:23:52 +00:00
jojii
06dba7a78f
fix #3 2021-04-07 14:02:32 +02:00
jojii
c168323282
don't do empty requests 2021-04-07 13:57:16 +02:00