Skip to content

Commit 0b3fd01

Browse files
committed
v1.4.0
1 parent b6662be commit 0b3fd01

4 files changed

Lines changed: 18 additions & 8 deletions

File tree

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ creates a note file at `<HOME>/notes-cli/blog/how-to-handle-files.md` where `<HO
100100
by `$NOTES_CLI_HOME` environment variable. The home directory is automatically created.
101101

102102
Category is `blog`. Every note must belong to one category. Category can be nested with `/`. For example,
103-
if have multitple blogs Blog A and Blog B, you may want to categorize blog posts with categories like
103+
if have multiple blogs Blog A and Blog B, you may want to categorize blog posts with categories like
104104
`blog/A`, `blog/B`.
105105

106-
Tags are `golang` and `file`. Tags are lables to organize notes and to make search notes easier.
106+
Tags are `golang` and `file`. Tags are labels to organize notes and to make search notes easier.
107107
Tags can be omitted.
108108

109109
Category and file name cannot start with `.` not to make hidden files/directories.
@@ -142,7 +142,7 @@ you also need to adjust directory structure manually (move the note file to new
142142
For more details, please check `notes new --help`.
143143

144144

145-
### Open notes you created flexibly
145+
### Flexibly open notes you created
146146

147147
Let's say to open some notes you created.
148148

@@ -235,11 +235,11 @@ It shows
235235
- Full path to the note file
236236
- Metadata `Category`, `Tags` and `Created`
237237
- Title of note
238-
- Body of note (upto 200 bytes)
238+
- Body of note (up to 200 bytes)
239239

240240
with colors.
241241

242-
When there are many notes, it outputs many lines. In the acse, a pager tool like `less` is useful
242+
When there are many notes, it outputs many lines. In the case, a pager tool like `less` is useful
243243
to see the output per page. `-A` global option is short of `--always-color`.
244244

245245
```
@@ -537,6 +537,15 @@ If you want to differentiate images directory from other category directories, p
537537
like `HOME/.images` since category directories cannot have `.` prefix as their names.
538538

539539

540+
### Is it possible to use `--color-always` by default?
541+
542+
Please use shell's alias feature as follows:
543+
544+
```sh
545+
alias notes='notes --color-always'
546+
```
547+
548+
540549
### How can I migrate from [memolist.vim](https://github.com/glidenote/memolist.vim)?
541550

542551
Please try [migration script](./scripts/migrate-from-memolist.rb).
@@ -612,7 +621,7 @@ endfunction
612621
command! -nargs=* NotesLastMod call <SID>notes_last_mod(<q-args>)
613622
```
614623

615-
- `:NotesGrep [args] /pat/`: It searches notes by `:vimgrep` with givein `/pat/`. Thanks to `:vimgrep`,
624+
- `:NotesGrep [args] /pat/`: It searches notes by `:vimgrep` with given `/pat/`. Thanks to `:vimgrep`,
616625
the search result is stored to a quickfix list. You can easily check matches and open the file from
617626
the list by open quickfix window with `:copen`.
618627
- `:NotesNew [args]`: It creates a new note and opens it with a new buffer. `args` is the same as

cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Cmd interface {
2020
}
2121

2222
// Version is version string of notes command. It conforms semantic versioning
23-
var Version = "1.3.0"
23+
var Version = "1.4.0"
2424

2525
// ParseCmd parses given arguments as command line options and returns corresponding subcommand instance.
2626
// When no subcommand matches or argus contains invalid argument, it returns an error

config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestNewConfigCustomizeHome(t *testing.T) {
115115
} {
116116
t.Run(tc.key, func(t *testing.T) {
117117
if runtime.GOOS != "windows" && tc.key == "APPLOCALDATA" {
118-
t.Skip("APPLOCALDATA is refered only on Windows")
118+
t.Skip("APPLOCALDATA is referred only on Windows")
119119
}
120120

121121
g := testNewConfigEnvGuard()

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ require (
1919
github.com/stretchr/testify v1.2.2 // indirect
2020
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a // indirect
2121
golang.org/x/sys v0.0.0-20181116161606-93218def8b18 // indirect
22+
golang.org/x/text v0.3.0
2223
gopkg.in/alecthomas/kingpin.v2 v2.2.6
2324
)

0 commit comments

Comments
 (0)