Re: Quick view

2022-10-02 Thread Riccardo Paolo Bestetti
On Sun Oct 2, 2022 at 10:53 AM CEST, Andrew Borodin wrote:
> On Sun, 02 Oct 2022 10:14:23 +0200 "Riccardo Paolo Bestetti"  
> wrote:
> > - Some of the files that ca be successfully rendered in the viewer (e.g.
> >   HTML, images*, PDF) show up as plain text/binary dumped as ASCII
> >   instead in quick view
>
> It's a feature[2]. Quick view shows file in the raw mode to avoid any delays
> required to get some info of the file.
>
I'm not proposing having parsed mode by default in quick view. I'm
proposing having the ability of switching to it. Users who don't want
that won't see any difference.

> > - Directories show the string "Cannot view: not a regular file" but it
> >   might be a good feature to show the contents, or maybe a short
> >   description of it ("X images, Y documents")
>
> Again, to calculate directory statistics, or get some info of file, we need
> some time. Any delay can annoy users.
>
See above.

Riccardo P. Bestetti

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Quick view

2022-10-02 Thread Oswald Buddenhagen via mc-devel

On Sun, Oct 02, 2022 at 11:53:20AM +0300, Andrew Borodin wrote:
- Some of the files that ca be successfully rendered in the viewer 
(e.g.

  HTML, images*, PDF) show up as plain text/binary dumped as ASCII
  instead in quick view


It's a feature[2]. Quick view shows file in the raw mode to avoid any delays
required to get some info of the file.

it wouldn't be terribly hard to do that in the background. however, 
switching to a proper main loop would be more or less a pre-requisite, 
which might be a somewhat bigger project (as such, it seems fairly easy, 
but doing it properly would probably require quite some refactoring to 
avoid nested main loops (which are a reentrance nightmare)).


___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Quick view

2022-10-02 Thread Yury V. Zaytsev

On Sun, 2 Oct 2022, Andrew Borodin wrote:


- Directories show the string "Cannot view: not a regular file" but it
  might be a good feature to show the contents, or maybe a short
  description of it ("X images, Y documents")


Again, to calculate directory statistics, or get some info of file, we 
need some time. Any delay can annoy users.


Well, I vaguely remember that FAR had such a feature, and it was pretty 
nice. One should just think of stuff we can show fast and keep in mind VFS 
limitations...


--
Sincerely yours,
Yury V. Zaytsev
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Quick view

2022-10-02 Thread Andrew Borodin
On Sun, 02 Oct 2022 10:14:23 +0200 "Riccardo Paolo Bestetti"  
wrote:
> One feature I like about MC is "quick view" (C-x q), or the ability to
> use one of the panes to quickly preview files. However, I have noticed
> that it doesn't work as well as the file viewer (F3). Some examples:
> 
> - When quick view is open, hovering on some types of files (especially
>   zip files and derivatives such as epub, docx, jar) results in a big
>   red popup that needs a keypress to be dismissed, and then their
>   content is not displayed

There is a bug in zip-files detection. I hope, it's fixed[1]. It'll be
in the master branch at next weekend.

> - Some of the files that ca be successfully rendered in the viewer (e.g.
>   HTML, images*, PDF) show up as plain text/binary dumped as ASCII
>   instead in quick view

It's a feature[2]. Quick view shows file in the raw mode to avoid any delays
required to get some info of the file.

> - Directories show the string "Cannot view: not a regular file" but it
>   might be a good feature to show the contents, or maybe a short
>   description of it ("X images, Y documents")

Again, to calculate directory statistics, or get some info of file, we need
some time. Any delay can annoy users.

[1] https://midnight-commander.org/ticket/4404
[2] https://midnight-commander.org/ticket/4117

-- 
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Quick view

2022-10-02 Thread Riccardo Paolo Bestetti
Hello,

I'm a relatively new user of Midnight Commander. I have recently started
using it as my only file manager, as I find other file managers too
cluttered or too interwinded with desktop environments.

One feature I like about MC is "quick view" (C-x q), or the ability to
use one of the panes to quickly preview files. However, I have noticed
that it doesn't work as well as the file viewer (F3). Some examples:

- When quick view is open, hovering on some types of files (especially
  zip files and derivatives such as epub, docx, jar) results in a big
  red popup that needs a keypress to be dismissed, and then their
  content is not displayed
- Some of the files that ca be successfully rendered in the viewer (e.g.
  HTML, images*, PDF) show up as plain text/binary dumped as ASCII
  instead in quick view
- Directories show the string "Cannot view: not a regular file" but it
  might be a good feature to show the contents, or maybe a short
  description of it ("X images, Y documents")
- I've probably encountered more but I think those are the main ones

*as a side note, for some reason, I can't get images to show in the
viewer; I have taken a look at images.sh and installed geeqie as
required by the script, but it seems like nothing is happening.

I am happy to work on these items myself, if the maintainer(s) of the
project could confirm that it would be welcome, and compatibly with my
university commitments.

Riccardo P. Bestetti

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel