txtView

Amarok 1.x Scripts

Source (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
Score 50.0%
Description:

This script shows the text files from the same directory of a song which makes it mostly useful for checking the information contained in an album directory.

When starting up the script, you can right click on a song in your playlist and select "txtView > Open". This will popup the dialog.

Within the dialog you can show the files through the menu and open them with your favorite application. For example you can edit them with GVIM or open an M3U/PLS file in XMMS ;) Note: the run dialog doesn't let you pass arguments to the apps, so opening the file with vi in a terminal is not possible.

If you are looking for the font Lucida Console P, get into your ~/.fonts directory and wget http://home.online.no/~aageli/luconP.ttf

-- Help Needed --
I don't know how to set the height of a line in the QTextEdit object. If you have pointers, please leave a message, thank you.
Last changelog:

13 years ago

* 0.0.4 2005-02-09
- Option Wrap/No Wrap and Fixed/non fixed chars in the menu
- Using the built-in functions from Python unlike the QDir/file/etc...
- Open With ... in /usr/bin by default
- Use of mimetypes + filename to guess whatever it is a text file or not (I tried magic, but my first note was that it created a new dependence and second.. it didn't do well the job, my default /etc/magic file was empty, at the opposite mimetypes is builtin and does a good job)

* 0.0.3 2005-02-07
- The window is opened as modal (no entry in the taskbar)
- Resize the window now works
- Use the font "Lucida Console P" for the special leet characters
- Checkboxes in the File menu so we know which one is viewed
- Changed the interface:
- Status bar with the name of the current file
- A sub-menu for the files
- 'Open with...' Opens the current file with a program

* 0.0.2 2005-12-16
- TextEdit: NoWrap and Monospace family
- Add a menu bar, remove the buttons

angrykeyboarder

13 years ago

The requested URL /~aageli/luconP.ttf was not found on this server.
Apache/1.3.26 Server at home.online.no Port 80

Report

C

MikeM

13 years ago

I found a new candidate for the font, it is named ASCII.ttf and the author wants it to be free like sharealike "Just use it", I will upload it in a sure place (like 24/24h). Just wait for the next release ;)
I googled the luconP.ttf font at other places, anyway home.online.no is reachable again.

Report

kdefish

13 years ago

...GOD!

Woha, I was waiting for this very application. I have a selfmade *.txt file in every directory that contains my own little review and some infos of the band. And your script is exactly what I was looking for, thank you tons!!

It would be cool to have the option with the txt file on the cover too though. Like, when I right-click on the cover --> open TxtView! Then it would be perfect!

(btw, why making a submenu when there is only one option? it makes no sense)

Another idea could be to add it to the context view at the botton and automatically open it and just hide the info when there is no txt/nfo file. Like, in the current tab at the botton prolly? ;)

However, you made my day! Fantastic, thank you so much!! :)

Report

C

MikeM

13 years ago

It would be cool to have the option with the txt file on the cover too though.(btw, why making a submenu when there is only one option? it makes no sense)Another idea could be to add it to the context view at the botton and automatically open it and just hide the info when there is no txt/nfo file. At the moment all this is not possible and the only entry point to add a submenu is the playlist and it is done via DCOP. I already tried what you said when I was mixing up this script :)Thank you for your comments and I'm happy you like it.DCOP Functions : http://amarok.kde.org/amarokwiki/index.php/DCOP_Functions_amaroK_1.3

Report

markey

13 years ago

Note that you can request extensions to the scripting system, if you submit a wish to our bugzilla on http://bugs.kde.org.

Report

DaBlade

13 years ago

It would be nice if this could decode .NFO files to display the graphics in them rather than plain text. Could you make a version with that?

Report

C

MikeM

13 years ago

It is already in my bug list (or better, todo list :). As the first version is almost working, I have decided to put it here. The next version(s) will have some fixes.

Report

C

MikeM

13 years ago

0.0.3 uses the font Lucida Console P, which shows the awesome characters. I hope you will be happy :)

Report

13 years ago

* 0.0.4 2005-02-09
- Option Wrap/No Wrap and Fixed/non fixed chars in the menu
- Using the built-in functions from Python unlike the QDir/file/etc...
- Open With ... in /usr/bin by default
- Use of mimetypes + filename to guess whatever it is a text file or not (I tried magic, but my first note was that it created a new dependence and second.. it didn't do well the job, my default /etc/magic file was empty, at the opposite mimetypes is builtin and does a good job)

* 0.0.3 2005-02-07
- The window is opened as modal (no entry in the taskbar)
- Resize the window now works
- Use the font "Lucida Console P" for the special leet characters
- Checkboxes in the File menu so we know which one is viewed
- Changed the interface:
- Status bar with the name of the current file
- A sub-menu for the files
- 'Open with...' Opens the current file with a program

* 0.0.2 2005-12-16
- TextEdit: NoWrap and Monospace family
- Add a menu bar, remove the buttons

12345678910
product-maker Base: 4 x 5.0 Ratings
stribianese91
Mar 23 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.0.4
updated Feb 09 2006
added Nov 27 2005
downloads 24h
0
pageviews 24h 3
System Tags addon