Joe Lim
df06e7250e
Display errors in config files ( #2246 )
...
* Display errors in config files
* Update `CHANGELOG.md`
* `clearmaps` should be a silent command
2025-11-01 18:52:15 +11:00
Joe Lim
5cdb6edd93
Fix implementation of silent commands ( #2245 )
...
* Fix implementation of silent commands
* Update `CHANGELOG.md`
2025-11-01 18:34:09 +11:00
Joe Lim
95711c39bf
Deduplicate preload updates ( #2244 )
2025-11-01 18:03:26 +11:00
Joe Lim
5ae9a4cd81
Debounce resize triggers when preloading ( #2240 )
...
* Debounce resize triggers when preloading
* Clear all previews in cache
2025-10-30 13:52:29 +11:00
Carlo Teubner
49984bb606
.github: staticcheck-action → golangci-lint-action ( #2238 )
...
golangci-lint bundles many Go linters
(https://golangci-lint.run/docs/linters/ ). For now, we are going with its
default set of linters, which includes staticcheck, but with the
errcheck linter explicitly excluded because it generates a lot of lints;
I plan to address those and add errcheck in a subsequent contribution.
2025-10-29 11:23:52 +11:00
Joe Lim
e158c344d2
Fix preload crash ( #2237 )
2025-10-28 19:01:24 +11:00
Joe Lim
fc2b2f42a2
Avoid deadlock when preloading ( #2236 )
...
* Fix preload deadlock
* Add experimental flag
2025-10-28 15:50:04 +11: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
Joe Lim
7776e73334
Fix check for invalid filters ( #2231 )
...
* Fix check for invalid filters
* Update `CHANGELOG.md`
2025-10-27 19:20:21 +11:00
dependabot[bot]
887da5d5e4
Bump actions/download-artifact from 5 to 6 ( #2230 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
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-10-27 16:58:11 +11:00
dependabot[bot]
0e3912b151
Bump actions/upload-artifact from 4 to 5 ( #2229 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
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-10-27 16:57:55 +11:00
CatsDeservePets
765a331977
Explicitly hide mode in showbinds menu ( #2228 )
2025-10-26 21:55:14 +01:00
CatsDeservePets
00ee9ee81a
Update CHANGELOG.md ( #2227 )
2025-10-26 09:54:20 +01:00
CatsDeservePets
ff169a80b9
Hide mode when listing single-mode binds ( #2226 )
2025-10-26 09:43:04 +01:00
Joe Lim
d8a23be926
Add option for preloading file previews ( #2206 )
...
* Initial commit
* Add documentation
* Fix nav volatile preview state
* Use `previewer` for both preloading and previewing
* Generate documentation
* Update `CHANGELOG.md`
2025-10-24 13:26:34 +11:00
CatsDeservePets
56fd6c27ba
Add image to README.md ( #2222 )
...
Add a new image for showcasing features.
2025-10-23 23:40:10 +02:00
Joe Lim
2563e6bef2
Revert "Add documentation"
...
This reverts commit 56489403f6 .
2025-10-23 13:49:39 +11:00
Joe Lim
56489403f6
Add documentation
2025-10-22 13:04:42 +11: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
Joe Lim
5d93764c79
Fix CHANGELOG.md ( #2217 )
2025-10-21 17:22:57 +11:00
CatsDeservePets
512da3152d
Rephrase some log messages ( #2216 )
2025-10-21 00:25:25 +02:00
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