Allow indexing from outside the notebook directory (#90)

pull/91/head
Adam Reese 3 years ago committed by GitHub
parent 9bd2eacf06
commit 39467a1b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,12 @@
All notable changes to this project will be documented in this file.
<!--## Unreleased-->
## Unreleased
### Fixed
* [#89](https://github.com/mickael-menu/zk/issues/89) Calling `zk index` from outside the notebook (contributed by [@adamreese](https://github.com/mickael-menu/zk/pull/90)).
## 0.7.0

@ -123,7 +123,7 @@ func (t *indexTask) execute(callback func(change paths.DiffChange)) (NoteIndexin
// FIXME: Use the FS?
count, err := paths.Diff(source, target, force, func(change paths.DiffChange) error {
callback(change)
absPath := filepath.Join(change.Path)
absPath := filepath.Join(t.path, change.Path)
switch change.Kind {
case paths.DiffAdded:

Loading…
Cancel
Save