Joe Lim
b5d981ad4a
fix: improve width calculation for ratios option ( #2347 )
...
* fix: improve width calculation for `ratios` option
* Update `CHANGELOG.md`
* round window ends instead of floor
* grammar
2026-01-14 11:13:06 +11:00
CatsDeservePets
57d02dd01d
refactor: move optionToFmtstr() to termseq.go ( #2323 )
2025-12-27 17:37:30 +01:00
Joe Lim
6b92294a29
test: Add permString function ( #2282 )
2025-12-02 00:45:56 +11: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
00da40b9cd
Refactor directory sorting code ( #2177 )
...
* Implement natural sorting
* Small refactor of filtering code
* Refactor sorting
* Refactor dirfirst as well
* reword
* reword2
2025-09-20 18:08:39 +10:00
Joe Lim
5e15655539
Prevent truncation from applying to file extension ( #2159 )
...
* Prevent truncation from applying to file extension
* Update documentation
2025-09-19 18:32:06 +10:00
Joe Lim
75334c25a5
Use ratio for more accurate humanize implementation ( #2121 )
2025-08-27 13:25:32 +10:00
Joe Lim
4fe8f5a858
Add option to specify binary or decimal sizes ( #2118 )
...
* Add option to specify binary or decimal sizes
* Fix test case error message
* Add documentation
* Fix typo
2025-08-26 22:32:33 +10:00
Joe Lim
8f97bf806a
Add unit tests for escape sequence parse functions ( #2116 )
2025-08-26 14:49:33 +10:00
Joe Lim
e60c055be3
Remove experimental locale feature ( #2111 )
2025-08-26 01:41:01 +10:00
Joe Lim
13da770af6
Implement builtin support for sixel images, allow combining with text ( #2109 )
...
* Add function for reading lines in file
* Implement sixel drawing
* Remove sixel option
* Fix linting error
2025-08-25 22:19:14 +10:00
Joe Lim
42b36fd52c
Improvements for command line completion ( #2071 )
...
- Refactor of the completion module, primarily to have the `match...` functions return the result for each possible match, so that they can be displayed when the user cycles through the completions using `cmd-menu-complete`/`cmd-menu-complete-back`
- Add support for completing list options (e.g. `set info user:group:size:time`)
- Provide different implementations for escaping/unescaping for `lfrc` command syntax, Unix and Windows. It is a bit hacky, but for now I want to keep `lf` as shell-agnostic as possible which means minimizing the logic based on `gOpts.shell`
- Fix alignment bug in the completion menu when displaying filenames with fullwidth characters
2025-08-07 15:14:25 +10:00
Andrew Voynov and Joe Lim
23b30ae1ee
Change file size units to IEC 80000-13:2025 (binary multiples) ( #2062 )
...
* Change file size units from SI to IEC 80000-13:2025
Increase left-padded (%S) file size string length to 5 characters
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
* Add note about used IEC units for file size in docs
---------
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
2025-07-26 19:03:13 +10:00
CatsDeservePets and Joe Lim
17971fd66e
Add addcustominfo command ( #2012 )
...
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
2025-06-20 18:02:09 +10:00
陆离
3f63bc980f
Add option to sort base on certain locale. ( #1818 )
...
* Add support for localized sorting
* Switch go-locale module; Use collate option for natural sorting
* Doc and error message improvement
* Simplify predicated checking of localized sorting.
* Improve error handling of `set locale` command
2024-11-02 00:12:21 +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
Daniel Zhang
6cabb0e8e4
Support icon color ( #1674 )
...
* Support icon color
* Rename variables
* Test for readArrays
* Add doc and examples for icon color
2024-04-20 21:41:37 +02:00
David Pedersen
63815aaa75
Move get file extension logic to util ( #1670 )
...
* Move get file extension logic to util
* Update TestGetFileExtension to use fake file
* Add more test cases to TestGetFileExtension
2024-04-07 15:38:32 +02:00
raslop
b1a851953b
Flexible filename truncation ( #1029 )
...
* allow flexible truncation of filenames
As of now, lf truncates always at the end. So for long filenames one can
not see the end (especially not the file ending, like .jpeg or .pdf).
[MidnightCommander](https://github.com/MidnightCommander/mc/ ) truncates
too long filenames in the middle, so it's possible to see the beginning
and the end of the too long filename.
This commit allows to specify a flexible point for the truncation in
percent of the available space.
* The default value of 100 for the new `truncatepct` option means no
change in lf behaviour.
* More adhering to naming convention.
* Improve error message for invalid `truncatepct` values.
* Remove redundant test cases.
* FIXUP Add dummy empty line to make `go fmt` happy.
* Avoid explicit "cast" to rune array.
* fix(doc.go): remove line with single dot
This was there to avoid that `go fmt` touches the next item with `waitmsg`.
However, removing the spaces before the example list items has the same
effect.
2023-07-03 12:48:51 +03:00
Joe Lim
014d18d3ea
Fix runeSliceWidthRange implementation ( #1273 )
...
* Fix `runeSliceWidthRange` implementation
* Add empty test case
2023-06-04 16:22:46 +03:00
Joe Lim
c3d44123bb
Fix typo in misc tests ( #1270 )
2023-06-04 16:19:39 +03:00
Gokcehan
19aad41b8e
cleanup
2022-03-19 19:16:51 +03:00
Gokcehan
3e3a4a6386
fix comments inside quotes in colors/icons files
2022-02-13 23:25:03 +03:00
Gokcehan
85c73978fe
fix TestIsRoot on windows
2022-01-22 15:00:55 +03:00
Gokcehan
0482340d5e
keep trailing backslash during reverse escape
2019-10-25 20:50:00 +03:00
Gokcehan
7a4d1cc275
escape special characters with backslash
2019-10-25 20:17:49 +03:00
Gokcehan
90e3a22dc8
add a 'B' suffix to files under a thousand bytes
...
Mentioned in #49 .
2017-01-08 19:24:28 +03:00
Gokcehan
af113e71ef
fill with spaces instead of null chars
2016-12-22 22:58:55 +03:00
Gokcehan
a717c31ca1
cleanup
2016-12-18 21:34:41 +03:00
Gokcehan
8ae5f838c7
simplify number extraction using regexp
2016-12-18 00:02:30 +03:00
Gokcehan
225bd5b49c
fix number extraction ending with number
2016-12-03 00:38:23 +03:00
Gokcehan
932e644c93
handle escapes in completions
2016-12-03 00:28:25 +03:00
Gokcehan
a2cc32c908
implement a send command for remove commands
...
Mentioned in #36 .
2016-11-06 17:06:25 +03:00
Gokcehan
667253906b
handle unicode in the ui
...
Mentioned in #30 and #32 .
2016-10-20 23:45:06 +03:00
Gokcehan
e45562b282
add misc tests
2016-08-14 22:56:55 +03:00