Joe Lim
3637f5f3f8
fix!: use int64 for file sizes ( #2397 )
...
* fix!: use `int64` for file sizes
Unfortunately Go templates cannot unconditionally dereference pointers,
so we use a magic value of -1 instead of a nil pointer to indicate a
file size that doesn't exist. This also means having to change
surrounding code, for example the `humanize` function.
* Update `CHANGELOG.md`
2026-02-26 00:38:09 +11:00
CatsDeservePets
9ab0fd4de0
fix: improve preview message alignment ( #2400 )
...
* fix: improve message alignment
* docs: update `CHANGELOG.md`
2026-02-24 00:23:47 +01:00
CatsDeservePets
34ed26821c
docs: annotate ui struct fields ( #2402 )
2026-02-22 22:01:45 +01:00
CatsDeservePets
59494d1ff8
feat: add numbercursorfmt option ( #2395 )
...
* feat: add `numbercursorfmt` option
* docs: add documentation
* docs: update `CHANGELOG.md`
2026-02-18 15:18:28 +01:00
CatsDeservePets
a32371088b
feat: add All field to ruler file ( #2376 )
2026-02-08 07:23:54 +01:00
Joe Lim
78fe1bd391
fix: use ! as error indicator for dircounts ( #2372 )
...
* fix: use `!` as error indicator for dircounts
* Update `CHANGELOG.md`
2026-02-07 18:41:04 +11:00
Joe Lim
1ed9e96aa2
fix: clean preview if directory is empty ( #2369 )
...
* fix: clean preview if directory is empty
* Update `CHANGELOG.md`
2026-02-07 18:27:24 +11:00
CatsDeservePets
60deb6e43b
docs: normalize Go doc comments ( #2359 )
2026-01-25 01:14:27 +01:00
Joe Lim
c7be3c4434
refactor: use *uint64 for dir size and count ( #2353 )
...
* refactor: use `*uint64` for dir size and count
* no dircount should be ordered before dircount of 0
2026-01-22 13:11:18 +11:00
SPFab
fa8e3788de
Show directory size in ruler ( #2343 )
...
* Added dirSize to Size field and changed humanize function accordingly
* Seperated size into own fields and changed type to use pointers
* Added Documentation and Changelog
2026-01-20 13:01:23 +11:00
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
48689f9eab
docs: improve code comments ( #2349 )
...
* docs: annotate `app` struct fields
* docs: annotate `file` struct fields
* docs: improve existing code comments
* docs: add new code comments
2026-01-14 00:16:23 +01:00
Joe Lim
8ed089cc25
feat!: Load ruler file dynamically ( #2338 )
...
* feat!: Load ruler file dynamically
* Add documentation
* Fix bug with custom filename
* Update `CHANGELOG.md`
* Add docs for `statfmt`
2026-01-12 17:48:19 +11:00
SPFab
190f5369a2
feat: add new fields for the ruler file ( #2329 )
2026-01-11 18:58:37 +01:00
Joe Lim
733e8d6b55
refactor: remove init flag ( #2313 )
...
* refactor: remove init flag
* fix bugs
* cleanup of `addcustominfo`
* use `getDir` for accessing directories from cache
* Avoid trimming `addcustominfo` value
2026-01-05 13:15:09 +11:00
CatsDeservePets
e1016bbd74
refactor: adjust number column alignment ( #2331 )
2026-01-01 01:38:08 +01:00
CatsDeservePets and Joe Lim
165c25b743
feat: add mergeindicators option ( #2330 )
...
* feat: add `mergeindicators` option
* docs: update `CHANGELOG.md`
* docs: add documentation
* style: fix typo
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
---------
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
2025-12-31 07:36:31 +01:00
CatsDeservePets
eb01cb7c7b
style: deduplicate types in function signatures ( #2322 )
2025-12-27 06:24:15 +01:00
CatsDeservePets
d8b9026ef2
style: combine related var declarations ( #2321 )
2025-12-27 05:27:16 +01:00
Joe Lim
cdbaa972a6
fix: reset sixel state if new file is loading ( #2301 )
...
* fix: reset sixel state if new file is loading
* Update `CHANGELOG.md`
2025-12-13 17:49:19 +11:00
Joe Lim
acb85d65c8
refactor: avoid storing current preview separately ( #2300 )
2025-12-12 16:59:32 +11:00
Joe Lim
6402bafb9a
refactor: Move gEscapeCode to where it is used ( #2285 )
2025-12-02 18:23:11 +11:00
CatsDeservePets
6e804b1ade
Use ls-style permission strings ( #2270 )
2025-11-18 01:55:33 +01:00
Carlo Teubner
8da478bb86
Check errors and enable errcheck in lint config ( #2242 )
2025-11-10 10:17:18 +01:00
CatsDeservePets
0283b2a71a
Hide already typed keys inside showbinds menu ( #2249 )
2025-11-07 02:08:52 +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
Joe Lim
928bf9e3bd
Refactor previewable logic ( #2235 )
2025-10-28 15:27:59 +11:00
Carlo Teubner
fc4b3637bb
Miscellaneous tweaks and fixes ( #2223 )
...
* Miscellaneous tweaks and fixes
Mostly these were found by running golangci-lint with a bunch of linters
(more than the default set) enabled.
* fmt.Fprint -> fmt.Fprintln where possible
* Remove "nolint:staticcheck" for now
2025-10-28 15:10:32 +11:00
Joe Lim
b12cb33918
Prevent window height from being negative ( #2232 )
2025-10-27 20:31:00 +11:00
CatsDeservePets
765a331977
Explicitly hide mode in showbinds menu ( #2228 )
2025-10-26 21:55:14 +01:00
CatsDeservePets
ff169a80b9
Hide mode when listing single-mode binds ( #2226 )
2025-10-26 09:43:04 +01:00
Joe Lim
a7f7e84e81
Handle nav resizes ( #2218 )
...
* Handle nav resizes
* Update `CHANGELOG.md`
2025-10-21 21:46:19 +11:00
Joe Lim and CatsDeservePets
7b6b6da100
Add ruler file for customizing the ruler ( #2186 )
...
* Add ruler file for customizing the ruler
* Update `CHANGELOG.md`
* Show ruler errors instead of logging them
* Allow multiple sections
* Show syntax errors for ruler file
* Add line percentage
* Add lower/upper functions
* Add back truncation
* Use fmt options
---------
Co-authored-by: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com >
2025-10-21 20:04:05 +11:00
CatsDeservePets
06376f9089
Fix spacing for empty custom info ( #2208 )
2025-10-18 19:28:50 +02:00
CatsDeservePets
4bfd3c8ac5
Silence gopls hints ( #2195 )
2025-10-09 02:18:16 +02:00
Joe Lim
89ff7b0203
Implement smarter history navigation ( #2161 )
...
* Remove unnecessary space in history file
* Refactor history navigation
* Implement smarter history navigation
* Skip duplicate commands in history navigation
* Return to Normal mode if it started from there
* Reset history state when changing prompt
* Update documentation
2025-09-19 19:44:43 +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
8dad85197f
Remove padding for text previews ( #2131 )
...
* Remove offset for text previews
* Update `CHANGELOG.md`
* reword
2025-09-04 15:38:57 +10:00
Joe Lim
7297e4f522
Add options for customizing the appearance of the menu ( #2123 )
...
* Refactor for loop
* Save menu selection
* Add options to customize menu style
* Add documentation
2025-08-27 19:49:07 +10:00
Joe Lim
f2d2bb0f2c
Draw menu over sixel images if they overlap ( #2122 )
...
* Refactor menu drawing code
* Fix menu and sixel overlap
2025-08-27 17:51:47 +10:00
Joe Lim
8150586bc2
Clear error messages after a command runs successfully ( #2117 )
...
* Draw stat info on demand
* Remove loadfileinfo function
* Fix clearmsg bug when opening directories
* Move visual code
2025-08-26 17:48:15 +10:00
Joe Lim
8f97bf806a
Add unit tests for escape sequence parse functions ( #2116 )
2025-08-26 14:49:33 +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
f716ce1b0f
Show progress immediately when copying files ( #2093 )
2025-08-12 14:20:19 +10:00
Joe Lim
edc5d977cd
Replace save buffer with clipboard struct ( #2082 )
2025-08-07 19:27:17 +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
Joe Lim
0a05a7106d
Dircounts should have a width of 5 when displaying ( #2072 )
2025-07-31 17:12:01 +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
Joe Lim
5e24fd93d2
Ignore pasted input while in Normal mode ( #2059 )
2025-07-22 11:53:51 +10:00
Joe Lim
041dfcc073
Revert "Respect symlinks when tagging files ( #1997 )" ( #2055 )
...
This reverts commit fe3a97c5d0 .
2025-07-20 19:21:13 +10:00