Commit Graph
1357 Commits
Author SHA1 Message Date
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
CatsDeservePets 44483d7872 Change order of gCmdWords (#2073)
* Special commands

* Normal mode commands

* Visual mode commands

* Command-line mode commands
2025-08-04 15:54:57 +10:00
Joe Lim 0a05a7106d Dircounts should have a width of 5 when displaying (#2072) 2025-07-31 17:12:01 +10:00
Joe Lim b0c3f8dbd7 Use the next upcoming version when generating lf.1 (#2068)
* Update man page to include version

* Use next version instead
2025-07-26 23:24:05 +10:00
Joe Lim d385c9bef8 Update CHANGELOG.md (#2067) 2025-07-26 22:44:42 +10:00
Andrew Voynov f6738eeda5 Update CONTRIBUTING.md for the updated gen/doc.sh (#2066) 2025-07-26 22:27:32 +10:00
Andrew Voynov a01e80b6ff Improve gen shell scripts (#2064)
* Improve gen shell scripts

* Remove unused gen/doc.sh

* Fix generated version in docs

* Make OCI program usage transparent

podman/docker/* as well as root(less) mode is detected automatically.
Formatted with 4 space indentation, added Vim modeline for convenience.

* Rename gen/doc{-with-docker,}.sh

Since the script is no longer docker-specific, it's better to drop the
more specific name.

* Add Vim modeline to build.sh and xbuild.sh
2025-07-26 22:00:03 +10:00
Joe Lim 46cc577d4a Cleanup (#2065) 2025-07-26 21:42:52 +10:00
CatsDeservePetsandJoe Lim ab662e6f33 Add filtermethod and searchmethod options (#2058)
* Add `filtermethod` and `searchmethod` options

* Rename `re` to `regex`

* Remove `globfilter` and `globsearch` options

* Add completions for `filtermethod` and `searchmethod`

* Update documentation

* Remove unnecessary if statement

* Fix unrelated typo

* Put options in alphabetical order

* Fix typo in documentation

* Rename variable for consistency

---------

Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
2025-07-26 21:25:45 +10:00
Andrew VoynovandJoe 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 d60acef469 Refactor completion logic (#2061) 2025-07-22 22:13:11 +10:00
Joe Lim 5e24fd93d2 Ignore pasted input while in Normal mode (#2059) 2025-07-22 11:53:51 +10:00
Joe Lim 5b2d5ad99d Support wrapping while in Visual mode (#2056) 2025-07-20 19:54:30 +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
CatsDeservePets c7b59d27ce Capitalize modes in code comments and documentation (#2054)
* Capitalize modes in documentation

* Capitalize modes in code comments
2025-07-20 12:08:24 +10:00
CatsDeservePets f27d82b391 Silence gopls hints (#2053) 2025-07-20 12:05:27 +10:00
Joe Lim 82a983d934 Separate config and data files for Windows (#2051) 2025-07-19 21:32:12 +10:00
Joe Lim 93400c11a0 Misc improvements for nav.checkDir (#2050)
* Misc improvements to `nav.checkDir`

* Fix case where `dircache` is disabled

* More fixes
2025-07-19 16:04:44 +10:00
Joe Lim c31b92491f Automatically load dircounts after enabling it (#2049) 2025-07-19 14:35:13 +10:00
dependabot[bot] f2d5d08952 Bump golang.org/x/text from 0.26.0 to 0.27.0 (#2036)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.26.0 to 0.27.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-version: 0.27.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-07-19 13:18:19 +10:00
dependabot[bot] 2788bc9b7f Bump golang.org/x/term from 0.32.0 to 0.33.0 (#2038)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/term/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-version: 0.33.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-07-19 13:08:42 +10:00
CatsDeservePets 87c994b9de Support btime in sortby and info (#2042)
* Add support for `btime` in `sortby` and `info`

* Update documentation

* Minor design improvements
2025-07-19 13:06:34 +10:00
CatsDeservePets 4758ef621c Respect dircounts when sorting by size (#668) (#2025)
* Respect `dircounts` when sorting by size

* Avoid mixing file sizes and counts when sorting by size

* Update documentation for sorting
2025-07-19 13:01:37 +10:00
Joe Lim e5c2cc44d8 Prepare for r36 release (#2044) r36 2025-07-18 11:52:31 +10:00
CatsDeservePets bfea67dec6 Don't export nkeys and vkeys as environment variables (#2039) 2025-07-18 01:47:30 +10:00
CatsDeservePets f40c626c4d Additions to visual-mode (#2035)
* Add `visual-unselect` command

* Add `fv` environment variable
2025-07-08 08:46:26 +10:00
CatsDeservePets c2049e05c2 Fix setExpr for visualfmt and documentation (#2033)
* Fix documentation for visual commands

* Fix missing `visualfmt`
2025-07-07 10:17:38 +10:00
Joe Lim 7fd12a2a70 Capitalize modes in CHANGELOG.md and documentation (#2031) 2025-07-05 15:11:16 +10:00
Joe Lim 397f75e4a5 Add CHANGELOG.md (#2027) 2025-07-05 11:35:49 +10:00
CatsDeservePets cb8026d627 Add visual-mode (#2021)
- Add functionality for visually selecting files
- Add keymap for Visual mode, and supporting `nmap` and `vmap` commands
- Add mode column for `maps` command, also add `nmaps` and `vmaps` commands
- Add `visualfmt` option for configuring appearance for the visual selection
- Add `%m/%M` placeholders for displaying the mode
- Add marker indicating the number of visually selected files in the ruler
- Add `visual` as an identifier when exporting `lf_mode`
- Remove experimental `invert-below` command
2025-07-05 11:33:45 +10:00
veltza bf314a32f4 Fix broken sixels in tmux (#2030)
Fixes #2026
2025-07-04 22:21:27 +10:00
dependabot[bot] 404050af30 Bump dominikh/staticcheck-action from 1.3.1 to 1.4.0 (#2029)
Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/dominikh/staticcheck-action/releases)
- [Changelog](https://github.com/dominikh/staticcheck-action/blob/master/CHANGES.md)
- [Commits](https://github.com/dominikh/staticcheck-action/compare/v1.3.1...v1.4.0)

---
updated-dependencies:
- dependency-name: dominikh/staticcheck-action
  dependency-version: 1.4.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-07-04 13:24:15 +10:00
Joe Lim e47b2fda08 Fix crash when pasting into directory without permissions (#2024) 2025-07-02 11:08:24 +10:00
CatsDeservePets 0639e71171 Update examples for on-load (#2020) 2025-06-26 16:09:11 +10:00
CatsDeservePets e47600e428 Add sorting by custom column (#2019) 2025-06-26 11:12:58 +10:00
Joe Lim 017951fd6b Bump pandoc (#2017) 2025-06-24 12:02:11 +10:00