Joe Lim
6af25565d4
Simplify eval for tempmarks option ( #1571 )
2024-01-13 13:40:02 +01:00
Joe Lim
ce32bc67b9
Add missing completions for nohistory and history! ( #1570 )
2024-01-13 13:39:26 +01:00
postsolar
27c71f8210
lf.zsh: make completions complete both lf and lfcd (#1564 )
...
* Leave a note on how to add shell completions for `lfcd` in ZSH
* Revert "Leave a note on how to add shell completions for `lfcd` in ZSH"
@joelim-work suggested a better idea: to make `lf.zsh` complete both `lf` and `lfcd`
This reverts commit c28393dd43 .
* Make `lf.zsh` complete both `lf` and `lfcd`
2024-01-08 00:00:25 +11:00
dependabot[bot]
43610eaf40
Bump golang.org/x/term from 0.15.0 to 0.16.0 ( #1567 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/term/compare/v0.15.0...v0.16.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-01-05 14:21:51 +11:00
Joe Lim
c88b8eaa65
Update documentation contributing guidelines ( #1565 )
...
* Update documentation contributing guidelines
* intentional error
* Revert "intentional error"
This reverts commit f77d2466d6 .
2024-01-02 10:02:49 +11:00
Joe Lim
f8399eb6e0
Allow customization for cut/copy/select colors ( #1540 )
...
* Allow customization for cut/copy/select colors
* Add documentation
2024-01-01 06:35:54 +11:00
Christian Zangl
488294588e
generate doc with pandoc in docker ( #1555 )
2023-12-26 16:16:52 +01:00
Joe Lim
27cbf9403c
Reload file info after mark-save/mark-remove ( #1544 )
2023-12-26 15:58:33 +01:00
Joe Lim
12ce649681
Improve refreshing of file statinfo ( #1536 )
2023-12-26 15:56:20 +01:00
Michael Gallo and Joe Lim
e1ab72516d
sortMethod simplification. ( #1535 )
...
* made sortMethod a string enum to reduce comparisons and repetition
* main uses sortmethod directly instead of converting it into a string
* updated sortmethod validity check to no longer require slices package
* Update opts.go
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
---------
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
2023-12-26 15:55:42 +01:00
Joe Lim
f13325f78d
Use string values for go-version ( #1534 )
2023-12-26 15:42:08 +01:00
David Pedersen
a51462dcb9
Show git commit if version information is missing ( #1517 )
...
* Show git commit if version information is missing
* Update version command format
2023-12-26 15:41:15 +01:00
Christian Zangl
075caac3a9
Add hidecursorinactive option to indicate status when terminal loses focus ( #965 )
...
* Enable focus events through configuration by using focus (option) and on-ui-enter/on-ui-exit events.
* Revert doc
This reverts commit 77f113639f .
* Revert rune evt
This reverts commit 77f113639f .
* hidecursorinactive with tcell
* cleanup
* cleanup
2023-12-26 15:37:11 +01:00
Matthew Toohey
2a4adb323f
continue responding to signals after initial sigint ( #1549 )
2023-12-16 19:26:16 +11:00
Michael Gallo
d8b7df87cb
normalize now properly uses boolean parameters ( #1526 )
2023-12-11 15:51:33 +11:00
Joe Lim
ec9bdad90d
Fix low/high crash for big scrolloff values ( #1504 )
2023-12-11 15:41:27 +11:00
hankertrix
03b7321938
Update doc.md ( #1518 )
...
* Update doc.md
Make the icon and colour configuration file more clear, as the names and locations of both files were not explicitly stated.
* Used a reference to the configuration section instead
Also edited the English for spelling and grammar mistakes.
2023-12-11 15:26:18 +11:00
postsolar
e9571ab1d7
Enable completions and add description for lfcd.fish and simplify the code ( #1503 )
...
* Enable completions and add description for lfcd.fish
A simple addition of `--wraps=lf` to the function definition will enable the standard lf completions to be used for `lfcd` function as well.
* Simplify lfcd.fish
* lfcd.fish: unquote $argv
* lfcd.fish: further simplify
* lfcd.fish: cd only on clean exit
* lfcd.fish: further simplify and add a coment on quoting semantics
* lfcd.fish: amend comment style
2023-12-11 15:12:30 +11:00
Joshua Li
31f4a4e16f
fix basename being . when it is empty ( #1525 )
...
* fix basename being `.` when it is empty
* remove unnecessary call of `filepath.Base`
2023-12-11 15:02:07 +11:00
dependabot[bot]
cbdae8e7f3
Bump github.com/gdamore/tcell/v2 from 2.6.0 to 2.7.0 ( #1533 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.6.0 to 2.7.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.6.0...v2.7.0 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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>
2023-12-11 14:22:15 +11:00
dependabot[bot]
ff0ca39a4c
Bump actions/setup-go from 4 to 5 ( #1527 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
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>
2023-12-11 14:02:12 +11:00
dependabot[bot]
6abce04855
Bump golang.org/x/term from 0.14.0 to 0.15.0 ( #1511 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/term/compare/v0.14.0...v0.15.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>
2023-11-28 17:37:44 +11:00
dependabot[bot]
7bd5756330
Bump golang.org/x/sys from 0.14.0 to 0.15.0 ( #1510 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/sys/compare/v0.14.0...v0.15.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>
2023-11-28 17:33:03 +11:00
Gökçehan Kara
9698ecddf1
use markdown for the documentation ( #1474 )
...
* add doc.md
* use h2 for doc sections
* use h3 for doc commands/options/vars
* use backticks instead of quotes in the doc
* merge multiple commands/options in the doc
* change header levels in the doc
* add man page sections to the doc
* remove extra spaces in headers in the doc
* add man and plain conversions of the doc
* update doc
* add missing flags to the doc
* replace the old documentation with the new one
* remove old doc files
* remove the doc instructions from CONTRIBUTING.md
* change the links to the doc
* shorten long links in the readme
2023-11-12 15:43:06 +01:00
Alexander Lunegov and Joe Lim
ade9e986e5
Use -print-last-dir option for lfcd.ps1 ( #1491 )
...
* Use `-print-last-dir` option for `lfcd.ps1`
* chore(etc/lfcd.ps1): use `Set-Location` instead of `cd`
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
---------
Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com >
2023-11-08 23:16:01 +11:00
dependabot[bot]
ae678f7102
Bump golang.org/x/term from 0.13.0 to 0.14.0 ( #1492 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/term/compare/v0.13.0...v0.14.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>
2023-11-08 18:00:04 +11:00
dependabot[bot]
f6e7d0fd0e
Bump golang.org/x/sys from 0.13.0 to 0.14.0 ( #1486 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.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>
2023-11-06 14:12:15 +11:00
Joe Lim
dcd2ea8164
Preserve attributes when moving across devices ( #1482 )
2023-11-06 13:57:11 +11:00
Joe Lim
f52fffbff6
Force sync when writing to cut/copy buffer file ( #1480 )
2023-10-30 09:40:39 +11:00
Joe Lim
b3cb2dc2b4
Add on-redraw hook command ( #1479 )
...
* Add `on-redraw` hook command
* Add documentation
2023-10-30 09:40:24 +11:00
Joe Lim
7c23c27c59
Refactor sixel peek in previewer code ( #1477 )
2023-10-30 09:40:02 +11:00
dependabot[bot]
838fee6f13
Bump github.com/djherbis/times from 1.5.0 to 1.6.0 ( #1478 )
...
Bumps [github.com/djherbis/times](https://github.com/djherbis/times ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/djherbis/times/releases )
- [Commits](https://github.com/djherbis/times/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/djherbis/times
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>
2023-10-29 19:55:30 +01:00
Joe Lim
b420dee145
Fix detection of character vs block devices ( #1469 )
2023-10-22 21:42:12 +02:00
Joe Lim
9ab2c2ec6f
Print sixel data to stderr instead of stdout ( #1451 )
2023-10-22 21:06:19 +02:00
Abderrahmane TAHRI JOUTI
1a3bcb28a1
Use -print-last-dir option for lfcd.cmd ( #1444 )
...
* exit lf not the cmd
* exit successfully
* use -print-last-dir
2023-10-22 20:43:03 +02:00
Joe Lim
154d7182c0
Fix preview for files containing long lines ( #1447 )
...
* Fix preview for files containing long lines
* Limit lines read to preview window height
* Refactor
* Make comment more clear
2023-10-22 20:37:40 +02:00
Ching Pei Yang
b4af8f47c8
doc: Add comments about sixel filler ( #1443 )
2023-10-22 20:33:19 +02:00
dependabot[bot]
beedda2d67
Bump golang.org/x/term from 0.12.0 to 0.13.0 ( #1461 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/term/compare/v0.12.0...v0.13.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>
2023-10-06 15:12:47 +11:00
Joe Lim
dddf437c42
Add spaces to rulerfmt to separate from statinfo ( #1437 )
2023-09-23 11:32:19 +10:00
Gokcehan
c8163439f5
move contributing guide to the repo
r31
2023-09-17 14:40:38 +03:00
veltza
6c54b8870c
Fix sixel filler character ( #1422 )
...
The sixel implementation uses the Braille pattern blank character
(U+2800) as a filler character, which is problematic because U+2800
is not a proper Unicode whitespace character. This fix changes the
filler character to a proper Unicode whitespace character U+2000.
Quote from https://en.wikipedia.org/wiki/Whitespace_character :
"The Braille Patterns Unicode block contains U+2800 BRAILLE PATTERN
BLANK, a Braille pattern with no dots raised. Some fonts display the
character as a fixed-width blank, however the Unicode standard
explicitly states that it does not act as a space."
2023-09-16 16:15:13 +03:00
raslop
ffc756c5ff
Export user-options on change ( #1418 )
...
* Export user-options when they are evaluated
If one has an external previewer that uses an lf user-option (e.g.
"preview-mode") and some key-kindings that change this user-option (e.g.
to "hex", "simple", "fancy") and send a "reload" command to lf, then the
expectation after pressing the keys is, that the prewiever is called
with an updated value of the user-option. Though this did not happen
since #1354 , as this caused random crashes.
This change exports user-defined options immediately when they are
evaluated.
* Fix: Add explaining comment
2023-09-11 16:17:42 +03:00
Joe Lim
9068801831
Add query server command to expose internal state ( #1384 )
...
* Implement recv mechanism
* Implement recv commands
* Add mutex for state data structure
* Use string to store data instead of byte buffer
* Remove runPagerOn function
* Add history command
* Add documentation
* Add default `maps` command
* Add default `cmds` command
* Reduce locking time
* Remove empty line
* Fix documentation for `recv`
* Add comment about `recv` thread
* Change `recv` to `query`
* Fix comment
* test
* Add comment about connection lifetime
* Map `cmaps` by default
2023-09-08 18:52:19 +10:00
dependabot[bot]
c56e319211
Bump actions/checkout from 3 to 4 ( #1413 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [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/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
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>
2023-09-05 13:19:00 +10:00
dependabot[bot]
a67e43ab66
Bump golang.org/x/term from 0.11.0 to 0.12.0 ( #1412 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/term/compare/v0.11.0...v0.12.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>
2023-09-04 15:22:41 +10:00
dependabot[bot]
072818982c
Bump golang.org/x/sys from 0.11.0 to 0.12.0 ( #1411 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.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>
2023-09-04 15:11:18 +10:00
Gokcehan
1dd269ec42
cleanup
2023-09-03 20:05:46 +03:00
Gokcehan
764fbe65ef
cleanup
...
cc #1409
2023-09-03 20:04:02 +03:00
Gokcehan
1a1537946c
add yanking to 'cmd-delete-word[-back]' commands
...
cc #1409
2023-09-03 19:59:32 +03:00
Jan-Peter Dhallé
791dfff8dc
Add cmd-delete-word-back command ( #1409 )
...
* add `cmd-delete-word-back`
Implementation of zsh-like backwards word deletion.
* add unixwords option and evaluate, short description in doc
* remove unixwords configuration option
* remove yank, bind delete word back to alt-backspace, update docs
* minor changes to docs
* small fixes
2023-09-03 19:52:07 +03:00