Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Resolves issue with note creation and prefix.
Browse files Browse the repository at this point in the history
Resolves #20.
  • Loading branch information
lexicalunit committed Sep 29, 2017
1 parent 144fac7 commit 1a42909
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/notes-view-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,8 @@ export default class NotesViewList {
didConfirmEmptySelection () {
const title = this.selectList.getFilterQuery()
if (title.length <= 0) return

this.didHide()
if (this.selectList.items.length > 0 &&
this.selectList.items[0].title.toLowerCase().startsWith(title)) {
atom.workspace.open(this.selectList.items[0].filePath)
} else {
NotesFs.openNote(title)
}
NotesFs.openNote(title)
}

/** Our override for our SelectList's didCancelSelection() callback. */
Expand Down

0 comments on commit 1a42909

Please sign in to comment.