Commit Graph
1422 Commits
Author SHA1 Message Date
CatsDeservePets cc112beb78 Append logs instead instead overwriting (#2215) 2025-10-20 23:48:44 +02:00
CatsDeservePets bbfef3e832 Update CHANGELOG.md (#2214) 2025-10-20 17:08:38 +02:00
CatsDeservePets 35c883e438 Fix overscroll related to drawbox (#2210) 2025-10-20 16:52:56 +02:00
CatsDeservePets a949d4a5d1 Unify [y/N] prompts (#2212) 2025-10-19 05:51:56 +02:00
CatsDeservePets 8a8f8180af Add file completions for cleaner and previewer (#2211) 2025-10-19 04:18:01 +02:00
CatsDeservePets 06376f9089 Fix spacing for empty custom info (#2208) 2025-10-18 19:28:50 +02:00
CatsDeservePets f74cf581b3 Add usage to documentation (#2200) 2025-10-17 04:40:07 +02:00
dependabot[bot] c84e445662 Bump golang.org/x/term from 0.35.0 to 0.36.0 (#2196)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/term/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.36.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-10-09 23:01:19 +02:00
CatsDeservePets 2fb6cb2e17 Update CHANGELOG.md (#2199) 2025-10-09 22:58:31 +02:00
CatsDeservePets 9eb0872588 Add file completions for addcustominfo (#2198) 2025-10-09 22:28:57 +02:00
CatsDeservePets 4bfd3c8ac5 Silence gopls hints (#2195) 2025-10-09 02:18:16 +02:00
Joe Lim 4dc3d37684 Show error if source command fails (#2189)
* Show error if `source` command fails

* Update `CHANGELOG.md`

* reword
2025-10-03 12:19:25 +10:00
dependabot[bot] 76eb241023 Bump github.com/mattn/go-runewidth from 0.0.17 to 0.0.19 (#2187)
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.17 to 0.0.19.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.17...v0.0.19)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-version: 0.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-02 00:06:24 +10:00
CatsDeservePets 0fe6a3b20f Fix outdated documentation (#2185) 2025-09-29 23:23:39 +10:00
dependabot[bot] 72526aa1f5 Bump github.com/mattn/go-runewidth from 0.0.16 to 0.0.17 (#2183)
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.16 to 0.0.17.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.16...v0.0.17)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-version: 0.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-27 16:38:24 +10:00
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