A C implementation of vidir from moreutils. Supports editing filenames in a visual manner.
- Cross-platform: Works on Windows (XP+) and POSIX systems (Linux, macOS, BSD)
- Unicode Support: Full Unicode support. Editor must support UTF-8.
- No CRT Dependency: Windows version links only against kernel32.dll and shell32.dll.
- Unity Build System: Only a single .c file to compile.
- Public Domain: Dedicated to the public domain.
cc -o vidir main_posix.cx86_64-w64-mingw32-gcc main_windows.c -o vidir.exe -nostdlib -nostartfiles -lkernel32 -lshell32vidir [--verbose] [directory|file|-]...vidir- Edit current directoryvidir somedir- Edit contents of somedirvidir file1 file2- Edit specific filesvidir -- Read file list from stdinvidir --verbose- Show verbose output
The program respects the following environment variables (in order of preference):
VISUALEDITOR- Falls back to build-time DEFAULT_EDITOR (by default,
vion POSIX systems,notepadon Windows)
- Test on Windows XP. (no theoretical reason this shouldn't work - I just haven't done it.)