phil9/vdir

Description
vdir
=====
A minimalistic visual directory browser for Plan9.

![vdir](vdir.png)

Actions are performed using the right mouse button:
- Home: go to current user's home directory
- Open: present an entry to jump to a given directory
- Up  : go to the parent directory
- New dir : present an entry to create a new directory
- New file: present an entry to create a new empty file

Right-clicking on the path, plumbs the path name
Right-clicking on folders, opens them.
Right-clicking on files send them to the plumber.

Keyboard shortcuts are:
- Page up / Page down to scroll
- Home to go to $home
- Up arrow to go to parent directory
- Space to plumb current directory path
- q / Del to quit

Usage:
------
Install with the usual ``mk install``  
Run ``vdir [directory]``

Path plumbing:
--------------
When right-clicking the path, the path name is sent to plumber.
This can be used to open a window in the directory for instance:
```
src is vdir
type is text
arg isdir $data
plumb start window -cd $data rc
```

Disclaimer:
-----------
This was a quick and dirty hack that sure contains some bugs.  
Enjoy anyway :)
Last 5 commits (shortlog)
Date Author Short message Commit hash
2021-11-25 phil9 fix plumbing of files with spaces in their path (thanks igor) 848a598df06df0557bfe37dd6711d8ed966a56b6
2021-10-11 phil9 ensure file exist before sending to plumber dd0e9a1515ca68355bd8117b0903aa88db283c83
2021-10-11 phil9 remove display locking ede5b76c75425f4b6e78f95dd0af7fb32d9846bb
2021-10-11 phil9 display ellipsis at the beginning of text (thanks igor) 0bdf44080b3cbd88ad1876a737ede1098bdb15b0
2021-10-07 phil9 fix crash caused by call to log(0) (thanks igor) e54d87be8a5d33e8b1ee3ea6c87b5d615ae9036c
Files (browse)
README.md
alert.c
icons.h
mkfile
vdir.c
vdir.png