Replies: 11 comments 1 reply
-
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)) |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
That's an interesting idea. So do you agree that the command I posted is reasonable to add? Or will it meet your needs? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Well, I haven't added it yet... :) |
Beta Was this translation helpful? Give feedback.
-
This function works great for me and was exactly what I wanted. |
Beta Was this translation helpful? Give feedback.
-
Since changing Let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
Hmm I must admit that I don't quite see the value of the new |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.Beta Was this translation helpful? Give feedback.
All reactions