raslop
fdb320d30c
preserve mtime when copying files ( #1026 )
...
* make it possible to preserve mtime and atime when copying files
Preserving other attributes like ownership, ctime or btime of a file is
desired but currently not possible to implement in a portable way with go.
Fixes #869
Relates to #779
* FIXUP use cp-compatible default for not-preserving mode
2023-05-21 19:41:01 +03:00
Joe Lim
24bba6288d
Bound cursor position when selecting file ( #1247 )
2023-05-21 15:14:43 +03:00
Joe Lim
5b934c2b91
Expand tilde during autocompletion ( #1246 )
2023-05-21 15:09:28 +03:00
Ilya Grigoriev
346c439f76
Refactor pager commands & synchronous shell commands (no-op) ( #1243 )
...
* Refactor piping to pager: extract to separate function, simplify invocation
This is meant to be straightforward and clearly a no-op,\
at the cost of being a bit verbose.
* Refactor: reduce duplication between sync shell commands and pager
* Refactor: minor cleanup of async shell functions
After the previous refactors, the logic for async shell commands can
be simplified somewhat. There is likely room for further improvements,
but that is beyond the scope of this PR.
* Remove duplicated shellSetPG invocation
See https://github.com/gokcehan/lf/pull/1243#discussion_r1193078282
2023-05-21 15:08:49 +03:00
Gokcehan
5bf78dc087
cleanup
...
cc #1253
2023-05-21 01:57:39 +03:00
Alok Mishra
8fee7f0927
LF_CONFIG_HOME environment variable ( #1253 )
...
* Added LF_CONFIG_HOME environment variable
* Added and generated documentation for LF_CONFIG_HOME
2023-05-21 01:53:55 +03:00
Joe Lim
3b942a8a39
Support custom colors for drawbox characters ( #1251 )
2023-05-20 17:53:05 +03:00
Joe Lim
1be7d2689a
Support modifiers in special key mappings ( #1248 )
...
* Support modifiers in mappings
* Update docs
* Support cmap keybindings as well
* Implement push
* Move order of escape key check
* Add safety check
* Fix safety check
* Factor out common logic
2023-05-20 17:37:39 +03:00
Joe Lim
88b3c999af
Fix count when parsing bottom command ( #1240 )
...
* Fix count when parsing `bottom` command
* Revert "Fix count when parsing `bottom` command"
This reverts commit a0b6bb5a13 .
* Alternate implementation
* Add comment
r30
2023-05-13 16:58:21 +03:00
Joe Lim
24e224ca65
Add jumps command for displaying the jump list ( #1233 )
...
* Add `jumps` command for displaying the jump list
* Mention jump count in documentation
* Reverse order
2023-05-13 16:43:08 +03:00
Joe Lim
2a5c54c81a
Minor cleanup of reflect code ( #1229 )
2023-05-13 16:30:19 +03:00
dependabot[bot]
db46fb2b37
Bump golang.org/x/term from 0.7.0 to 0.8.0 ( #1225 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/term/compare/v0.7.0...v0.8.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-05-13 16:28:33 +03:00
dependabot[bot]
f036e07a5c
Bump golang.org/x/sys from 0.7.0 to 0.8.0 ( #1224 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.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-05-13 16:18:31 +03:00
Joe Lim
8f630e0cab
Separate filter from selections in the ui ruler ( #1223 )
2023-05-13 14:19:50 +03:00
Joe Lim
35990bed12
Prevent scrolling to bottom when selecting files ( #1222 )
...
* Prevent scrolling to bottom when selecting files
* Use nav.currDir()
2023-05-13 13:58:03 +03:00
Gokcehan
f04401ba4d
build diskfree on all platforms
...
cc #1168
2023-04-30 22:10:15 +03:00
Gokcehan
2c86577b95
update doc
...
cc #1176
r29
2023-04-30 16:40:52 +03:00
Joe Lim
4dbc15e4b0
Validate selmode setting ( #1206 )
2023-04-15 19:52:37 +03:00
Joe Lim
c0dfb3c4f5
Fix statusbar spacing ( #1205 )
...
* Fix statusbar spacing
* Fix ruler option check
2023-04-15 19:51:51 +03:00
Gokcehan
55ad40ac0a
add 'ruler' to completion
...
cc #1168
2023-04-09 14:58:11 +03:00
Gokcehan
c1583032aa
update doc
...
cc #1168
2023-04-09 14:54:41 +03:00
rrveex and rr
eb84772032
Customizable statusline, df ( #1168 )
...
* opts statusline, df
* renamed infostat -> ruler; removed os_lin, os_bsd
* removed vscode
---------
Co-authored-by: rr <rr@arveex.eu >
2023-04-09 14:50:34 +03:00
Joe Lim
821b2fcd51
Fix crash when sorting files in a directory ( #1204 )
2023-04-09 14:32:40 +03:00
Joe Lim
734f11d61b
Simplify edge calculation when scrolling down ( #1194 )
...
* Simplify edge calculation when scrolling down
* Alternate implementation
* Alternate implementation #2
2023-04-09 14:23:43 +03:00
RuMaks
28b550a7ec
Use $VISUAL for the e command instead of $EDITOR ( #1197 )
...
* Use $VISUAL for the `e` command instead of $EDITOR
* update `os_windows.go` and `doc.go`
2023-04-09 01:44:09 +03:00
Ilya Grigoriev
1e1486fc02
Make :maps work on Windows and add :cmaps. ( #1201 )
...
* Make `:maps` work on Windows
This makes the `:maps` command from #1146 work on Windows.
This (as well as `:maps` itself) is based on @jackielli's work in #1146 and
#1152 .
I intend to refactor the code in this or a separate PR, but I thought I'd
submit the critical and simple bit first.
* Add `:cmaps` command
After the naming scheme from #1146 , it would seem weird to not have a :cmaps
command. This could help with issues like #876 .
2023-04-09 00:51:52 +03:00
dependabot[bot]
bb45d15b83
Bump golang.org/x/term from 0.6.0 to 0.7.0 ( #1198 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.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-04-08 23:40:31 +03:00
Joe Lim
b5c83dbf7a
Add support for moving to a specific line ( #1196 )
...
* Add support for moving to a specific line
* Update documentation
2023-04-08 23:40:16 +03:00
Ilya Grigoriev
27d316c006
lfrc.example: Add mkdir, add "show execution result" ( #1188 )
...
Show how to map `a` to mkdir. `` ` `` maps to "show execution
result". Norton Commander & its successors map it to `<c-o>`,
but I think that's better for something opening-relatred.
Whenever a `$` command gives an unexpected error, I want to see
what happened. There are many ways to do so, but the one I added
here seems the simplest and it took me a while to think of it.
We could also have an option to have `$` commands pause like `!`
commands when there's an error.
2023-04-08 22:35:39 +03:00
Gokcehan
83af3e1cb0
add file operations to non-features in readme
...
close #887
cc #1179
2023-04-02 19:08:51 +03:00
Ilya Grigoriev
27ab67aab7
Make the :doc command work even if lf is not in the PATH, add lf environment variable ( #1176 )
...
* Export a `$lf` environment variable with path to lf binary
If Go fails to find a path to the lf binary, `$lf` is set to the string `lf` so
that running `$lf` in scripts gives a reasonable error message.
* Make the `:doc` command work even if lf is not in the PATH
Previously, `:doc` executed `lf -doc`. Now, it executed `$lf -doc` or `%lf%
-doc`.
Before this change, `:doc` did not work if `lf` is not in the PATH. This is
likely to happen to new users who are trying out `lf` and need docs the most.
Moreover, if you made some changes to the docs and ran `lf` with `go run .`,
`:doc` would return the docs for the version of `lf` in the PATH instead of
what is expected.
2023-04-01 19:49:47 +03:00
Joe Lim
3ae67fc361
Export count as a variable when running commands ( #1187 )
2023-04-01 19:40:28 +03:00
Paul Ouellette
f563263add
Completion: always insert longest match ( #1184 )
...
Previously, longest common match completion would only apply if there
was a word before the cursor.
Suggested in #1090
2023-04-01 19:25:55 +03:00
Paul Ouellette
70171adf40
Fix infinite loop in listMatches ( #1183 )
...
This fixes an issue where listMatches could get stuck in an infinite
loop if one of the matches was longer than the window width.
Fixes #1090
2023-04-01 19:24:55 +03:00
Joe Lim
11caeddb35
Support custom line number colors ( #1177 )
...
* Support custom line number colors
* Move eval case
2023-04-01 16:05:44 +03:00
Joe Lim
6ffc4a4c8a
Display zero when relativenumber is enabled ( #1171 )
2023-03-25 18:35:08 +03:00
Gokcehan
0eddc1e724
cleanup
...
cc #845 #1169
2023-03-25 18:25:09 +03:00
Joe Lim
43fced28e3
Use tcell constants for drawbox ( #1170 )
2023-03-21 20:30:03 +03:00
Joe Lim
68e2433d48
Improve preview loading message flickering ( #1154 )
...
* Improve preview loading
* Change timeout to 100 milliseconds
* Add previewtimeout option
* Start preview outside other goroutines
* Revert previewtimeout option
2023-03-21 19:49:37 +03:00
dependabot[bot]
25288fd90b
Bump actions/setup-go from 3 to 4 ( #1160 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
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-03-20 20:11:45 +03:00
rrveex and rr
122dee1f45
Enhance rename prompt ( #1162 )
...
* enhance rename ui
* gofmt
* default rename: cursor on dot
* fix basename length
* fix basename length... again
---------
Co-authored-by: rr <rr@arveex.eu >
2023-03-20 20:11:23 +03:00
Joe Lim
8652707299
Avoid refreshing previews for async shell commands ( #1164 )
2023-03-20 19:59:39 +03:00
Gokcehan
41cdd02572
update doc
...
cc #758
2023-03-16 18:11:29 +03:00
Gokcehan
207de6a506
add errors for unexpected boolean option values
...
cc #758
2023-03-16 17:51:59 +03:00
Gokcehan
acb5693b11
cleanup
2023-03-16 17:35:56 +03:00
Gokcehan
85512625f8
add 'true/false' syntax for boolean options
...
cc #758
2023-03-16 17:24:41 +03:00
Joe Lim
0bf17dd3f0
Fix width used for line numbers ( #1151 )
2023-03-12 15:35:23 +03:00
Joe Lim
db9de4d4de
Refactor code for printing directories ( #1150 )
2023-03-12 15:34:44 +03:00
Joe Lim
9440b1b319
Update file info after reload command ( #1149 )
...
* Update status bar after reload
* Add comment
2023-03-12 15:30:16 +03:00
Jackie Li
a85ce898a1
try to fix #916 ( #1146 )
2023-03-12 15:24:44 +03:00