kitty/kittens/hints
Hector Tellez 501f28acdf Fixes bug where hints starting with the first alphabet's character are _almost never_ generated.
* Switches to "positional notation" to fix the bug.
* Consolidates `encode_hint` and `generate_prefix_free_hint` into `encode_hint`.
* Moves prefix_free_hints.go to hints_generator.go; `encode_hint` and `decode_hint` were moved here too.
* The "prefix-free" logic was made 0-index based instead of 1-index based for two reasons:
  1. To simplify 1-off discrepancies.
  2. To keep backwards compatibility with the old usage of `encode_hint`.
* Slight perfomance improvement added by reusing the runt-to-index map instead of rebuilding for each call to `decode_hint`.
* Unit tests added; for all new logic and old affected logic.

Fixes #10231
2026-07-07 02:07:51 -07:00
..
__init__.py
hints_generator.go Fixes bug where hints starting with the first alphabet's character are _almost never_ generated. 2026-07-07 02:07:51 -07:00
hints_generator_test.go Fixes bug where hints starting with the first alphabet's character are _almost never_ generated. 2026-07-07 02:07:51 -07:00
main.go Fixes bug where hints starting with the first alphabet's character are _almost never_ generated. 2026-07-07 02:07:51 -07:00
main.py Merge branch 'master' of https://github.com/tellezhector/kitty 2026-07-04 12:41:38 +05:30
marks.go Fixes bug where hints starting with the first alphabet's character are _almost never_ generated. 2026-07-07 02:07:51 -07:00
marks_test.go hints: Fix trailing punctuation being included in detected URLs 2026-04-07 22:57:36 -07:00