summaryrefslogtreecommitdiffstats
path: root/FAQ
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2019-03-29 00:46:13 +0100
committerpgen <p.gen.progs@gmail.com>2019-03-30 11:39:03 +0100
commit21c53c7920633c4f6a848c2f418b5ff4cf3fd52a (patch)
treeae7fcffc6e8524cdd87f16b1958900d9e2a04b21 /FAQ
parentf2dd3b30aa30209253c50bdd3fab44c0de750d0f (diff)
Improve error messages and add a FAQ
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ21
1 files changed, 21 insertions, 0 deletions
diff --git a/FAQ b/FAQ
new file mode 100644
index 0000000..5c53f12
--- /dev/null
+++ b/FAQ
@@ -0,0 +1,21 @@
+Q: What is smenu?
+
+A: smenu is a selection tool which acts as a filter that takes words
+ from the standard input or a file and presents them on the screen in
+ various ways in a scrolling window.
+
+ A cursor that you can easily move allows you to select one or more
+ of them.
+
+ The selected words are printed on the standard output.
+--------
+Q: Why smenu tells me: "The length of a word has reached the limit of
+ 512 characters." but there is no such word in my entry?
+
+A: There is a good chance you have an unbalanced quote, single or double,
+ somewhere. smenu uses quotation marks to be able to have spaces in
+ 'words', and these quotation marks that do not serve as delimiters
+ must be protected.
+
+ You can use something like: sed -e "s/'/\\\'/g" -e 's/"/\\"/g' to
+ pre-process the input in such a case.