English | 日本語
XeFM’s viewer shows what a document says: the text of PDF, Word, Excel, PowerPoint, OpenDocument and EPUB files, with their headings, lists, tables, pages, slides and sheets. You can search it, select and copy it, and wrap it to the window, even when the file is on a server or inside an archive.
| Files | |
|---|---|
PDF .pdf |
the text of each page |
Word .docx, OpenDocument .odt |
headings, paragraphs, lists, tables, and page headers and footers |
Excel .xlsx, OpenDocument .ods |
one table per sheet |
PowerPoint .pptx, OpenDocument .odp |
one section per slide, with its title, bullets, tables and speaker notes |
EPUB .epub |
one section per chapter |
The old Office formats (.doc, .xls, .ppt) are not read. They open in
their applications as before.
Enter or File → View File (view_file) on the file opens it in the viewer. A large or remote
document first shows a progress dialog while it is read. Esc stops the
reading.
The viewer has two modes, as for Markdown files. M (toggle_view_mode) switches between them,
and XeFM remembers your choice for each kind of file:
Search (isearch), selection and copy work in both. The header names the document
kind and its size, for example “PowerPoint · 12 slides”.
The viewer shows the text, not the page. Layout, fonts, pictures and charts
are not drawn. To see what a document looks like, open it in its application
with File → Open with Default App (open_with_os).
View → Search Content… (find_in_files) reads these documents through the same text,
so a word in a PDF or a slide deck is found like a word in a text file. Each
hit shows its line of the extracted text.
XeFM’s shipped configuration sends view_file on these files to the built-in viewer.
A config.py created before this feature still says otherwise, and it
wins. Change the 'view' of the PDF and Office entries in
FILE_ASSOCIATIONS to None:
{
'pattern': '*.pdf',
'open': ['open', '-a', 'Preview'],
'view': None, # V: XeFM's own viewer
'edit': None,
},
Enter already uses the built-in viewer, whatever 'view' says.
Keys depend on your keymap preset — see Keymap Presets.
Reading documents uses doc-files, with pypdf for PDF. Both come with XeFM.