From a53dd6d617d449113b833a13301357c895a3396a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 12 Jun 2022 16:03:38 +0200 Subject: [PATCH] vifm: Make visidata/xsv default csv opener viewer Make visidata the default program used to open csv files, and xsv the default previewer since it displays it in nicer columns than just the default viewer. --- vifm/.config/vifm/vifmrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index cca1ebb..5483da3 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -456,6 +456,14 @@ filextype *.ora \ {Edit in MyPaint} \ mypaint %f, +" tabular data +filextype *.csv + \ {Open with visidata} + \ vd %f, +fileviewer *.csv + \ xsv sample 100 %c | xsv table -c8 -p1 -w1, + " \ {cat %c | sed -e 's/,,/, ,/g' | column -s, -t | less -#5 -N -S; } + " Mindmap filextype *.vym \ {Open with VYM}