Commit graph

15 commits

Author SHA1 Message Date
7ccd7e4757
vifm: Fancy markdown display with glow or bat
For anything markdown or that gets displayed as markdown
(e.g. docx files) in the vifm preview, we now use glow
or bat to display a nicely styled and colored version.

For glow I added a script which tries to detect the
current terminal background between dark/light to
correctly set the color scheme.
2023-10-03 13:01:29 +02:00
102cdbca1c
writing: Replace zathura with sioyek
Replaced or extended all default references to zathura with
sioyek so it will automatically take on any tasks meant
for pdf reading. With the current configuration, hardly a
change should be noticed.
2023-10-02 14:08:04 +02:00
5712a5bf64
vifm: Improve image preview with fallback
If a locally compiled version of viu exists it will use this for
full image preview display (full-color image). If it does not
exist it will instead fall back to the system viu and use
block-wise display for the preview. Location that local viu is
expected is `~/.local/bin/viu`.

The reason behind this is a bug (or at least unwanted
functionality) in viu which makes it not work correctly from
within vifm. You will have to fix this issue and compile a local
version of viu which vifm assumes to be in the local binary
directory and uses to display the pretty images.
2023-07-23 19:28:15 +02:00
c8a2236a1c
vifm: Fix view mapping always entering view window
Simplified the view mapping (`w`) to not 'enter' the view window that is
opened by default.

What happened previously is that pressing the mapping
would open the view pane (or create a vertical/horizontal split and then
open the view pane within it if only one pane is visible) and then move
the cursor into it so that you can scroll within.
The issue was that to close the view pane again, one had to exit it
first (through `Shift+w`) which really hurt the quick-glance into a file
and then move on kind of workflow I mostly use previews for.

This commit simplifies the view mapping to allow exactly that, pressing
`w` still does all the things it did previously, only does not move
focus into the preview window so keeps the workflow simpler.
2023-06-22 12:38:07 +02:00
b52ecda093
terminal: Change timg for viu 2023-03-21 18:26:32 +01:00
384ff59a3f
vifm: Move external file operations to localleader prefix 2023-03-19 14:55:58 +01:00
3795b20a59
vifm: Add new tab mapping 2023-03-19 14:55:07 +01:00
e464c5000a
vifm: Improve prefix suggestions display
If given <nop> as prefix mapping, the suggestions box shows *all*
mappings that exist in the program. By removing the <nop> we make the
key do its usual action but at the same time restrict the suggestions
being displayed to those actually following the prefix.
2023-03-19 14:53:47 +01:00
0612c74b91
vifm: Add ellipses ... to truncated filenames 2023-03-19 14:52:52 +01:00
5a04f34f97
vifm: Update library path to general library dir 2023-03-19 14:52:28 +01:00
dc20b23b0a
vifm: Set rg as program to grep with 2023-03-19 14:52:11 +01:00
98892fbc89
vifm: Change delay until map suggestions are shown 2023-03-19 14:51:01 +01:00
73ae033139
vifm: Switch to tidy-viewer for csv preview 2023-02-25 16:55:42 +01:00
ab14c37aa7
vifm: Make compression mappings work in any mode 2023-01-10 00:15:04 +01:00
9781b26b22
terminal: Create module to consolidate term utils
Terminal application, a variety of shell configurations, terminal file
and session management all consolidated in one place.
2023-01-07 16:11:40 +01:00