aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-06-04 19:27:54 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-06-04 19:27:54 -0700
commit3f4bcca9693975dce840d5af657b7251605a45be (patch)
treeaf8dc68317e92cefdbd101762778a6b24097a3b3 /README.md
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ec3d16c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+# ask - a simple command line asker
+`ask` is a simple command line tool to get user input. `ask` is less janky than
+`read`, more compact than `fzf`, and less bloated than `readline`-based tools.
+`ask` supports most of the typical line editing functionality (e.g. arrow keys,
+backspace, Ctrl-U) and can be used to perform fuzzy matching or basic user input
+all on a single line of terminal space. Like fuzzy find tools, `ask` plays nicely
+with unix pipelines, but it's a bit more visually compact. `ask`'s functionality
+overlaps with fuzzy finders, but if you want to see a full list of things you're
+filtering through, use `fzy` or `fzf` instead of `ask`.
+
+## Usage
+Here's a simple program to move a file from the current directory:
+
+ #!/bin/sh
+ file="`ls | ask "Pick a file: "`"
+ mv "$file" "`ask "Move $file to: "`"
+
+## License
+`ask` is released under the MIT License. See LICENSE for details.