Preview pane default file

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

wwwald
New Member
Posts: 8
Joined: 2009 Mar 31, 10:12

Preview pane default file

Post by wwwald »

I like to have a README.md file in directories, explaining their contents and purpose.

It would be nice if the preview pane immediately showed the README.me file in the preview pane when browsing to the folder (without any specific file selected). The idea is similar to Github or Bitbucket repository pages - they show the contents of the README.me automatically as the repository's "frontpage".

Is there any way to configure Xplorer2 like this?
User avatar
nikos
Site Admin
Site Admin
Posts: 16341
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Preview pane default file

Post by nikos »

although there's no way xplorer2 will do this automatically, you can use some clever file naming to achieve your goal.
For example, if you sort by NAME, and call this description file _readme.md (notice the leading underscore) it will be selected automatically (most of the time) and will be previewed first thing
User avatar
nikos
Site Admin
Site Admin
Posts: 16341
Joined: 2002 Feb 07, 15:57
Location: UK

Re: Preview pane default file

Post by nikos »

ps. i found this MD preview hander for windows shell https://github.com/Atrejoe/MarkdownPreview
have you tried it? I also hear powertoys install a handler for MD
(actually the plugin author recommends not using his handler in favor of powertoys :) )
hajubu
Member
Member
Posts: 20
Joined: 2016 Aug 25, 06:40

Re: Preview pane default file

Post by hajubu »

hi,
just adding another proposal for using a "Markdown" / "Read.me" with a Viewer-Plugin to see it in native format.

by adding the for me needed extension :: ext="md"| ext="rst"| ext="me"
( can be done with TC plugin manger : x2PluginConsul / created by Kilmatead
or
withe standard tcplugins.ini in section [ListerPlugins]
e.g
...my sample -
next free-number = folder-of-ListerPlugins
next-free-number=ext="md"| ext="rst"| ext="me"
i.e.
6=..\..\x2plugins\\wlx\MarkdownView\MarkdownView.wlx64
6_detect=ext="md"| ext="rst"| ext="me"
-----
ref-to: Github: https://github.com/rg-software/wlx-markdown-viewer ( as of Nov-23,2023 : markdown-viewer-2.5 )

... tested with latest [ Nico Botini - Zabkat- Xplorer2 6.2 (pro,ultimate) ,
and Marek Jasinski (DE)- FreeCommander XE and Christian Ghisler (Suisse) - TC11.156 (x32/x64) ]
... used in X2 together with TC plugin manger : x2PluginConsul / created by Kilmatead
( https://www.zabkat.com/blog/tc-plugins.htm)

Hope this can help , if you like it.