You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this plugin with vifm and I have say it works great ❤️ (my terminal is wezterm which has sizel capabilities)
Sometimes there are files such as password-protected pdf files. These files don't show preview but currently show a big error msg.
This kinda messes up the display in the adjacent pane too.
Ah thanks, i'm looking into improving this to have it do some stuf automagically with a wrapper but that is besides this issue.
Hmmm iirc there should be one utility that allowed to unlock password protected pdfs, think it was pdfjam but will look up once i get home.
RayZ0rr
changed the title
Use /dev/null to supress error messages for some special files
Use 2> /dev/null to supress error messages for some special files
May 10, 2023
Using a separate utility to preview special files, say password-protected pdfs, is a good idea. But I think it's better if these files, especially password-protected pdf files, don't show any preview because they might have sensitive content. In order to preview, it also gets cached which might not be desirable.
I think just redirecting the stderr would be sufficient as it also reduces your maintenance burden from adding more complexity(new utility to keep track of).
EDIT :- there was a typo in my first post and title. It should be 2> /dev/null instead of > /dev/null
I am using this plugin with vifm and I have say it works great ❤️ (my terminal is wezterm which has sizel capabilities)
Sometimes there are files such as password-protected pdf files. These files don't show preview but currently show a big error msg.
This kinda messes up the display in the adjacent pane too.
So, maybe use
> /dev/null
for cleaner messages?The text was updated successfully, but these errors were encountered: