iomenu

interactive terminal dmenu-style menu
Log | Files | Refs | README | LICENSE

commit 833da4b0aeb7919f136db7ef76353fb7bd44a01d
parent 12cf2f8a793c851de5582740195923d46db4da4c
Author: Josuah Demangeon <me@josuah.net>
Date:   Tue, 27 Oct 2020 08:57:21 +0100

flatten the documentation directory

Diffstat:
MMakefile | 9+++------
TREADME | 0
Ddoc/index.md | 20--------------------
Rdoc/iomenu.1 -> iomenu.1 | 0
4 files changed, 3 insertions(+), 26 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,13 +3,10 @@ VERSION = 0.1 SRC = src/utf8.c src/log.c src/mem.c src/compat/strcasestr.c \ src/compat/strsep.c src/compat/strlcpy.c src/compat/wcwidth.c src/term.c - HDR = src/mem.h src/compat.h src/log.h src/term.h src/utf8.h - BIN = iomenu - +MAN1 = ${BIN:=.1} OBJ = ${SRC:.c=.o} - LIB = W = -Wall -Wextra -std=c99 --pedantic @@ -37,9 +34,9 @@ install: mkdir -p ${DESTDIR}${PREFIX}/bin cp -rf bin/* ${BIN} ${DESTDIR}${PREFIX}/bin mkdir -p ${DESTDIR}${MANPREFIX}/man1 - cp -rf doc/*.1 ${DESTDIR}${MANPREFIX}/man1 + cp -rf ${MAN1} ${DESTDIR}${MANPREFIX}/man1 dist: clean mkdir -p ${NAME}-${VERSION} - cp -r README Makefile doc ${SRC} ${NAME}-${VERSION} + cp -r README Makefile ${MAN1} ${SRC} ${NAME}-${VERSION} tar -cf - ${NAME}-${VERSION} | gzip -c >${NAME}-${VERSION}.tar.gz diff --git a/README b/README diff --git a/doc/index.md b/doc/index.md @@ -1,20 +0,0 @@ -iomenu -================================================================================ - -*iomenu* is an interactive menu inspired from dmenu [1]: it reads lines from -stdin display them to the screen [1], and filter them as the user type. When -`Enter` is pressed, the selected line is printed to stdout. - -This permits to build interactive menu with shell pipes. As an example, a poor -man's music player could be done this way: - - $ find ~/music -name '*.flac' | iomenu | xargs mplayer - -It will print all the FLAC files in `~/music` to iomenu which shows a fulscreen -menu, and the selected file will be printed to xargs mplayer. - -iomenu does not use ncurses but ansi escape sequences [2] instead so it does -not have dependencies beyond a C compiler. - -[1]: https://tools.suckless.org/dmenu -[2]: https://en.wikipedia.org/wiki/ANSI_escape_code diff --git a/doc/iomenu.1 b/iomenu.1