Joe Lim
b3b3ad8228
Fix copy progress bar missing after first time ( #2181 )
...
* Fix copy progress bar missing after first time
* Update `CHANGELOG.md`
2025-09-23 13:29:34 +10:00
Joe Lim
29627d455d
Update CHANGELOG.md ( #2178 )
2025-09-20 18:33:07 +10: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
b71910cf51
Update CHANGELOG.md and some cleanup ( #2176 )
2025-09-20 15:11:25 +10:00
Carlo Teubner
f21e553557
shell-pipe: fix excessive waiting for output ( #2155 )
...
* shell-pipe: fix excessive waiting for output
There are some programs that keep their stdin/stdout/stderr open beyond
their process lifetime. An example is "wl-copy", which forks off into
the background and keeps stderr open.
Before this change, the behaviour of lf's shell-pipe (aka %) was to
first wait for an EOF from the stdout/stderr pipe of the process, and
only then to wait for the process to exit.
As a result, a command such as "%wl-copy foo" never stops showing the
">" command prefix indicator.
Fix this, by waiting for the EOF from the pipe and the process exit in
parallel, as well as setting the "exec.Cmd.WaitDelay" field.
(For some reason, the fix works even without setting WaitDelay, and it
also doesn't seem to wait for one second; I haven't investigated why
this is; the behaviour is an improvement either way.)
Additionally, improve handling errors when reading from the
stdout/stderr pipe:
- Always give up reading from the pipe, regardless of error kind
- Unless it is an expected error (EOF or (now) ErrClosed), log the error
- Compare errors using "errors.Is"
* shell-pipe: use os.Pipe not Cmd.StdoutPipe etc.
The source-code comment explains why.
Also remove WaitDelay, which wasn't working, and which we probably don't
want anyway; and fix some insufficient error handling (missing return).
2025-09-20 14:47:16 +10:00
Joe Lim
b0932b02c2
Fix message clear bug during shell-pipe command ( #2175 )
2025-09-20 14:43:36 +10:00
Joe Lim
73d7837cfc
Use parallel builds for release pipeline ( #2172 )
2025-09-20 01:37:34 +10:00
Joe Lim
f4ae38f575
Run cross build in parallel for CI ( #2171 )
...
* Run cross build in parallel for CI
* Intentional failure
* Revert "Intentional failure"
This reverts commit 27521305d7 .
* reorder
* Rename step
2025-09-20 00:31:04 +10:00
Joe Lim
edf72c6304
Use version in go.mod for CI build ( #2170 )
...
* Use version in `go.mod` for CI
* reorder
2025-09-19 23:08:47 +10:00
Joe Lim
38bcd0ba3d
Format yaml files ( #2169 )
2025-09-19 22:57:38 +10:00
Joe Lim
d3816c6d6a
Clear message after running cmap commands ( #2168 )
2025-09-19 20:45:11 +10:00
Joe Lim
2adac2e155
Refactor shell-pipe reader ( #2167 )
2025-09-19 20:22:49 +10:00
Joe Lim
1f8fb52889
Update CHANGELOG.md ( #2166 )
...
* Update `CHANGELOG.md`
* reword
2025-09-19 20:03:50 +10: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
f69aec80b1
Fix string representation of expr objects ( #2165 )
...
* Fix string representation of `expr` objects
* Add unit tests
2025-09-19 16:35:59 +10:00
CatsDeservePets
5aeb9a490b
Add cmd-menu-discard command ( #2146 )
...
* [WIP] Add `cmd-menu-discard` command
* Add `compmenu` to $lf_mode
* Add `cmd-menu-discard` command
* Update documentation
2025-09-19 14:58:02 +10:00
Joe Lim
9e5f6af3b7
Bump go version to 1.24 ( #2164 )
2025-09-19 14:44:40 +10:00
Joe Lim
49f2a7c6c4
Prepare for r38 release ( #2163 )
r38
2025-09-19 14:18:55 +10:00
CatsDeservePets
d81c84bbb9
Update docs ( #2160 )
2025-09-19 03:39:15 +10:00
CatsDeservePets
c5075b6455
Update documentation ( #2149 )
...
* Fix typos
* Unify spelling
* Improve grammar and wording
* Update usage of `filename` and `file name`
* Prefer `without` over `w/o`
* Generate docs
2025-09-18 13:41:24 +10:00
Joe Lim
d2e125d264
Update CHANGELOG.md ( #2157 )
2025-09-17 15:32:49 +10:00
CatsDeservePets
d2bcae2943
Unify usage and synopsis ( #2153 )
2025-09-17 15:17:21 +10:00
CatsDeservePets
f050abc57c
Fix: UI glitch with completion menu #2139 ( #2140 )
2025-09-10 12:28:33 +10:00
Joe Lim
9c0dc813a3
Update CHANGELOG.md ( #2143 )
2025-09-09 16:28:03 +10:00
Carlo Teubner
995413426c
lf -remote: work around busyloop issue on Linux ( #2138 )
...
I noticed that running ":maps" in lf on Linux uses a whole CPU. I
managed to track it down to a bug in the Go standard library, for which
I entered https://github.com/golang/go/issues/75304 .
Until that is fixed, it seems worth having a workaround for this.
2025-09-09 16:01:22 +10:00
CatsDeservePets
b73daad7cc
Fix typo in documentation ( #2141 )
2025-09-09 13:50:08 +10:00
CatsDeservePets
f94c62661a
Update documentation to mention PowerShell config ( #2135 )
2025-09-08 14:03:04 +10:00
dependabot[bot]
168a64a288
Bump actions/setup-go from 5 to 6 ( #2133 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 00:30:24 +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
d079cc8719
Fix copy progress bug when copying files with 0 size ( #2130 )
...
* Fix copy progress when copying files with 0 size
* typo
* Update `CHANGELOG.md`
2025-09-04 14:44:29 +10:00
Joe Lim
f26b30be18
Rename doc command to help ( #2125 )
...
* Rename `doc` command to `help`
* Update `CHANGELOG.md`
2025-08-28 14:47:36 +10:00
Joe Lim
ad5af1b2c7
Update CHANGELOG.md ( #2124 )
2025-08-27 20:01:11 +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
75334c25a5
Use ratio for more accurate humanize implementation ( #2121 )
2025-08-27 13:25:32 +10:00
Joe Lim
ae583e96d3
Support XDG_CONFIG_HOME/XDG_DATA_HOME on Windows ( #2119 )
2025-08-26 22:55:45 +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
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
04afd78e65
Refactor dir.sort function ( #2115 )
...
* Refactor filtering code in `dir.sort` function
* Refactor sorting code in `dir.sort` function
* Fix bug
2025-08-26 14:16:54 +10:00
Joe Lim
4384e520b5
Update CONTRIBUTING.md ( #2114 )
2025-08-26 03:29:52 +10:00
Joe Lim
e60c055be3
Remove experimental locale feature ( #2111 )
2025-08-26 01:41:01 +10:00
Joe Lim
06955cbacc
Remove dircache option ( #2110 )
2025-08-25 23:06:30 +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
aba73884e3
Remove deprecated globfilter/globsearch options ( #2108 )
2025-08-25 15:14:28 +10:00
dependabot[bot]
5a4b0881d7
Bump github.com/gdamore/tcell/v2 from 2.8.1 to 2.9.0 ( #2106 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.8.1 to 2.9.0.
- [Release notes](https://github.com/gdamore/tcell/releases )
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md )
- [Commits](https://github.com/gdamore/tcell/compare/v2.8.1...v2.9.0 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
dependency-version: 2.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-25 15:06:06 +10:00
Joe Lim
6c13807a70
Prepare for r37 release ( #2107 )
r37
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
dependabot[bot]
17b576ead5
Bump actions/checkout from 4 to 5 ( #2097 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-13 12:44:28 +10:00