Skip to content

Commit

Permalink
Improve documentation for -autoexpandIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o committed Jul 7, 2021
1 parent de7da74 commit fee0001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ twf path/to/subdir/file
### Flags

- `-autoexpandDepth <depth>`: Depth to which directories should be automatically expanded at startup. If `-1`, depth is unlimited. The default is `1`, meaning only the root should be expanded.
- `-autoexpandIgnore <regexp>`: Regular expression matching relative paths to ignore when auto-expanding directories at startup.
- `-autoexpandIgnore <regexp>`: Regular expression matching paths to ignore when auto-expanding directories at startup. The path that' tested against the regex is relative to the twf root and does not begin with `/` or `./`.

For example, `^\.git|internal/filetree/testdata$` would ignore the `.git` directory at the root level as well as the `internal/filetree/testdata` directory.
For example, `^(\.git|internal/filetree/testdata)$` would ignore the `.git` directory at the root level as well as the `internal/filetree/testdata` directory.

- `-bind <keybindings>`: Keybindings for command sequences.

Expand Down

0 comments on commit fee0001

Please sign in to comment.