CatsDeservePets
60deb6e43b
docs: normalize Go doc comments ( #2359 )
2026-01-25 01:14:27 +01:00
CatsDeservePets
e45412d363
Add OSC 8 support ( #2243 )
...
* Add `OSC 8` support
* Rename functions
* Update tests
* Support grouped links
* Update `CHANGELOG.md`
* Move terminal sequence parsing to new file
2025-11-03 15:55:29 +01:00
CatsDeservePets
4bfd3c8ac5
Silence gopls hints ( #2195 )
2025-10-09 02:18:16 +02:00
Joe Lim
8f97bf806a
Add unit tests for escape sequence parse functions ( #2116 )
2025-08-26 14:49:33 +10:00
Joe Lim
6c13807a70
Prepare for r37 release ( #2107 )
2025-08-25 14:41:53 +10:00
Joe Lim
876e3067c6
Add support for disabling styles ( #2101 )
...
* Add support for disabling styles
* Update `CHANGELOG.md`
2025-08-18 15:45:47 +10:00
Joe Lim
9b1f8386fa
Add support for underline colors ( #1933 )
2025-03-15 13:01:17 +11:00
Joe Lim
26259f777f
Add function for parsing SGR colors ( #1932 )
...
* Add function for parsing SGR colors
* Change error message
* Fix break out of loop
* Fix typo
2025-03-15 12:37:44 +11:00
Joe Lim
74b2954e6a
Handle leading zeros in SGR escape sequences ( #1912 )
2025-02-10 17:13:34 +11:00
Joe Lim
b3c652c4d4
Add support for underline styles ( #1896 )
2025-02-09 23:39:15 +11:00
David Pedersen
0f48f36b0f
Small optimizations and cleanups ( #1830 )
2024-11-04 00:25:05 +11:00
David Pedersen
a018257d50
gofumpt lint and misc cleanup ( #1682 )
...
* gofumpt lint and misc cleanup
* Reorder fileInfo dircounts code to be clearer
2024-04-20 21:42:28 +02:00
lorentzforces and Gökçehan Kara
5b108037a3
Use symlink target for stat styling & icons ( #566 ) ( #1644 )
...
* use symlink target for stat styling & icons (#566 )
Support LS_COLORS/dircolors use of "target" for symlinks to select icons
and styles for them according to the target stat. This mainly applies to
directories - file name-based styles will still be based on the name of
the link, not its target. This mirrors `ls` behavior.
* remove unnecessary debugging and factor out parsePair in color parsing
* move conditional to switch block
* clarify ln target behavior in docs
* run gofmt on single file
---------
Co-authored-by: Gökçehan Kara <gokcehankara@gmail.com >
2024-04-07 15:35:46 +02:00
Joe Lim
b420dee145
Fix detection of character vs block devices ( #1469 )
2023-10-22 21:42:12 +02:00
Joe Lim
3b942a8a39
Support custom colors for drawbox characters ( #1251 )
2023-05-20 17:53:05 +03:00
Paul Ouellette
75869f0ac3
support italic escape code in previews ( #936 )
2022-10-01 16:32:39 +03:00
desbma
01d3b69de0
feat: case insensitive extension matching for icons & colors ( #908 )
2022-10-01 16:27:14 +03:00
Gokcehan
17453f10f5
add colors/icons file support
...
cc #505
2022-02-13 16:58:53 +03:00
Lucas Burns
895e22a1b5
added: *filename as a color sequence to match against ( #747 )
2022-02-05 00:01:08 +03:00
Gokcehan
f885af55f2
add support for bright fg/bg ansi escape codes
...
cc #307
2021-05-30 19:26:08 +03:00
Gokcehan
9f8bbe26e2
add trailing star to match names for colors/icons
...
cc #543
2021-01-07 01:17:56 +03:00
Gokcehan
bfa527fcea
fix order of color/icon matches
...
cc #543
2021-01-03 01:02:40 +03:00
Gokcehan
3b78309b89
parse LF_COLORS variable for lf specific colors
2020-12-26 21:25:35 +03:00
Gokcehan
d81b9eb858
parse env variables cumulatively for colors/icons
2020-12-26 21:24:35 +03:00
Gokcehan
ae79db38da
cleanup
2020-12-26 21:14:06 +03:00
Gokcehan
99d6b7fd44
match extension before type for colors/icons
...
Related #505
2020-12-26 20:39:41 +03:00
Gokcehan
42ef82b2c8
only clean full paths for colors/icons
...
Related #505
2020-12-24 15:42:36 +03:00
Gokcehan
9255408000
clean path in patterns in colors/icons
...
Related #505
2020-12-24 03:30:11 +03:00
Gokcehan
de691bf4e8
match trailing slash as dirs in colors/icons
...
Related #505 #506
2020-12-24 01:04:13 +03:00
Gokcehan
1aed76c10d
match path/name/base patterns in colors/icons
...
Related #505 #506
2020-12-23 04:55:10 +03:00
Gokcehan
851e079a82
Fix colors for BSD style LSCOLORS for tcell/v2
...
Related #526
2020-12-19 02:11:38 +03:00
Gokcehan
90b3b166e1
import tcell/v2 from gitlab.com/Provessor/lfp
2020-12-04 23:59:12 +03:00
Provessor
24f01f4988
Replace termbox-go with tcell ( #439 )
...
Fix colour construction issue
This also has a test to mitigate it in the future
Remove `colormode` option
The original issue it was trying to solve is no longer present with
tcell (it being a holdover from `color256` on termbox) so it is not
needed.
retire gitter channel in favor of irc/matrix
Export options as environment variables (#448 )
* Export options as environment variables
Any options from gOpts are available via lf_OPTION environment
variables. For now it works only on booleans, integers and strings (no
array support)
* Do not export some of the options
* Add support for arrays and fix numbers
* Fix comments
* Replace 1 and 0 with true and false
* Export hidden,reverse,dirfirst and sortby options
* Fix comments
* Little fix
* Simplify boolean conversion
log readlink errors instead of fail
Related #447 and #374
2020-09-01 15:42:44 +03:00
Doron Behar
6693709f36
Use doronbehar's fork of termbox ( #311 )
2020-03-20 21:59:30 +03:00
Andrew Rabert
cb36e87b80
Use symlink color for directories ( #195 )
...
Resolves https://github.com/gokcehan/lf/issues/156
2019-07-02 12:43:53 +03:00
Gokcehan
184762d83a
remove background colors from defaults
2019-02-10 20:45:34 +03:00
Gokcehan
f672a71f3d
fix confusion of 8-bit color codes and attributes
2018-05-06 18:45:18 +03:00
Gokcehan
d608eb4a56
handle resize events properly
2018-04-15 18:18:39 +03:00
Gokcehan
5a9a829252
handle 256 colors in $LS_COLORS
...
Related #37
2018-04-14 21:18:39 +03:00