|
NAMEictree - like tree but interactive SYNOPSIS
DESCRIPTIONictree is a terminal-based program that takes a list of contents of directories and displays them in a pager similar to less where you can fold/unfold directories and quickly jump between them. It is useful to browse locate, find or any other program output that is a list of paths. EXAMPLESFind something with locate and pipe output into ictree: locate something | ictree The same applies to any program that can produce a list of paths. For example, one can use find with ictree to view current working directory in a nice tree-like format: find | ictree ictree can also take a file that contains paths as its first argument: locate something > list.txt ictree list.txt ictree supports vi-like search functionality. Extended regular expressions are supported. If a pattern contains / character, the search is performed by full paths of items instead of their short names in the list. COMMANDSAll the commands for moving in the pager resemble less and vi commands. MOVING
OTHERS
CUSTOM COMMANDSIt's possible to define custom commands in the configuration file (see FILES) to open a selected path in other programs. Examples: # open selected path in vim by pressing e map e vim $f # open selected path in a pager # defined in $PAGER environment variable map i $PAGER $f When a custom command is invoked, ictree simply runs a program with /bin/sh and sets $f variable to whatever a user has selected. Note: unlike Vim, it's impossible to use more than one character in a mapping. OPTIONS
FILES
SEE ALSOtree(1), find(1), locate(1), less(1) AUTHORWritten by Nikita Ivanov.
|