Skip to content
yozhicPublic

About

A Lister plugin for Total Commander, for viewing ASCII art files (usually .nfo or .diz).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NFOLister

ᴇɴɢ | ʀᴜꜱ

Warning

Made by a robot.

A Total Commander plugin for viewing ASCII art, usually .nfo or .diz files.

Important

Requirements. The plugin needs:

  • Total Commander 10 or later (11 recommended);
  • Windows 10 or later (11 recommended).

Built on the engine of iNFekt NFO Viewer (the infekt-core library). The iNFekt interface is not used.
Code written with Claude Opus 5.5 <[email protected]>.

Description

The plugin comes in a 32-bit build (NFOLister.wlx) and a 64-bit build (NFOLister.wlx64).
The plugin detects the file encoding automatically. It supports CP 437, UTF-8, UTF-16, Windows-1252 and their variants.
You can set the colors of interface elements and ASCII art separately for light and dark mode.

ASCII art has two display modes:

  • Rendered — block characters are drawn as shapes, with a glow effect (halos);
  • Classic — block characters use the font's own glyphs.

The plugin opens with F3 or Ctrl+Q (Quick View). Keys used by Lister keep running Lister commands. The plugin handles only its own shortcuts, listed below, and only while its window has the focus.

In the plugin window you can use:

  • in the status bar:
    • switch the display mode;
    • choose a display theme;
    • change the zoom;
    • choose an encoding;
  • in the context menu of the view area:
    • selection and copy commands;
    • export to PNG, HTML or PDF.

ASCII art uses color themes. There are 10 in total: 2 built-in and 8 user themes. Three of the user themes come pre-configured. Built-in themes:

  1. Default — cannot be turned off, edited or deleted.
  2. TC Panels — can be turned off and its values can be edited. Its name cannot be changed and it cannot be deleted. Its colors come from wincmd.ini.

The three pre-configured user themes are DOS, CRT and Cyberdisco. You can set up the other five user themes yourself. See how.

The interface language is set in the settings. You can edit the included translation or add a new one.

Installation

  1. Download NFOLister-<version>.zip from the Releases section. You can also get the Prerelease test build from the Actions section.
  2. Double-click the archive in a Total Commander panel, then click OK in the dialogs.
  3. Restart Total Commander.

Keyboard shortcuts

Shortcut Description
R Switch to Rendered view.
C Switch to Classic view.
[ / ] Switch to the previous / next ASCII art theme (wraps around).
Ctrl+mouse wheel Zoom in 5% steps, from 30% to 400%.
+ / -
Ctrl++ / Ctrl+-
Zoom through the steps 30%, 50%, 67%, 80%, 90%, 100%, 110%, 125%, 150%, 175%, 200%, 250%, 300% and 400%.
Ctrl+0 Reset the zoom to 100%.
Ctrl+A Select the text only, without the graphic blocks. When copied, the blocks become spaces.
Ctrl+Shift+A Select everything: text and blocks.
Mouse clicks on text Double-click — select a word.
Double-click and drag — extend the selection word by word.
Triple-click — select a line, without blocks and without the spaces at its edges.
Ctrl+C Copy the selection to the clipboard.
Esc If text is selected, clear the selection. If nothing is selected, the result depends on the mode: in F3 mode, Esc closes the Lister window; in Ctrl+Q mode, Esc does nothing.
F7
Ctrl+F
Open the Lister search dialog.
F3
Shift+F3
Highlight the next match of the text typed in the Lister search dialog. Each press moves down the document; the search stops at the end. With Shift, the search moves up and stops at the top.

Lister handles the keys 1 to 8, N and P.

Settings

The plugin reads the settings file NFOLister.ini from one of two places, in this order:

  1. The plugin folder.
  2. The folder that contains wincmd.ini.

The file is encoded in UTF-8, with or without a BOM. Settings are grouped into sections. To change a setting, type its new value after the = sign.

Tip

Default values are shown in bold in the tables below.

Colors use hexadecimal RGB codes (red, green, blue). For example, #ff0000 is red.

Section [Cache]

You don't need to edit this section. The plugin updates it automatically.

Section [Preferences]

The main plugin settings.

Setting Values Description
UITheme tc
light
dark
— the color scheme for interface elements:
  • tc — follows Total Commander, light or dark;
  • light — always light;
  • dark — always dark.
Language eng
language code
— the interface language.
The language code is three Latin letters. It must match the name of a translation file in the langs folder next to the plugin.
The default, eng, is English, which is built into the plugin.
ClassicFont Consolas
font name
— the font for Classic view.
ClassicFontSize 10
pt
— the font size in points (pt) for Classic view.
RenderedFont Consolas
font name
— the font for Rendered view.
RenderedFontSize 0
pt
— the font size in points (pt) for Rendered view. At 0, the letters fit the cell height set by BlockHeight.
BlockWidth 7
px
— the block width in pixels (px) in Rendered view.
BlockHeight 12
px
— the block height in pixels (px) in Rendered view.
Glow 1
0
— turns the glow effect on or off in Rendered view.
GlowRadius 15
from 0 to 64
— the glow radius (halo) in pixels at 100% zoom, in Rendered view.
LinkUnderline 1
0
— turns the underline of links (web addresses) on or off.
DebugLog 0
1
— turns on or off the diagnostic report in %TEMP%\NFOLister.log. Use it to find the cause of a problem.

Section [UIStatusBar]

The look of the status bar.

Setting Values Description
Font Segoe UI
font name
— the font for the status bar labels.
FontSize 9
pt
— the font size in points (pt) for the status bar labels.
Light... #RRGGBB — the status bar colors in light mode.
Dark... #RRGGBB — the status bar colors in dark mode.

Section [Themes]

You don't need to edit this section. The plugin updates it automatically.

Sections [Theme1]-[Theme8]

Settings for the ASCII art themes. You can use any values. A setting you leave out takes its value from the built-in Default theme.

Setting Values Description
Name theme name — the name of the theme in the theme menu. Use any name you like.
Name-<lng> theme name Optional.
<lng> — the value of Language in the [Preferences] section.
Theme name — any name. The theme menu shows it when the language <lng> is selected.
For example, the name from Name-rus appears in the menu when Language=rus.
Show 1
0
— shows (1) or hides (0) the theme in the theme menu.
Light... #RRGGBB — the theme colors in light mode.
LightGlow #RRGGBBAA
#RRGGBB
— the glow color in Rendered view, in light mode.
AA sets the opacity: ff is fully opaque, 00 is fully transparent, and 80 is semi-transparent.
Dark... #RRGGBB — the theme colors in dark mode.
DarkGlow #RRGGBBAA
#RRGGBB
— the glow color in Rendered view, in dark mode.
AA sets the opacity: ff is fully opaque, 00 is fully transparent, and 80 is semi-transparent.

Section [TCPanels]

The colors of the built-in TC Panels theme. The plugin calculates them automatically from the file panel settings in wincmd.ini. To override a color, copy the setting from one of the [Theme...] sections and give it your own value. To hide this theme in the theme menu, set Show=0. You cannot change the name TC Panels.

Interface languages

Translations of the interface text are in the langs subfolder of the plugin folder. The files have the .lng extension. The file name is a code of the language in three Latin letters. Any three Latin letters work, but we recommend the ISO 639 codes, for example rus for Russian or ell for Greek.

A translation file has one key=translation line per text. The encoding is UTF-8, with or without a BOM. Lines that start with ; are comments. %1 and %2 are values that the plugin inserts, for example the size of a picture.

The plugin comes with a Russian translation, rus.lng, and a template for other languages, template.lng. English is built in. It also fills in any text that a translation leaves out.

To translate theme names, use the Name-<lng> setting.

License

GPL-2.0, the same license as iNFekt. See LICENSE.txt. Changes to the engine are listed in vendor/PATCHES.md.

Acknowledgements

Thanks to @flakes from syndicodefront for iNFekt NFO Viewer.

About

A Lister plugin for Total Commander, for viewing ASCII art files (usually .nfo or .diz).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages