Commit Graph

112 Commits

Author SHA1 Message Date
Gokcehan
47620fa680 add command line option for log file
cc #739
2022-02-06 19:51:52 +03:00
Gokcehan
18fb632efa export files and options for previewer and cleaner
cc #626
2022-01-27 22:08:13 +03:00
Gokcehan
930364ce78 Revert "dirtyfiles: files that don't require cleaning before previewing them (#729)"
This reverts commit 673dad9f07.
2022-01-22 16:57:28 +03:00
Lucas Mior
673dad9f07
dirtyfiles: files that don't require cleaning before previewing them (#729)
* dirtyfiles

* wrong default on man page

* respect alphabetic order for options

* clean on shell commands

* formating if
2021-12-25 20:49:30 +03:00
SPFab
85aa3b9dc6
Cmap fixes (#691)
* fixed bug when switching commands

* filter and searches are now reset, whenever prompt is reset

* don't interrupt %-shell commands

* filter and search are now correctly started and stoped on cd

* movement commands now don't stop prompts

* forgot shell-pipe check in delete command
2021-08-29 18:28:29 +03:00
Yegor Bychin
ee5b3f4813
add an option to disable directory cache (#673)
* add an option to disable directory cache

* change option name to `dircache`

* change 4 whitespaces to tab
2021-08-01 17:00:10 +03:00
Gokcehan
4220868cc7 create data directory first before selection file
cc #645
2021-06-12 23:29:54 +03:00
Gokcehan
7cdb7495ea add a command line parameter for single use
cc #177
2021-05-19 23:38:05 +03:00
Gokcehan
06a30eda19 add 'autoquit' option to auto quit server on quit
cc #177
2021-05-19 21:55:19 +03:00
Gokcehan
6ca07b1bfc drop client connections on quit
cc #177
2021-05-19 21:45:27 +03:00
Gokcehan
ec330c1bc5 use a local file instead of server load and save
cc #177
2021-05-19 19:54:50 +03:00
Gokcehan
c8f60623f3 cleanup 2021-04-13 23:29:26 +03:00
Gokcehan
73be81595e handle ui suspend/resume errors
cc #592
2021-03-28 18:54:40 +03:00
SeerLite
b7aaa23bd0
Export $PWD to shell (#591)
Most shells use $PWD to show the right working directory when it's a
symlink. Without it, they'd fall back to the absolute path instead.
2021-03-19 13:58:10 +03:00
SPFab
a9cb7156a3
added ability to use custom config file (#587) 2021-03-09 14:35:50 +03:00
Gokcehan
2c3cd35a5d use x/term instead of stty/pause to prompt any key
cc #480
2021-02-21 18:01:20 +03:00
Gokcehan
c071e37316 cleanup 2021-02-21 17:48:23 +03:00
Gokcehan
4c0efdcb41 use suspend/resume api in tcell v2.2.0
cc #480
2021-02-21 17:34:38 +03:00
Marius
8e09df5969
Allow multiple -command flags (#552) 2021-01-07 01:10:54 +03:00
neeshy
b5f6f6edee
Don't redraw volatile previews on ticker period (#546) 2021-01-04 17:01:29 +03:00
neeshy
1e94f4533e
Guarantee preview/previewClear ordering (#537)
* Use chan struct{} in place of chan bool

* Revert "nav.checkReg now returns a boolean instead of calling nav.preview"

* Guarantee preview/previewClear ordering

* Pass the file path to the cleaner script
2020-12-27 04:23:03 +03:00
neeshy
82f03102a5
Add ability to use image previewers (#531)
* Return early on error in nav.preview

* nav.checkReg now returns a boolean instead of calling nav.preview

* Pass width, height, x, and y parameters to preview script

* Check previewer for exit code

If non-zero the preview will be assumed to have side-effects.

* Add the cleaner option

This is called upon selection changes if the previous preview was
volatile. To this end, volatilePreview was added to the nav struct
2020-12-24 16:13:20 +03:00
Gokcehan
90b3b166e1 import tcell/v2 from gitlab.com/Provessor/lfp 2020-12-04 23:59:12 +03:00
Gokcehan
654a14ea7d lazy drawing in shell-pipe commands 2020-11-23 00:13:31 +03:00
Gokcehan
f69c24e357 handle signals properly
Related #485
2020-10-21 00:31:04 +03:00
gotroyb127
7a3bd15903
always export lf_options before previewing (#468)
* always export lf_options before previewing

related functions were moved to `os.go`
and now exportOpts isn't called through
an app, so it can be called independently

* move related functions to main.go

so they get compiled on windows too
2020-09-18 00:50:45 +03:00
Gokcehan
ec512dfe31 read events in the main loop
Related #445
2020-09-07 18:40:57 +03:00
Gokcehan
3c8b5a5630 avoid overwriting messages after shell commands
Related #441
2020-09-05 17:41:17 +03:00
Gokcehan
658af50006 do not crash with corrupted history entries
Related #455
2020-09-01 23:57:40 +03:00
Provessor
24f01f4988
Replace termbox-go with tcell (#439)
Fix colour construction issue

This also has a test to mitigate it in the future

Remove `colormode` option

The original issue it was trying to solve is no longer present with
tcell (it being a holdover from `color256` on termbox) so it is not
needed.

retire gitter channel in favor of irc/matrix

Export options as environment variables (#448)

* Export options as environment variables

Any options from gOpts are available via lf_OPTION environment
variables. For now it works only on booleans, integers and strings (no
array support)

* Do not export some of the options

* Add support for arrays and fix numbers

* Fix comments

* Replace 1 and 0 with true and false

* Export hidden,reverse,dirfirst and sortby options

* Fix comments

* Little fix

* Simplify boolean conversion

log readlink errors instead of fail

Related #447 and #374
2020-09-01 15:42:44 +03:00
Alexey Yerin
25c2f037cb
Export options as environment variables (#448)
* Export options as environment variables

Any options from gOpts are available via lf_OPTION environment
variables. For now it works only on booleans, integers and strings (no
array support)

* Do not export some of the options

* Add support for arrays and fix numbers

* Fix comments

* Replace 1 and 0 with true and false

* Export hidden,reverse,dirfirst and sortby options

* Fix comments

* Little fix

* Simplify boolean conversion
2020-08-19 23:05:50 +03:00
Gokcehan
9c891307f3 cleanup 2020-07-20 02:47:33 +03:00
Gokcehan
7174b7e307 handle broken links with 'select' command
Related #201
2020-07-20 02:15:30 +03:00
Gokcehan
3e36500901 check modtime/sorting again when dirs are updated
Related #338
2020-07-16 23:13:40 +03:00
gotroyb127
f2e3c7a0ce
shell-async commands now don't create zombie processes (#407) 2020-07-14 19:44:13 +03:00
Gokcehan
0e3910652a cleanup 2020-06-11 04:11:40 +03:00
Provessor
c49140ab36
Properly handle SIGHUP and SIGTERM (#305)
* Properly handle SIGHUP, SIGINT and SIGTERM

* Do not handle SIGINT

* Cancel current copy/move/delete operation

* Better cancel current operation
2020-04-13 19:32:42 +03:00
Gokcehan
d5f989f373 show progress for delete operation
Related #238
2019-12-02 19:50:13 +03:00
Juris Arturs Majors
f76bf30f65 Asynchronous delete (#238)
* Asynchronous deletion, similar to moving

* Reversed some sloppy new lines from previous commit

* Move delete operations to delete.go

* Simplify to use RemoveAll before

* Send errors directly to ui.exprChan directly
2019-12-02 14:27:58 +03:00
Vladimir Bauer
cfc9e355b3 reduce switch times a bit (#236) 2019-10-07 19:08:39 +03:00
Juris Arturs Majors
16db95707e Mark clear (#190)
* markclear

* Revert "markclear"

This reverts commit 5e3a188618cb02f7aa284e9f2c9a00ed8ce3dc14.

* Revert "Revert "markclear""

This reverts commit a7a3bfebbf99c10b4a09f197fa997eca461369c4.

* markclear with arguments

* docs

* reverted some whitepsace

* some inline comments

* additional error handling

* wrong argument case

* consider case when argument specified clears all marks

* code cleanup and removed readMarks from writeMarks

* indentation :/

* discussed changes implemnted

* return readMarks error in sync()

* remove reset marks
2019-06-25 21:38:34 +03:00
Gokcehan
80ab2e4fc4 cd if first argument is a directory
Related #167
2019-05-18 17:51:32 +03:00
Gokcehan
6f35abb4ca quote file variables on windows 2019-03-17 20:16:19 +03:00
Gokcehan
0eedb71d6c export permanent env vars on startup
Related #134
2019-03-17 19:52:34 +03:00
Gokcehan
885e896b4a check existing move operation before quit 2019-03-01 17:45:47 +03:00
Gokcehan
808404978e show move progress in the ruler 2019-03-01 17:44:50 +03:00
Gokcehan
99734c7dcf increase copy buffer size 2019-03-01 04:01:33 +03:00
Gokcehan
f44ec4f5bd use reverse attribute for preview messages 2019-03-01 03:51:14 +03:00
Gokcehan
193285a65d add 'echomsg' and 'echoerr' commands for logging 2019-02-28 21:58:14 +03:00
Gokcehan
6ec2924b6b show copy progress in the ruler 2019-02-28 21:04:38 +03:00