-
Notifications
You must be signed in to change notification settings - Fork 15
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hypothetical activities-update-current-default
#45
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
Comments
Somehow I've developed the habit of holding down the Ctrl key and pressing (defun activities-redefine (activity)
"Redefine ACTIVITY."
(interactive (list (activities-completing-read :prompt "Redefine activity")))
(activities-new (activities-activity-name activity) :forcep t)) |
You still have to type out the activity name then! This looks good, but I'm not sure why the user wants/needs to select an activity. Only the current activity can be redefined with the current window/buffer config, yes? |
No, the default name is for the current activity, so you only have to press RET.
Why? The idea is that these commands behave consistently and allow the user to select any activity, defaulting to the current one when there is one. |
Ahah... E.g., if you have two closely related activities that share some (/most) buffers. For example, I've thought of using sometimes a convention like |
That's an interesting idea. So do you agree that the command I posted is reasonable to add? Or will it meet your needs? |
Yes, I just tried it and it works very well, and would also support the "update this state as something else" It also reminds me that once we get #20 sorted, I want to provide marginalia styling for an activity that includes whether it is current, whether it has been modified from its default state, its buffers/file/window count, the coarse modification age of the associated files (1hr, 1day, 1 week, etc.), and/or possibly some other "last saved" age, if the activity record stores that. |
Well, I haven't added it yet... :) |
This function works great for me and was exactly what I wanted. |
Since changing Let me know what you think. |
Hmm I must admit that I don't quite see the value of the new |
I'm leaning toward expecting users who really need a separate command for that to add something like this to their config: (keymap-global-set "C-x C-a C-r"
(defun ap/activities-redefine ()
(interactive)
(let ((current-prefix-arg t))
(call-interactively #'activities-define)))) I want to keep the number of commands down. So if you don't mind, I'll wait and see if anyone else says that they also need it as a separate command. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am still missing a simple command to quickly update the default state for the current activity (see #16). I came up with this:
Which I bind to
C-S-<f10>
. This works perfectly: updating current activity (if any) after asking permission. I'm certain others would use this feature (and the method to update default would be more visible) if installed as a command.The text was updated successfully, but these errors were encountered: