-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handover Focus #28
Comments
Maybe it would be a start, to open the file(s) that were modified last? While that surely is not 100% accurate, it could be worth a try. Implementing it isn't editor specific (at least the detection mechanism) and there could be a config setting to control the time span of files (last 60 seconds before mob next for example). |
Thanks for the great idea. Do I understand correctly that you would determine the last modified timestamps of any files changed as the first step when entering 'mob next' and then we could add that file to the commit message so that the next person doing 'mob start' could open that file explicitly? What do you mean be controlling the time span of files? Can you elaborate that, please? |
Right, let me try to sort out the ideas I had in mind. The simplest thing would be, to determine the youngest file during
Does that make sense? |
Format of the git commit message:
Paths sorted by last modified desc. |
Not sure if we should put this on hold. It doesn't make that much sense with the CLI alone, only in combination with an IDE. And the IDE plugins aren't there yet. |
Putting on hold. |
Problem
Handover includes handing over code but also the current focus. The current focus typically is the opened file, and maybe even the cursor position. Maybe also all opened files in the project.
Solution Idea for handover opened file
We can get the title of intellij window on osx via
osascript -e "tell application \"System Events\" to get the title of first window of process \"idea\""
From the title, we can deduct the last opened file. On
mob next
, we can put the filename in the commit message of the WIP commit. And on the nextmob start
we can look for a file with that name and open it.Challenges
Any thoughts on this? Not sure whether this is worth it, but found the idea interesting to think about at least.
The text was updated successfully, but these errors were encountered: