KFastText - Smallest Text Viewer

Text Editors

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

0
Score 57%
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:

12 years ago

0.1.1
-----

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

Aleksandersen

11 years ago

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.

Report

bobuse

12 years ago

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

Report

zvonSully

12 years ago

just one line of (shell) code :))

Report

jazztyle

12 years ago

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


Report

C

sabby7890

12 years ago

Make a symlink from automake 1.9 to automake 1.6.

Report

jel

12 years ago

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.?

Report

C

sabby7890

12 years ago

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.

Report

Tomasu82

12 years ago

Just a suggestion, you might want to add the following after you create the QTextEdit:
Viewport->setTextFormat( Qt::PlainText );

:) otherwise it'll render html.

Report

C

sabby7890

12 years ago

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:)

Report

C

sabby7890

12 years ago

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

Report

12 years ago

0.1.1
-----

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

product-maker 19 27

File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.1.1
updated Jun 19 2006
added Jun 17 2006
downloads today
0
page views today 2
System Tags app software