Open file in specific format with Okular

Hi,

is it possible to force Okular to open a file in a specific format. I'd like to preview .org files as Markdown.

Cheers

Unless I'm missing something, that doesn't appear possible, from the looks of it. :thinking:

[nx-74205:/dev/pts/3][/home/aragorn]
[12:28:17][aragorn] >  okular --help-all
Usage: okular [options] urls
Okular, a universal document viewer

Options:
  -h, --help                           Displays help on commandline options.
  --help-all                           Displays help including Qt specific
                                       options.
  -v, --version                        Displays version information.
  --author                             Show author information.
  --license                            Show license information.
  --desktopfile <file name>            The base file name of the desktop entry
                                       for this application.
  -p, --page <number>                  Page of the document to be shown
  --presentation                       Start the document in presentation mode
  --print                              Start with print dialog
  --print-and-exit                     Start with print dialog and exit after
                                       printing
  --unique                             "Unique instance" control
  --noraise                            Not raise window
  --find <string>                      Find a string on the text
  --qmljsdebugger <value>              Activates the QML/JS debugger with a
                                       specified port. The value must be of
                                       format port:1234[,block]. "block" makes
                                       the application wait for a connection.
  --platform <platformName[:options]>  QPA plugin. See QGuiApplication
                                       documentation for available options for
                                       each plugin.
  --platformpluginpath <path>          Path to the platform plugins.
  --platformtheme <theme>              Platform theme.
  --plugin <plugin>                    Additional plugins to load, can be
                                       specified multiple times.
  --qwindowgeometry <geometry>         Window geometry for the main window,
                                       using the X11-syntax, like 100x100+50+50.
  --qwindowicon <icon>                 Default window icon.
  --qwindowtitle <title>               Title of the first window.
  --reverse                            Sets the application's layout direction
                                       to Qt::RightToLeft (debugging helper).
  --session <session>                  Restores the application from an earlier
                                       session.
  --display <display>                  Display name, overrides $DISPLAY.
  --name <name>                        Instance name according to ICCCM
                                       4.1.2.5.
  --nograb                             Disable mouse grabbing (useful in
                                       debuggers).
  --dograb                             Force mouse grabbing (even when running
                                       in a debugger).
  --visual <id>                        ID of the X11 Visual to use.
  --geometry <geometry>                Alias for --windowgeometry.
  --icon <icon>                        Alias for --windowicon.
  --title <title>                      Alias for --windowtitle.

Arguments:
  urls                                 Documents to open. Specify '-' to read
                                       from stdin.

that's too bad. Thanks anyway!

1 Like

Forum kindly sponsored by