Commit Graph

46 Commits

Author SHA1 Message Date
Christian Zangl
761aa23483
add select-path to -help (#749) 2022-02-04 23:32:34 +03:00
Gokcehan
7cdb7495ea add a command line parameter for single use
cc #177
2021-05-19 23:38:05 +03:00
Gokcehan
4601e74d66 export OLDPWD variable as the initial directory
cc #601
2021-04-13 23:48:49 +03:00
Gokcehan
c8f60623f3 cleanup 2021-04-13 23:29:26 +03:00
SPFab
a9cb7156a3
added ability to use custom config file (#587) 2021-03-09 14:35:50 +03:00
Marius
8e09df5969
Allow multiple -command flags (#552) 2021-01-07 01:10:54 +03:00
Eduard Ganiukov
d62dd9353f
client: use PID as a client ID (#550)
Fixes: #549
2021-01-03 01:58:01 +03:00
Gokcehan
90b3b166e1 import tcell/v2 from gitlab.com/Provessor/lfp 2020-12-04 23:59:12 +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
Provessor
61442f8880
A more robust server starting mechanism (#463)
now lf will start the server in the current directory (which will then
Chdir to the user's home directory) to ensure it is always starting as
the user intended.
2020-09-09 14:08:52 +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
Gokcehan
ce4ea6ea53 start server process in home directory
Related #287
2020-07-04 03:41:37 +03:00
Gokcehan
45270e389e export id variable after initialization 2019-03-31 19:45:11 +03:00
Gokcehan
0eedb71d6c export permanent env vars on startup
Related #134
2019-03-17 19:52:34 +03:00
Gokcehan
599ac11f26 cleanup 2019-02-26 21:27:04 +03:00
Gokcehan
27f104b3e6 select first argument on startup
Related #101
2019-02-10 19:48:49 +03:00
Daniel Lewan
0fc14e3b2d add option to execute command on server initialization (#135) 2019-02-06 14:56:06 +03:00
Gokcehan
0b8de7c77e detach server on windows
Related #106
2018-08-01 00:21:55 +03:00
Gokcehan
d3f9a3588f handle non-existent directories during reload 2018-07-30 20:56:57 +03:00
Gokcehan
e82cbb820f export 'LF_LEVEL' variable for nested instances
Related #107
2018-07-28 16:52:54 +03:00
Gokcehan
448f2a3cb2 restart server when crashed
Related #65
2018-06-05 22:11:20 +03:00
Gokcehan
91c3790032 add version to the binary
Related #95
2018-03-22 20:42:15 +03:00
Gokcehan
4ce6980098 add command line option for memory profiling 2018-02-17 19:22:40 +03:00
Gokcehan
9b7bf63096 cleanup 2017-11-19 21:55:13 +03:00
Gokcehan
94bb62f7c0 change directory to the first argument on startup
Mentioned in #63.
2017-10-30 23:08:39 +03:00
Gokcehan
8072801bf0 fix init order of sockets for remote commands 2017-08-06 18:26:38 +03:00
Gokcehan
cb577a4c3a handle user variables on all platforms 2017-08-06 11:05:46 +03:00
Gokcehan
458bc71688 use conditional compilation for windows 2017-08-05 19:23:55 +03:00
Gokcehan
e654700bd2 use tcp sockets on windows
Mentioned in #12.
2017-07-23 17:14:50 +03:00
Gokcehan
33c55f0f51 fix selection-path switch help message
Mentioned in #82.
2017-05-14 18:22:46 +03:00
Gokcehan
79ca4cfe9d use /bin/sh as the default for shell option
Mentioned in #58.
2016-12-27 19:05:41 +03:00
Gokcehan
0298630114 add remote flag to send remote commands to server
Mentioned in #45.
2016-12-19 21:28:57 +03:00
Gokcehan
e532db082f use lowercase initials for type names 2016-12-18 00:47:37 +03:00
Gokcehan
d622e74c51 use a unique id for each client
Mentioned in #36.
2016-11-06 01:49:45 +03:00
Gokcehan
1e0b558344 use a seperate goroutine/channel for quit 2016-10-27 22:24:42 +03:00
Gokcehan
b0b06c46d2 escape backticks in documentation 2016-09-15 17:08:05 +03:00
Gokcehan
7d2ee16e2d generate documentation and embed in binary 2016-09-14 00:40:14 +03:00
Gokcehan
a3594319b7 do not fail if USER is not set
Related to #12.
2016-09-07 14:37:32 +03:00
Gokcehan
3d493e8271 use filepath module instead of path for portability
This should fix path separator confusion in windows.

Mentioned in #12.
2016-09-07 00:27:55 +03:00
Gokcehan
66482b8495 use XDG_CONFIG_HOME if set 2016-09-02 23:04:26 +03:00
Gokcehan
dde01fce0a add command line option for profiling 2016-09-01 23:49:56 +03:00
Gokcehan
4b0a6d1013 cleanup 2016-08-17 23:28:42 +03:00
Gokcehan
f20828285e error context for main 2016-08-17 23:06:45 +03:00
Gokcehan
98839a42f2 basic shell completion for single match 2016-08-16 22:31:17 +03:00
Gokcehan
bc4c3c127b do not follow symlinks on exit 2016-08-14 15:45:24 +03:00
Gokcehan
4b266c97e9 initial commit 2016-08-13 15:49:04 +03:00