Comments (3)
Tinkering around on the latest commit i found a way to work around this issue, albeit by ignoring LS_COLORS completely
The issue most certainly lies with the default lua config and how it handles lscolors, since the crate lscolors injects its own defaults
const LS_COLORS_DEFAULT: &str = "rs=0:lc=\x1b[:rc=m:cl=\x1b[K:ex=01;32:sg=30;43:su=37;41:di=01;34:st=37;44:ow=34;42:tw=30;42:ln=01;36:bd=01;33:cd=01;33:do=01;35:pi=33:so=01;35:";
Either way, by editing xplr.fn.builtin.fmt_general_table_row_cols_1 in the builtin init.lua i got the thing to "work"
Edited function
xplr.fn.builtin.fmt_general_table_row_cols_1 = function(m)
local nl = xplr.util.paint("\\n", { add_modifiers = { "Italic", "Dim" } })
local r = m.tree .. m.prefix
-- start of edited part
local style = m.style
-- local style = xplr.util.lscolor(m.absolute_path)
-- style = xplr.util.style_mix({ style, m.style })
-- end of edited part
if m.meta.icon == nil then
r = r .. ""
else
r = r .. m.meta.icon .. " "
end
local rel = m.relative_path
if m.is_dir then
rel = rel .. "/"
end
r = r .. xplr.util.paint(xplr.util.shell_escape(rel), style)
r = r .. m.suffix .. " "
if m.is_symlink then
r = r .. "-> "
if m.is_broken then
r = r .. "×"
else
local symlink_path =
xplr.util.shorten(m.symlink.absolute_path, { base = m.parent })
if m.symlink.is_dir then
symlink_path = symlink_path .. "/"
end
r = r .. symlink_path:gsub("\n", nl)
end
end
return r
end
from xplr.
It was fixed in #640, but not released yet.
Try the dev branch.
from xplr.
Actually, it might be a separate issue. Will take a closer look later.
from xplr.
Related Issues (20)
- Scrolling help and selection panes HOT 1
- Illegal format character q HOT 3
- "Error) could not enter" ...: Not a directory (os error 20)"
- Display current mode help menu on top
- CD: fix cross build
- xplr v0.21.3 fails to install via crates.io HOT 6
- cargo install xplr FAILS HOT 6
- Process exits when trying to open any text file on editor HOT 4
- How can I use "emacsclient -t" as EDITOR for xplr? HOT 5
- How to change selection pane size? HOT 2
- Provide option to sort based on user created custom column HOT 3
- Incorrect fuzzy search behavior HOT 4
- Mapping function keys higher than F12 does not work HOT 3
- How about adding a command line to enhance the usability? HOT 2
- Hitting enter after esc takes a long time HOT 6
- closing `xplr` with `q` or closing the terminal window closes any files opened in gui HOT 3
- Deleting files should not move the cursor to the top HOT 3
- Support Binstall HOT 1
- Support Debian/Ubuntu/Snapcraft HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xplr.