* feat: allow predefined time formats
* refactor(log): use time format constants
* feat(log): time format flag -> time flag
* docs: add formats to help
Change ESC from aborting to successful quitting.
'vi' users press ESC as an uncontrollable tick, making using 'gum write'
painful when all their work is lost.
The isTTY check is inverted in the --show-output option for spin, so no
output is shown anymore. Fix this by correctly checking if we are a tty
or not.
* Switch to termenv.EnvColorProfile()
This will allow users to set `NO_COLOR` and `CLICOLOR_FORCE` when they need to override the detected values.
* Update main.go
* feat: Adding timeout option in preparation for coming timeout features in all commands
* feat: Adding timeout option in preparation for coming timeout features in all commands
* feat: Adding timeout option in preparation for coming timeout features in all commands
* chore: Linter issues
* Added live output buffer and option flag
* Update Spin on README.md
* Returned output formatting to previous version.
* Separated the showOutput and liveOutput flags.
Both flags can now be used at once.
* Removed liveOutout flag
showOutput flag is now realtime
* (spin) Consolodated stderr and stdout
* (spin) Consolodated stdout and stderr
* (spin) If being piped, writes to stdout
* Added error check and did some housekeeping
* No longer outputs to tea.View if piped
* Cleaned up the combining of stderr and stdout
* Fixed spinner alignment. Updated Readme
There are a couple of gotchas in LipGlossTruncate:
* len() returns the number of bytes in a string
* slicing a string slices it on a byte level
The fix would normally be to convert the string to a slice of runes and
operate on that new slice:
r := []rune(str)
However, reflow already contains an ansi-aware truncate feature that we
can use instead as a drop-in replacement for the LipGlossTruncate
function.
* Added initial search functionality
* Added a handler for the key presses
* Added a searchbar at the bottom of the screen
* Made search results cycleable by pressing n
* correct start pos and ignore keys while searching
* fix out of bound error when pressing n
* made the matching pattern relative to the current pos
* added p for searching for previous match
* added highlighting to search matches
* dynamically replaced all matches
* fixed string highlight issue
* fixed truncation issue
* small simplifaction in ypos logic
* made prev and next behave the same atBottom
* simplified logic and fixed linter errors
* updated help text
* style changes
* added comments
* fixed truncation issue
* fixes infinte loop on very long lines
* added simple lipgloss truncate function
* updated colors for better contrast
* lint fix
* initial commit for soft-wrap functionality
* linter corrections and added for pager with new model
* added generic functions to a utility package
* fix soft lint errors
* made N match previous as well as p
* replaced help text when search is active
* ran gofmt -w
* reimplemented search and next to enabled support for dynamic highlights
* made the highlight move as you progress through the search
* simplified highlighter
* improvements to the clean up of the highlight function
* semi working reverse search
* reverse search without highlight
* added semi working highlight for reverser search
* working version of previous match
* fixed issue with single letter matches in next
* added support for softwrapping
* respond to soft lint warnings
* removed unused function
* lint
* simplified matchers and fixed duplicate highlights
* optimisations and change in matching pattern
* fixed bug in lipglosspadding and allowed matching 1 etc.
* make highlight respect user settings
* fixed logic error in slice
* made prev match wrap around
* fix: show next/prev match help when active
* updated how view port line is set
* avoid crashes when regex doesn't compile
* fix: spelling previous
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>