KFastText - Smallest Text Viewer

Text Editors

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.0

Available as/for:
Description:
KFastText is a small and some may say useless app for text browsing. It is useful to read such files as README, TODO and INSTALL from source packages. Simply create new mimetype and add README, INSTALL and TODO.

KFastText run ONLY with argument. To start it simply type:

kfasttext [filename]


KFastText has been designed to be SMALL - it has no error handling, if you run without argument it will simply exit. The only text visible on screen is "File not found." and "Close" button.
Last changelog:

0.1.1
-----

- Added polish translation
- Now it shows text only in plain mode.


Ratings & Comments

10 Comments

Aleksandersen

Here is some feedback that should be consider for the continued development. All below feedback aims at creating a fast, general purpose viewer—like Apple QuickView—but for KDE. Anyways, here is my feedback: * Do not have a close button or ‘status bar’. Just let the user figure out what the top right X is for. * Automatic line breaking at 72 characters for all plain text (.txt) documents. (That is generally considered good readability for western languages.) Try scaling the window to this size + scrollbars as well.) * Rename the app. KuickView. * Add image support. Display one image centralised on the screen. Scaled at about max 80% of width/height. * As above and add video support. No player controls or anything. Same max scaling and positioning schema as above. * Add PDF, OpenDocument Format, and KOffice-format support. Presentations/slides can be played as images at a fixed interval. Spreadsheets with and text documents with very basic formatting. (Support headline, block text, bold, italic, and list with fixed formatting. No need to support fonts and more.) * Left clicking closes the app. Right clicking brings up a menu: Play/Pause and Play from start (for video), Print (for text/images), Open in [Default app. or secondary app. if KvickView is default] Open with > [Extend menu arm based on KDE app. handling], and Quit. Hope this helps.

bobuse

More minimalist : kdialog ! kdialog --textbox your-file 600 600 :-)

zvonSully

just one line of (shell) code :))

jazztyle

sadly, this app does not compile here... it has a problem with my automake version (1.9) and strictly wants to have automake 1.6... can you fix that? cd . && make -f admin/Makefile.common configure.in ; make[1]: Entering directory `/var/abs/local/kfasttext/src/kfasttext-0.1.1' make[1]: Leaving directory `/var/abs/local/kfasttext/src/kfasttext-0.1.1' cd . && /bin/sh /var/abs/local/kfasttext/src/kfasttext-0.1.1/admin/missing --run aclocal-1.6 /var/abs/local/kfasttext/src/kfasttext-0.1.1/admin/missing: line 46: aclocal-1.6: command not found WARNING: `aclocal-1.6' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && \ /bin/sh /var/abs/local/kfasttext/src/kfasttext-0.1.1/admin/missing --run automake-1.6 --gnu Makefile /var/abs/local/kfasttext/src/kfasttext-0.1.1/admin/missing: line 46: automake-1.6: command not found WARNING: `automake-1.6' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.in'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd . && perl admin/am_edit Makefile.in cd . && rm -f configure cd . && make -f admin/Makefile.common configure make[1]: Entering directory `/var/abs/local/kfasttext/src/kfasttext-0.1.1' configure.in:39: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:44: error: possibly undefined macro: AM_CONFIG_HEADER configure.in:47: error: possibly undefined macro: AC_CHECK_COMPILERS configure.in:48: error: possibly undefined macro: AC_ENABLE_SHARED configure.in:49: error: possibly undefined macro: AC_ENABLE_STATIC configure.in:54: error: possibly undefined macro: AM_KDE_WITH_NLS configure.in:57: error: possibly undefined macro: AC_PATH_KDE configure.in:62: error: possibly undefined macro: AC_CHECK_KDEMAXPATHLEN make[1]: *** [configure] Error 1 make[1]: Leaving directory `/var/abs/local/kfasttext/src/kfasttext-0.1.1' make: *** [configure] Error 2

sabby7890

Make a symlink from automake 1.9 to automake 1.6.

jel

Sounds like one of those simple things that's been sorely missing in KDE :) I have a question before I install this though. Does it handle the different text issues, like wrapping, DOS/Unix/Mac line endings, etc.?

sabby7890

It supports line wrapping, funny thing is you can't turn it off:) And for DOS/UNIX/Mac line endings - it depends on QT. I didn't wrote any text formatting functions - QT does everything.

sabby7890

In other words - the whole app is just four widgets (QTextBrowser, QPushButton, QLabel and QDialog) - QTextBrowser loads file specified in argument, QPushButton closes the window (using built-in funcion). Can it correctly show what you want? I don't know, I've created it for personal use and decided to post it here, maybe it will be useful for anyone. Just try it, binary file takes 40,2 kb of disk space so it isn't much:)

sabby7890

I've checked: it can open even HTML documents.

Tomasu82

Just a suggestion, you might want to add the following after you create the QTextEdit: Viewport->setTextFormat( Qt::PlainText ); :) otherwise it'll render html.

Pling
0 Affiliates
Details
license
version 0.1.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Text Editors:

klat
jori
last update date: 21 years ago

Score 5.0

ktexteditor-yankbuffer
metallman
last update date: 19 years ago

Score 5.0

CUTE
heiko
last update date: 21 years ago

Score 5.0

LogDay
Zarahk
last update date: 19 years ago

Score 5.0

katedataedit
pradu
last update date: 18 years ago

Score 5.0

ktexteditor-key-recorder
jo-link-noir
last update date: 10 years ago

Score 5.0



System Tags