Thursday, October 14, 2010

Copying text from mcedit to system clipboard

Just press Shift key while blocking the text in mcedit, or copy item in popup menu will remain inactive on right click. :P
Without pressing Shift key:

With pressing Shift key:

Fixing mcedit transparent problem in mc 4.7.0.x series

In previous release of mc, we just need to add following code to make it transparent in [Colors] section:
base_color=normal=editnormal=,default:
But since version 4.7.0.x (using in Ubuntu 10.04 and later) it doesn't work. Especially while using mcedit, it looks ugly. it still using normal background color for empty space, see this bug.

To make it works again, replace code above with this:

Tuesday, October 12, 2010

Nautilus Script: Extract to Folder

Use this script if you want to extract compressed file into a folder in nautilus.
Make text file named "Extract to Folder" in ~/.gnome2/nautilus-scripts/ then just put the following code into it.

make it executable using $chmod +x ~/gnome2/nautilus-scripts/Extract\ to\ Folder
and now you can use it in nautilus by simply right click > Scripts > Extract to Folder.