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
Catalin Ancutei
21d256d7da
unix sockets on windows ( #1637 )
...
* Added support for unix sockets on windows
* Keep the fallback port consistent with the one before
* Moved socket check at the bottom of the init function
* Creating the unix socket in temp dir
2024-04-07 15:32:32 +02:00
dependabot[bot]
47634f22bd
Bump golang.org/x/term from 0.18.0 to 0.19.0 ( #1678 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.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-04-07 15:31:23 +02:00
dependabot[bot]
448d7b7631
Bump golang.org/x/sys from 0.18.0 to 0.19.0 ( #1677 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/sys/compare/v0.18.0...v0.19.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-04-07 15:18:25 +02:00
Joe Lim
6e6682fc1f
Enable focus reporting only for hidecursorinactive ( #1676 )
2024-04-07 15:17:23 +02:00
Gokcehan
d26eb0108a
update doc
r32
2024-03-31 21:54:18 +02:00
Joe Lim
ac016fee16
Skip drawing UI for period timer ( #1666 )
2024-03-31 21:19:16 +02:00
David Pedersen
702d67575e
Ignore extension when renaming directory ( #1664 )
2024-03-31 21:19:08 +02:00
Joe Lim
1e10e95f4d
Revert "Trigger update after copy/move ( #1638 )" ( #1661 )
...
This reverts commit ddcd308614 .
2024-03-26 18:52:14 +11:00
dependabot[bot]
c9d28f6e9d
Bump dominikh/staticcheck-action from 1.3.0 to 1.3.1 ( #1658 )
...
Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action ) from 1.3.0 to 1.3.1.
- [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.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: dominikh/staticcheck-action
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-03-25 15:22:44 +11:00
Joe Lim
a1edda1f70
Clear only when cut succeeds ( #1652 )
2024-03-24 20:13:17 +01:00
valoq
ddcd308614
Trigger update after copy/move ( #1638 )
...
* trigger update after copy/move
* trigger refresh after returnign from shell
* add renew after returning from shell
* move file update
2024-03-24 20:12:47 +01:00
Michael Gallo
951795c789
Directories added to dirChan no longer trigger checkDir ( #1607 )
...
* Directories added to dirChan no longer trigger checkDir
removed unneeded blank line
* removed possibly looping checkReg call
2024-03-24 20:12:35 +01:00
dependabot[bot]
c19cc15079
Bump softprops/action-gh-release from 1 to 2 ( #1633 )
...
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release ) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases )
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: softprops/action-gh-release
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>
2024-03-24 19:43:41 +01:00
Catalin Ancutei
4b076d199b
Fixed tags on windows ( #1646 )
...
* Fixed tags on windows
* Use the variable text directly in error message
2024-03-18 10:01:00 +11:00
Joe Lim
d2136df538
Clear cached sixels after horizontal resize ( #1629 )
2024-03-10 13:08:38 +11:00
Joe Lim
44c6aead23
Make documentation generating step optional ( #1628 )
2024-03-09 19:50:02 +01:00
Nuckle
43c2683ca8
Add more file extensions for docker icon ( #1626 )
2024-03-06 20:02:14 +01:00
dependabot[bot]
d89afb8c7d
Bump golang.org/x/term from 0.17.0 to 0.18.0 ( #1624 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/term/compare/v0.17.0...v0.18.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-03-05 17:39:36 +11:00
dependabot[bot]
853bcc524b
Bump github.com/gdamore/tcell/v2 from 2.7.1 to 2.7.4 ( #1621 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.7.1 to 2.7.4.
- [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.7.1...v2.7.4 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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-03-04 17:37:37 +11:00
Joe Lim
055ce47224
Fix crash if tags/marks contains invalid entry ( #1614 )
...
* Fix crash if tags file contains invalid entry
* Fix crash if marks file contains invalid entry
2024-03-04 10:11:42 +11:00
Catalin Ancutei
8ee8592b91
avoid using the user.Current on windows to avoid slow startup ( #1617 )
...
* avoid using the user.Current on windows to avoid slow startup
* formated os_windows.go
2024-03-03 21:31:12 +01:00
dependabot[bot]
0c02239b17
Bump github.com/gdamore/tcell/v2 from 2.7.0 to 2.7.1 ( #1608 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.7.0 to 2.7.1.
- [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.7.0...v2.7.1 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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-02-20 13:24:29 +11:00
Joe Lim
cf996263bb
Export mode for use in scripting keybindings ( #1594 )
...
* Export mode
* Add pipe mode
* Add documentation
2024-02-12 10:27:57 +11:00
Joe Lim
ab54329570
Dynamically generate list of completions ( #1595 )
...
* Dynamically generate list of completions
* Update contribution guide
* Add unit tests
2024-02-12 10:19:17 +11:00
Joe Lim
ac32468629
Fix tilde expansion when using setlocal ( #1596 )
2024-02-12 10:13:13 +11:00
dependabot[bot]
d654f09885
Bump golang.org/x/term from 0.16.0 to 0.17.0 ( #1601 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/term/compare/v0.16.0...v0.17.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-02-08 14:29:23 +11:00
Joe Lim
8374080815
Refactor eval code ( #1591 )
...
* 1
* globsearch
* hidden
* some more options
* ignorecase and ignoredia
* fix ignorecase/ignoredia
turns out position and loadfile are required here too since the list of
files can change (similar to hidden option)
* incfilter/incsearch
* mouse
* some more options
* preview
* remaining bool options
* fix more options that can change list of files
* Add applyLocalBoolOpt
* Use applyLocalBoolOpt
* Add position and loadfile fixes
2024-02-05 10:29:19 +11:00
M Bakhtiyar Ali
8bbcbdd0ea
Update lfcd.nu to support nushell >= 0.87.0 ( #1575 )
...
* Update lfcd.nu to support nushell >= 0.87.0
Deprecated def-env in favor of def --env
https://www.nushell.sh/blog/2023-11-14-nushell_0_87_0.html#deprecated-commands-toc
* Update lfcd.nu using `-print-last-dir` introduced in #1402
2024-02-04 18:38:12 +01:00
Jan Tatje
2007ae51a1
Fallback to showing UID/GID if user/group lookup fails ( #1590 )
...
If you mount a filesystem from another computer then UID/GID might
not be mapped to any user. This changes it so that lf shows the UID
and GID instead of nothing if user/group lookup fails.
2024-02-04 18:34:02 +01:00
Joe Lim
8a14749154
Update generated documentation ( #1580 )
2024-01-18 14:51:04 +11:00