Vaernil / htop-vim

htop is an interactive text-mode process viewer for Linux. It aims to be a better 'top'. This fork adds vim-style keybindings with inverted T (ijkl) navigation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status PayPal donate

by Hisham Muhammad hisham@gobolinux.org (2004 - 2016)

Introduction

This is htop, an interactive process viewer. It requires ncurses. It is developed primarily on Linux, but we also have code for running under FreeBSD and Mac OS X (help and testing are wanted for these platforms!)

This software has evolved considerably over the years, and is reasonably complete, but there is always room for improvement.

Vim keybindings

Navigation uses inverted T (ijkl), because I hate the vi's standard hjkl, for me it makes no sense on a modern keyboard. These are all the keybindings added in this fork of a fork of htop:

    g        to the top (gg in vim)

  <C-b>      up 1 page

  <C-u>      up 1/2 page

    i

j       l    one character

    k

  <C-d>      down 1/2 page

  <C-f>      down 1 page

    G        to the end

--------------------------------------------------

    o        Expand/collapse (like in NERDTree)
    O		 Set IO Priority

In order to accomodate these keybindings, the following changes were made to the original keybindings:

  • Ctrl+F and Ctrt+B can now longer be used to navigate horizontally
  • 'k' can no longer be used to kill processes, being replaced with 'x'
  • 'l' can no longer be used to list open files, being replaced with 'L'

Comparison between htop and classic top

  • In htop you can scroll the list vertically and horizontally to see all processes and full command lines.
  • In top you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
  • htop starts faster (top seems to collect data for a while before displaying anything).
  • In htop you don't need to type the process number to kill a process, in top you do.
  • In htop you don't need to type the process number or the priority value to renice a process, in top you do.
  • In htop you can kill multiple processes at once.
  • top is older, hence, more tested.

Compilation instructions

This program is distributed as a standard autotools-based package. See the INSTALL file for detailed instructions.

When compiling from a release tarball, run:

./configure && make

For compiling sources downloaded from the Git repository, run:

./autogen.sh && ./configure && make

By default make install will install into /usr/local, for changing the path use ./configure --prefix=/some/path.

See the manual page (man htop) or the on-line help ('F1' or 'h' inside htop) for a list of supported key commands.

If not all keys work check your curses configuration.

License

GNU General Public License, version 2 (GPL-2.0)

About

htop is an interactive text-mode process viewer for Linux. It aims to be a better 'top'. This fork adds vim-style keybindings with inverted T (ijkl) navigation.

License:GNU General Public License v2.0


Languages

Language:C 91.7%Language:Lua 3.1%Language:C++ 2.1%Language:M4 1.8%Language:Makefile 0.8%Language:Python 0.4%Language:Shell 0.0%