Visualizzazione post con etichetta rxvt-unicode. Mostra tutti i post
Visualizzazione post con etichetta rxvt-unicode. Mostra tutti i post

20.4.10

the nice editor and the backspace

Subtitle: The sad state of Backspace and Delete key in linux(cit.)

For a newbie, what is the scariest part in a linux system? A lot of people hate linux 'cause "in a forum they made me open a DOS prompt to solve...".
The console is a powerful tool, but a lot of people doesn't like it.
Personally I prefer a lot of console applications, for the lighteness and the power of simple commands; sometimes is useful a quick edit in the console window of a configuration file, so I searched for a text editor that didn't change my mental keybinding. You know what I mean.
ctrl+c is for copy, ctrl+v is for paste, ctrl+x is for cut, ctrl+s is for saving, ctrl+q is for quit, ctrl+f is for search and ctrl+r is for replace.
In my experience, they are the same in EditPlus, UltraEdit, Notepad++, eclipse, kwrite, gedit: graphical text editor.
So after using vi, emacs -nw and nano for those dirty jobs I found ne.
It's the text editor that I'm searching for, just a console tool with the gui guys keybindings.
But...
The only thing that didn't work is the backspace key in urxvt. It's a well known problem in linux terminal, explained here (from the author of ne, Sebastiano Vigna).
The quick fix is the export TERM=gnome way, but I didn't like it, 'cause in some application it may cause mistake.
So I written a trivial fix for this:
~/bin/ne.sh

#!/bin/sh
export TERM=gnome
/usr/bin/ne $1
export TERM=rxvt

and added to my .zshrc

alias='ne=~/bin/ne.sh'


Fix'd! :)

1.3.10

rxvt-unicode: my .Xdefaults config


$ cat .Xdefaults

URxvt*depth:32
URxvt*background:rgba:0000/0000/0000/dddd
URxvt*foreground:white
URxvt*font: xft:Inconsolata:pixelsize=16:hinting=true:hintstyle=hintslight
URxvt*inheritPixmap:true
URxvt*xftAntialias: true
Urxvt*transparent:True
URxvt*tintColor:blue
URxvt*shading:40
URxvt*fading:60
URxvt*termName:rxvt
URxvt.perl-ext-common:default,matcher
URxvt.urlLauncher:/usr/bin/chromium
URxvt.matcher.button:1

And the result is:

Warning

My first language isn't english. Feel free to gently correct my words. :)
Powered By Blogger