eyedact
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "eyedact", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Freeze-dried searches from text mind maps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,3 +67,3 @@ Make freeze-dried web searches using text mind-maps. | ||
Put this in `~/.bashrc`: | ||
For the sake of explicit manual prep, put this in `~/.bashrc`: | ||
@@ -74,5 +74,5 @@ alias s?='eyedact ~/notes/mongo` | ||
$ s? reduce # Search Google+I'm Feeling Lucky for "Mongo aggregation pipeline map-reduce" | ||
$ s? practices --list # Search Google (not feeling lucky) for "Mongo best practices" | ||
$ s? collection --all # Open one tab for each match (without --all, use only first match) | ||
$ s? reduce --lucky # Search Google+I'm Feeling Lucky for "Mongo aggregation pipeline map-reduce" | ||
$ s? practices # Search Google (not feeling lucky) for "Mongo best practices" | ||
$ s? collection show --all # Open one tab for each match (without --all, use only first match) | ||
@@ -88,2 +88,13 @@ Eyedact checks if the string you enter appears in any of the lines of | ||
## CLI | ||
$ eyedact MINDMAPFILE needle [needle [needle [...]] [--lucky] [--all] | ||
* `MINDMAPFILE`: Path to text file containing concepts indented to show | ||
relationships between ideas in a knowledge domain. | ||
* `needle`: At least one string to match against lines in the mindmap. | ||
If the needle appears inside a line, its a match. | ||
* `--lucky`/`-l`: Use Google's "I'm Feeling Lucky" feature. | ||
* `--all`/`-a`: Search for every match, not just the first. | ||
## Writing implicit project stack documentation | ||
@@ -150,10 +161,7 @@ | ||
# Search for all caching topics (GraphQL+Restify) | ||
$ npm run stackdoc caching --all | ||
# Search for all caching, async topics (GraphQL+Restify+React+Redux) | ||
$ npm run stackdoc caching async -a | ||
# List search results for async strategies for React and Redux | ||
$ npm run stackdoc async --all --list | ||
# List first match for container (Docker) | ||
$ npm run stackdoc caching | ||
$ npm run stackdoc caching -l | ||
@@ -170,3 +178,3 @@ This is a quick alternative to writing long documents with manually | ||
haystack: '/path/to/mindmap', | ||
needle: 'searchstring', | ||
needles: ['searchstring'], | ||
@@ -173,0 +181,0 @@ // Search for all matches if true, otherwise only the first match. |
9502
182