aboutsummaryrefslogtreecommitdiff
path: root/main.ha
AgeCommit message (Collapse)Author
2025-10-27Update for nomemHEADmasterJulian Hurst
2024-09-20Remove debug logJulian Hurst
2024-09-16Fix crash on resizeJulian Hurst
readable was being called without the associated file being "consumed" leading to a crash. Furthermore their was some misbehaving casts between size and u16 (maybe bug in hare?). This led to the frame sizes being set to very large incorrect values that messed up printing the list.
2024-09-12Use hare-ev to handle the event loopJulian Hurst
2024-02-26Fix casting issueJulian Hurst
2023-09-11Fix non-exhaustive switchJulian Hurst
2023-09-06Bump hare version (Hare dev+9705222-alpine)Julian Hurst
This changes stuff like signal::SIGWINCH -> signal::sig::WINCH and poll now returns a poll:error instead of errors::error (it actually wraps an rt::errno in an errors::error using errors::errno and poll::error is actually a errors::error)
2023-09-06Remove unused mainUI and sighandler functionJulian Hurst
2022-12-17Add -s flag for search on open supportJulian Hurst
2022-12-16Add -m flagJulian Hurst
2022-12-16Add support for nul terminated outputJulian Hurst
2022-12-03Handle the error from strings::fromutf8 callsJulian Hurst
This fix just uses an error assertion operator to handle the error from strings::fromutf8
2022-09-11Use libtui::doclear instead of libtui::clear to prevent flickeringJulian Hurst
2022-09-11Prevent taking total tty size if unecessaryJulian Hurst
2022-09-11Update resize code for libtuiJulian Hurst
2022-09-11Fix resetting the list items after sortingJulian Hurst
2022-09-11Add filter featureJulian Hurst
2022-06-20Use layout::print in main UI loopJulian Hurst
2022-06-15Externalize modules and add .gitignoreJulian Hurst
2022-05-25Use signalfd and poll to handle sigwinchJulian Hurst
2022-05-17list: reset, somewhat decent resize implementation and fix reframeJulian Hurst
list::reframe had buggy behaviour (especially after previous commit). list::reset allows easily resetting the list (cursor = 0, reset frame). list::resize allows resizing the list after a sigwinch more easily. It's a bit of a bitch to get a pretty, non-brutal (without cursor/frame resetting to avoid "jumping" effect) list resize, this algo acheives it somewhat decently and keeps the selected item in a somewhat predictable position.
2022-05-17Move ttyui to widgetJulian Hurst
2022-05-17Add list::setitems, sorting and decouple handlers from main.haJulian Hurst
2022-05-16Add page up and page downJulian Hurst
2022-05-16Add layout and a common widget typeJulian Hurst
2022-05-15Add marking support (contains, fnmatch, regex)Julian Hurst
2022-05-05Improve docs and search (forwards/backwards search)Julian Hurst
2022-05-05sigwinch and newline weirdnessJulian Hurst
2022-05-05Initial commitJulian Hurst