aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-general--find-file-respecting-split.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(prog-general): open the project todo in the other window when splitCraig Jennings11 days1-0/+63
C-c p t (cj/open-project-root-todo) called find-file, which always opened todo.org in the selected window, replacing whatever I was looking at. Now it opens in the other window when the frame is split and in the current window when it isn't, through a small cj/--find-file-respecting-split helper. The helper is a top-level defun rather than buried in the projectile :config block so it can be unit-tested without loading projectile. I left cj/project-switch-actions alone. Opening the todo on a project switch is a different trigger and not what this fixes.