<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-prog-general--find-file-respecting-split.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-25T13:00:20+00:00</updated>
<entry>
<title>fix(prog-general): open the project todo in the other window when split</title>
<updated>2026-05-25T13:00:20+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-25T13:00:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=92eaba30ae35727509f1d9d6dcc467c248f627dc'/>
<id>urn:sha1:92eaba30ae35727509f1d9d6dcc467c248f627dc</id>
<content type='text'>
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.
</content>
</entry>
</feed>
