Skip to content

Commit

Permalink
Fix issue with project level journal shortcut from tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Mar 26, 2018
1 parent d61515b commit d7f3345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/imdone-atom.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ module.exports = ImdoneAtom =

getCurrentProject: ->
paths = atom.project.getPaths()
return unless paths.length > 0
active = atom.workspace.getActivePaneItem()
return unless paths.length > 0 || active.selectedPath
return active.selectedPath if active && active.selectedPath
return active.imdoneRepo.getPath() if active && active.imdoneRepo
if active && active.getPath && active.getPath()
return projectPath for projectPath in paths when active.getPath().indexOf(projectPath+path.sep) == 0
Expand Down
5 changes: 2 additions & 3 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Acceptance Criteria

#TODO: As a user I would like to set email reminders from TODO comments in my code +feature +imdoneio id:143 gh:361 ic:gh
#TODO: As a user I would like the label on my github issue to change if I move a task to a different list. +feature +imdoneio id:144 gh:363 ic:gh
#DOING: When creating a new project new journal file doesn't get noticed by watcher. +bug id:145 gh:372 ic:gh
- [x] Check if watcher is watching root folder
- [ ] alt-p only opens project journal file if user is in a file that's part of the project when it's pressed
#DOING: Sort in file and save to project is broken +bug id:146 gh:374 ic:gh
- [ ] Come up with solution for tasks not integrated yet. They need id's to be sorted.
- [ ] Maybe use the transform endpoint? Create a transformer for tasks with no id

0 comments on commit d7f3345

Please sign in to comment.