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
This commit is contained in:
1 parent
d25faf7186
commit
24f01f4988
16 files changed
+477
-419
No files matched your search
@@ -16,6 +16,7 @@ var (
|
||||
envEditor = os.Getenv("EDITOR")
|
||||
envPager = os.Getenv("PAGER")
|
||||
envShell = os.Getenv("SHELL")
|
||||
envTcellTruecolor = os.Getenv("TCELL_TRUECOLOR")
|
||||
)
|
||||
|
||||
var envPathExt = os.Getenv("PATHEXT")
|
||||
@@ -50,6 +51,10 @@ func init() {
|
||||
envShell = "cmd"
|
||||
}
|
||||
|
||||
if envTcellTruecolor == "" {
|
||||
envTcellTruecolor = "disable"
|
||||
}
|
||||
|
||||
u, err := user.Current()
|
||||
if err != nil {
|
||||
log.Printf("user: %s", err)
|
||||
|
||||
Reference in new issue
Block a user