Showing posts with label opensource. Show all posts
Showing posts with label opensource. Show all posts

Tuesday, July 15, 2014

Classic multi-platform Text Editor

I’ve been looking for a good classic CLI-version of a text editor that’s multi platform.

Apart from a heavily-customized version of Vim, I found this to be pretty awesome stuff:

http://triptico.com/software/mp.html

Some screenshots from the referring link above:


PS:  This is not my work, but the awesome work of Angel Ortega.  If you find this useful, please do support him and let him know!


Commands used to build on Ubuntu 14.04:

git clone https://github.com/angelortega/mp-5.x
git clone https://github.com/angelortega/mpdm
git clone https://github.com/angelortega/mpsl
sudo apt-get install libncursesw5-dev gnome-core-devel build-essential flex byacc lib ncursesw5 ncurses-dev ncurses-bin
cd mp-5.x
./config.sh --disable-gtk
make
sudo make-install




Monday, July 7, 2014

How to re-enable keypad keys after installing Zsh

Sourced from http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work

1) Edit ~/.zshrc
2) Add the following entries:
bindkey -s “” “intended replacement keystroke”

To insert the correct keystroke above, hit Ctrl-V then press they key to replace.


My section for .zshrc for a standard full-key Mac KB is below:

——— Begin copy/paste ————

# Setting Keypad info:
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
bindkey -s "^[Op" "0"
bindkey -s "^[OX" "="
bindkey -s "^[Oo" "/"
bindkey -s "^[Oj" "*"
bindkey -s "^[Om" "-"
bindkey -s "^[Ok" “+”
# NOTE-- The ^M below was added by the following key combinations: Ctrl-V, then pressing Enter
bindkey -s "^[OM" "^M”      

——— End copy/paste ————


Enjoy!

PS:  If you don’t know what Zsh is, take a look at this site:

http://ohmyz.sh/

#Awesomesauce