Skip to content

Commit

Permalink
Allow indexing outside notebook directory
Browse files Browse the repository at this point in the history
Fixes: #89
  • Loading branch information
adamreese committed Oct 18, 2021
1 parent 9bd2eac commit 8c887d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/note_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8c887d0

Please sign in to comment.