David Pedersen
b5b7b84568
Bump Go to 1.23 ( #1832 )
2024-11-04 18:01:08 +11:00
David Pedersen
fa2fa19ab0
Small optimizations for opts.go ( #1831 )
...
* Small optimizations for opts.go
* Add back all opts
2024-11-04 09:51:38 +11:00
David Pedersen
0f48f36b0f
Small optimizations and cleanups ( #1830 )
2024-11-04 00:25:05 +11:00
David Pedersen
f5a0e655a1
Small optimizations for os.go ( #1829 )
...
* Small optimizations for os.go
* Cleanup isHidden check further
2024-11-03 21:11:00 +11:00
David Pedersen
4408f37a9b
Hardcode diacritics instead of generating during runtime ( #1827 )
...
* Hardcode diacritics instead of generating during runtime
* Remove redundant test
2024-11-03 18:21:33 +11:00
David Pedersen
1b1628c378
Small optimizations for ui.go ( #1826 )
2024-11-03 03:14:08 +11:00
Joe Lim
dda8e88aaf
Cleanup doc ( #1823 )
2024-11-02 00:28:54 +11:00
陆离
3f63bc980f
Add option to sort base on certain locale. ( #1818 )
...
* Add support for localized sorting
* Switch go-locale module; Use collate option for natural sorting
* Doc and error message improvement
* Simplify predicated checking of localized sorting.
* Improve error handling of `set locale` command
2024-11-02 00:12:21 +11:00
dependabot[bot]
4079aead14
Bump github.com/fsnotify/fsnotify from 1.7.0 to 1.8.0 ( #1821 )
...
Bumps [github.com/fsnotify/fsnotify](https://github.com/fsnotify/fsnotify ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/fsnotify/fsnotify/releases )
- [Changelog](https://github.com/fsnotify/fsnotify/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fsnotify/fsnotify/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/fsnotify/fsnotify
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>
2024-11-02 00:05:18 +11:00
Joe Lim
f96a070ff0
Update doc ( #1822 )
r33
2024-11-01 23:38:01 +11:00
Joe Lim
78413a6c9e
cleanup ( #1816 )
2024-10-22 23:54:49 +11:00
yarik and yarik
6cd51210e3
Add option to hide listBinds when pressing keys ( #1815 )
...
* add drawbinds option
* rename drawbinds to showbinds and change its place in docs
* minor changes in wording of showbinds option
* fix missing newlines
---------
Co-authored-by: yarik <dazzywi@github.com >
2024-10-22 23:45:48 +11:00
zenyu
440c258287
Remove redundant initialization for marks and tags ( #1811 )
2024-10-15 10:14:58 +11:00
Joe Lim
4de690db5e
Clear fileinfo if the directory is empty ( #1808 )
2024-10-11 10:18:13 +11:00
Joe Lim
f066df674a
Clear error when opening files ( #1809 )
2024-10-11 10:15:33 +11:00
dependabot[bot]
382095bfb5
Bump golang.org/x/term from 0.24.0 to 0.25.0 ( #1803 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/term/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-10-08 21:04:23 +11:00
Joe Lim
0d4b545390
Remove unnecessary code when sorting by extension ( #1805 )
2024-10-08 20:54:12 +11:00
Oscar Wallberg
1c56620f57
feat: add mode, user and group info parameters ( #1799 )
...
* feat: add mode, user and group info parameters
* fix: correct function names
* fix: change mode to perm
2024-09-14 00:25:26 +10:00
dependabot[bot]
e9cb31f2eb
Bump golang.org/x/term from 0.23.0 to 0.24.0 ( #1797 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/term/compare/v0.23.0...v0.24.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-09-05 18:15:23 +10:00
Joe Lim
505c4ef6c0
Display line numbers on the main window only ( #1789 )
2024-08-10 22:39:21 +10:00
dependabot[bot]
efde1a2ef3
Bump golang.org/x/sys from 0.23.0 to 0.24.0 ( #1788 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.23.0...v0.24.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
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>
2024-08-09 23:14:30 +10:00
dependabot[bot]
0f8359f301
Bump golang.org/x/term from 0.22.0 to 0.23.0 ( #1785 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/term/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-08-07 16:29:22 +10:00
dependabot[bot]
b258d8fbf0
Bump golang.org/x/sys from 0.22.0 to 0.23.0 ( #1783 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/sys/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
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>
2024-08-06 09:32:08 +10:00
Joe Lim
c2224cb97a
Fix printing tags if it contains color ( #1782 )
2024-07-30 14:46:42 +10:00
dependabot[bot]
534710dcc7
Bump github.com/mattn/go-runewidth from 0.0.15 to 0.0.16 ( #1779 )
...
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth ) from 0.0.15 to 0.0.16.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.15...v0.0.16 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
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>
2024-07-23 13:37:46 +10:00
Joe Lim
b819d90be2
Fix clipped icon colors in Windows Terminal ( #1777 )
...
* Fix clipped icon colors in Windows Terminal
* Only print components if necessary
2024-07-16 10:30:08 +10:00
Jaehaks
26dc2f1ebd
fix(lfcd.cmd) : cd to other drive / fix non-english encoding ( #1772 )
...
1) add `/d` to cd command for moving other drive
2) change code page number to read non-english output of `lf -print-last-dir` although current code page is 949
2024-07-08 10:13:42 +10:00
Joe Lim
ddea7bff1b
Remove deprecated ruler option ( #1766 )
...
* Remove deprecated `ruler` option
* Remove unused variable
2024-07-08 10:09:13 +10:00
dependabot[bot]
b1f3dbe5ed
Bump golang.org/x/term from 0.21.0 to 0.22.0 ( #1771 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/term/compare/v0.21.0...v0.22.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-07-05 17:46:42 +10:00
Joe Lim
e9faf966a0
Replace hidecursorinactive with hook commands ( #1763 )
...
* Replace `hidecursorinactive` with hook commands
* Remove `focusreport` setting
2024-07-01 12:17:22 +10:00
Joe Lim
67038762cc
Invalidate cache for recreated files ( #1756 )
...
* Invalidate cache for recreated files
* Sanity check for file updates
* Prevent load when watching
* Revert "Prevent load when watching"
This reverts commit 4cf4629a87 .
* Load is redundant when watch is enabled
2024-06-23 10:17:21 +10:00
Joe Lim
38ddfea9a0
Update file info for chmod events with watch mode ( #1758 )
2024-06-23 08:21:42 +10:00
Joe Lim
adaf464fea
Update documentation ( #1755 )
2024-06-22 16:38:52 +10:00
Joe Lim
e350e0b735
Use fsnotify for watching file updates ( #1667 )
...
* Add watch option
* Implement directory changes
* Implement file changes
* Fix for dircounts
* Remove test code
* fix dircounts
* Set watches on cd instead of select
* Set watches on startup too
* Watch newly created directories
* Add chmod events
* Avoid using multiple threads
Seems to cause issues if there are multiple threads and each one of them
is loading the same new file, in which case there is a race condition.
* Reduce logic when updating files
* Throttle write updates
* Use timer instead of ticker
* Fix file write out-of-band timing issue
* Fix cursor when renaming
* Prevent file showing at bottom during rename
* Watch new directory when created
* Revert "Watch new directory when created"
This reverts commit 6856804313 .
* Reapply "Watch new directory when created"
This reverts commit 1c29f34981 .
* Try batching renew updates
* Big rewrite
* Reload individual directories
* Change delay to 100 milliseconds
* Use separate goroutine for loading files/dirs
* Fix filter resetting
* Add documentation
2024-06-22 16:29:05 +10:00
Joe Lim
73030b5607
Prevent preview flicker when directories are reloaded ( #1697 )
2024-06-17 19:27:58 +10:00
Joe Lim
8d7b192340
Prevent image preview flicker when deleting files ( #1691 )
2024-06-17 19:19:10 +10:00
Catalin Ancutei
791341990c
Taking hidden files parameter into account in windows ( #1684 )
...
* taking hidden files parameter into account
* Updated doc and removed irelevant linter comment
* fixed doc
* fixed doc again
* Defaulted to empty string on windows
2024-06-17 19:03:29 +10:00
MahouShoujoMivutilde
2d3cc97f78
Use 32KB buffer for copyFile() (reduces copy time by 30%) ( #1749 )
...
* Use 32KB buffer for `copyFile()` (reduces copy time by 30%)
This makes `:paste` comparable in performance to `cp --reflink=never`
for large files.
For large number of small files improvements are less substantial
(compared to `cp -r --reflink=never`), though still noticeable.
In both cases the copy takes about 30% less time than with `buf` size at 4096.
32KB is the same number `io.Copy()` uses internally (when it can), and is about where improvements stop.
Context:
https://github.com/gokcehan/lf/issues/1685#issuecomment-2163934296
* Apply suggested changes
* Just delete incomplete an file on all errors
* Mention new progress UI update frequency
* Return the old (each 4MB copied) progress update frequency
(progress UI updates don't seem to impact performance much)
2024-06-14 15:30:23 +10:00
dependabot[bot]
0c72034322
Bump golang.org/x/term from 0.20.0 to 0.21.0 ( #1742 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/term/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-06-05 13:17:36 +10:00
Joe Lim
9b9082a10b
Fix image previews containing long lines ( #1737 )
...
To reproduce, use `chafa --polite on -f symbols` for an image preview.
2024-06-04 10:09:21 +10:00
Andrew
aaf5bbb22b
Update lfcd.nu ( #1728 )
...
The previous code caused an error telling to use a spread operator
2024-05-26 02:05:37 +10:00
dependabot[bot]
12e99fdb64
Bump golang.org/x/term from 0.19.0 to 0.20.0 ( #1703 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/term/compare/v0.19.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
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>
2024-05-08 14:20:21 +10:00
Mario D'Andrea
a6375d56c6
Remove call to getFileExtension when Lstat fails ( #1698 )
2024-05-06 11:15:18 +10:00
David Pedersen
a018257d50
gofumpt lint and misc cleanup ( #1682 )
...
* gofumpt lint and misc cleanup
* Reorder fileInfo dircounts code to be clearer
2024-04-20 21:42:28 +02:00
Daniel Zhang
6cabb0e8e4
Support icon color ( #1674 )
...
* Support icon color
* Rename variables
* Test for readArrays
* Add doc and examples for icon color
2024-04-20 21:41:37 +02:00
Joe Lim
ce12116418
Run on-quit when terminal closes ( #1681 )
2024-04-07 15:47:49 +02:00
David Pedersen
63815aaa75
Move get file extension logic to util ( #1670 )
...
* Move get file extension logic to util
* Update TestGetFileExtension to use fake file
* Add more test cases to TestGetFileExtension
2024-04-07 15:38:32 +02:00
J-Kappes and Gökçehan Kara
647fa469fb
Rounded Corners ( #1653 )
...
* add option to draw outer corners rounded
* gofmt
---------
Co-authored-by: Gökçehan Kara <gokcehankara@gmail.com >
2024-04-07 15:36:54 +02:00
Catalin Ancutei
f507b618c9
Added globfilter command ( #1650 )
...
* Added globfilter command
* Kept the alphabetical order and applied other sugestions
* Used pandoc to update docs
2024-04-07 15:36:17 +02:00
lorentzforces and Gökçehan Kara
5b108037a3
Use symlink target for stat styling & icons ( #566 ) ( #1644 )
...
* use symlink target for stat styling & icons (#566 )
Support LS_COLORS/dircolors use of "target" for symlinks to select icons
and styles for them according to the target stat. This mainly applies to
directories - file name-based styles will still be based on the name of
the link, not its target. This mirrors `ls` behavior.
* remove unnecessary debugging and factor out parsePair in color parsing
* move conditional to switch block
* clarify ln target behavior in docs
* run gofmt on single file
---------
Co-authored-by: Gökçehan Kara <gokcehankara@gmail.com >
2024-04-07 15:35:46 +02:00