Skip to content

Commit 000f2b0

Browse files
authored
Move installation section, copyedit
1 parent 921d3ab commit 000f2b0

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ Tree query is a tool that searches across indented lines.
66

77
It is a replacement for Roam's query system. It supports everything Roam does, except for block references.
88

9+
## Quickstart
10+
11+
**Query in current directory:**
12+
```
13+
tree-query '{and: [[Page 1]] [[Page 2]]}' .
14+
```
15+
[*Learn to navigate to a working directory with `cd`*](https://linuxize.com/post/linux-cd-command/)
16+
17+
**Query in a folder:**
18+
```
19+
tree-query '{and: [[Page 1]] [[Page 2]]}' /Users/steve/myfoldername/
20+
```
21+
*Learn to get the location of a folder on [macOS](https://osxdaily.com/2009/11/23/copy-a-files-path-to-the-terminal-by-dragging-and-dropping/), [Windows](https://www.top-password.com/blog/copy-full-path-of-a-folder-file-in-windows/), or [GNU+Linux](https://unix.stackexchange.com/questions/102551/mouse-shortcut-to-copy-the-path-to-a-file-in-the-gnome-file-manager).*
22+
23+
Or query in multiple folders and files:
24+
25+
```
26+
tree-query '{and: [[Page 1]] [[Page 2]]}' /Users/steve/myfoldername/ file1
27+
```
28+
29+
**Query stdin with pipes:**
30+
```
31+
cat myfile | tree-query '{and: [[Page 1]] [[Page 2]]}'
32+
```
33+
[*Learn to build powerful no-code applications using pipes*](https://youtu.be/tc4ROCJYbm0?t=360)
34+
935
## Installation
1036

1137
### Build from source
@@ -16,7 +42,7 @@ On FreeBSD, GNU+Linux, and macOS, open Terminal and go:
1642
curl https://dlang.org/install.sh | bash -s
1743
```
1844

19-
On Windows, download and install [Git Bash](https://gitforwindows.org/):
45+
On Windows, download and install [Git Bash](https://gitforwindows.org/), then run:
2046
```
2147
mkdir %USERPROFILE%\dlang
2248
powershell.exe -Command "wget https://dlang.org/install.sh -OutFile %USERPROFILE%\dlang\install.sh"
@@ -39,32 +65,6 @@ chmod 700 ~/Downloads/tree-query
3965
sudo mv ~/Downloads/tree-query /usr/local/bin
4066
```
4167

42-
## Quickstart
43-
44-
**Query in current directory:**
45-
```
46-
tree-query '{and: [[Page 1]] [[Page 2]]}' .
47-
```
48-
[*Learn to navigate to a working directory with `cd`*](https://linuxize.com/post/linux-cd-command/)
49-
50-
**Query in a folder:**
51-
```
52-
tree-query '{and: [[Page 1]] [[Page 2]]}' /Users/steve/myfoldername/
53-
```
54-
*Learn to get the location of a folder on [macOS](https://osxdaily.com/2009/11/23/copy-a-files-path-to-the-terminal-by-dragging-and-dropping/), [Windows](https://www.top-password.com/blog/copy-full-path-of-a-folder-file-in-windows/), or [GNU+Linux](https://unix.stackexchange.com/questions/102551/mouse-shortcut-to-copy-the-path-to-a-file-in-the-gnome-file-manager).*
55-
56-
Or query in multiple folders and files:
57-
58-
```
59-
tree-query '{and: [[Page 1]] [[Page 2]]}' /Users/steve/myfoldername/ file1
60-
```
61-
62-
**Query stdin with pipes:**
63-
```
64-
cat myfile | tree-query '{and: [[Page 1]] [[Page 2]]}'
65-
```
66-
[*Learn to build powerful no-code applications using pipes*](https://youtu.be/tc4ROCJYbm0?t=360)
67-
6868
## Features
6969

7070
This section is a work-in-progress.

0 commit comments

Comments
 (0)