Commit Graph
1542 Commits
Author SHA1 Message Date
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
Joe Lim 2880cc92ed Remove explicit token in release workflow (#2096) 2025-08-12 16:07:47 +10:00
Joe Lim c9b023f546 Update CHANGELOG.md (#2094) 2025-08-12 14:47:17 +10:00
Joe Lim f716ce1b0f Show progress immediately when copying files (#2093) 2025-08-12 14:20:19 +10:00
Joe Lim 651264e4de Update CHANGELOG.md (#2092) 2025-08-11 21:10:40 +10:00
dependabot[bot] 3ac42fe1ad Bump golang.org/x/term from 0.33.0 to 0.34.0 (#2086)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/term/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.34.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-08 13:35:45 +10:00
dependabot[bot] 0d005171f3 Bump golang.org/x/text from 0.27.0 to 0.28.0 (#2087)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-version: 0.28.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-08 13:29:58 +10:00
Joe Lim 56c28828f2 Fix multiple errors when moving or copying (#2089)
* Fix multiple errors when moving

* Fix multiple errors when copying
2025-08-08 13:25:03 +10:00
Joe Lim b38693f1c9 Fix missing errcount when moving cross devices fails (#2085)
* Fix missing errcount when moving cross devices fails

* Included count in error message
2025-08-08 11:46:07 +10:00
Joe Lim edc5d977cd Replace save buffer with clipboard struct (#2082) 2025-08-07 19:27:17 +10:00
Joe Lim 5ad11bdc84 Update CHANGELOG.md (#2080) 2025-08-07 16:35:23 +10:00
Joe Lim 02156a3806 Export command line flags as environment variables (#2079) 2025-08-07 15:59:13 +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 88a599643d Pass all files for on-load hook command (#2077) 2025-08-06 19:23:40 +10:00
Joe Lim 9183e81f7f Reorder commands to be consistent with documentation (#2075) 2025-08-04 19:31:35 +10:00
Joe Lim 47b3bc5617 Sort options in alphabetical order (#2074)
* Sort options in alphabetical order

* Sort `eval.go` too
2025-08-04 16:26:33 +10:00