ollama/readline
Josh ad897080a2
working on integration of multi-byte and multi-width runes (#4549)
* integrated runewidth for display management - fixed cursor movement for mutli-width char

* updated input and deletion of multi-byte chars

* fixed line history with some exceptions

* improved insert and add

* fixed issues with moving across lines

* end of line extra space tracking'

* saved changes

* fixed end of line issues with empty spaces

* worked some more

* worked on end of line

* fixed failed test

* fixed minor inserting bug

* fixed movement hotkeys

* adjusted hotkeys

* removed comments

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* Update readline/buffer.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>

* deleted comments and duplicate code

* removed duplicate code

* added comments, refactored add function to use addChar

* added helper to retrieve lineSpacing, renamed lineFlags for clarity

* fixed remove()

---------

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
2024-05-28 12:04:03 -07:00
..
buffer.go working on integration of multi-byte and multi-width runes (#4549) 2024-05-28 12:04:03 -07:00
errors.go new readline library (#847) 2023-10-25 16:41:18 -07:00
history.go Add gemma safetensors conversion (#3250) 2024-03-28 18:54:01 -07:00
readline.go working on integration of multi-byte and multi-width runes (#4549) 2024-05-28 12:04:03 -07:00
readline_unix.go handle race condition while setting raw mode in windows (#2509) 2024-02-14 21:28:35 -08:00
readline_windows.go handle race condition while setting raw mode in windows (#2509) 2024-02-14 21:28:35 -08:00
term.go handle race condition while setting raw mode in windows (#2509) 2024-02-14 21:28:35 -08:00
term_bsd.go go fmt 2023-11-01 11:55:08 -07:00
term_linux.go go fmt 2023-11-01 11:55:08 -07:00
term_windows.go Detect arrow keys on windows (#3363) 2024-03-26 18:21:56 -04:00
types.go Fix issues with inputting and formatting multi line strings in ollama run 2023-11-26 12:54:29 -05:00