I've gotten in a habit of storing my todo's in the following format, and I'm curious if there's a way to automate this... * Daily ** 2006-09 *** 2006-09-25 **** TODO Item One I don't always have an item for each day, its sparsely populated, but I'd like to automate making the first few headings. Any suggestions? Even a macro? ;] ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
On Sep 26, 2006, at 1:58, Russell Adams wrote:
> I've gotten in a habit of storing my todo's in the following format,
> and I'm curious if there's a way to automate this...
>
> * Daily
> ** 2006-09
> *** 2006-09-25
> **** TODO Item One
>
> I don't always have an item for each day, its sparsely populated, but
> I'd like to automate making the first few headings.
>
> Any suggestions? Even a macro? ;]
The cl macro "loop" is your friend....
(defun my-date-tree (y1 y2)
(interactive "nFirst year: \nnLast year: ")
(require 'calendar)
(loop for y from y1 to y2 do
(message "Doing year %d..." y)
(insert "* " (format "%4d" y) "\n")
(loop for m from 1 to 12 do
(insert "** " (format "%4d-%02d" y m) "\n")
(loop for d from 1 to 31 do
(when (= m (car
(calendar-gregorian-from-absolute
(calendar-absolute-from-gregorian
(list m d y)))))
(insert "*** " (format "%4d-%02d-%02d" y m d) "\n"))))))
Hope this helps
- Carsten
The way I'm reading that macro, it'll prompt me for a date, etc. That would be useful for creating a range of dates in a tree if I needed to define a time period. I guess I didn't explain myself clearly. I wanted to generate those dated headings under the "Daily" heading for the current date only. Just a shortcut so I can hit a single key to add todo items for today, and have them added to my chronological "Daily" tree. I've just found that I'm managing TODO and agenda scheduled items well, but I didn't have a good way to handle all the little miscellaneous items that pop up. No reason to spend time filing them elsewhere, just a date would suffice. It also helps keep the tree sparse when searching. Russell On Tue, Sep 26, 2006 at 02:37:27PM +0200, Carsten Dominik wrote: > > On Sep 26, 2006, at 1:58, Russell Adams wrote: > > >I've gotten in a habit of storing my todo's in the following format, > >and I'm curious if there's a way to automate this... > > > >* Daily > >** 2006-09 > >*** 2006-09-25 > >**** TODO Item One > > > >I don't always have an item for each day, its sparsely populated, but > >I'd like to automate making the first few headings. > > > >Any suggestions? Even a macro? ;] > > The cl macro "loop" is your friend.... > > (defun my-date-tree (y1 y2) > (interactive "nFirst year: \nnLast year: ") > (require 'calendar) > (loop for y from y1 to y2 do > (message "Doing year %d..." y) > (insert "* " (format "%4d" y) "\n") > (loop for m from 1 to 12 do > (insert "** " (format "%4d-%02d" y m) "\n") > (loop for d from 1 to 31 do > (when (= m (car > (calendar-gregorian-from-absolute > (calendar-absolute-from-gregorian > (list m d y))))) > (insert "*** " (format "%4d-%02d-%02d" y m d) "\n")))))) > > Hope this helps > > - Carsten > ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
I started tinkering, this being my first macro. I can't say its behaving as I expected. (defun my-daily-insertion (interactive) (beginning-of-buffer) (re-search-forward "DAILY-INSERTION-POINT") (forward-line -1) (insert "*** " (format-time-string "%Y%m%d" (current-time)) ) ) I'd welcome input. Russell On Wed, Sep 27, 2006 at 10:09:21AM -0500, Russell Adams wrote: > The way I'm reading that macro, it'll prompt me for a date, etc. That > would be useful for creating a range of dates in a tree if I needed to > define a time period. > > I guess I didn't explain myself clearly. I wanted to generate those > dated headings under the "Daily" heading for the current date > only. Just a shortcut so I can hit a single key to add todo items for > today, and have them added to my chronological "Daily" tree. > > I've just found that I'm managing TODO and agenda scheduled items > well, but I didn't have a good way to handle all the little > miscellaneous items that pop up. No reason to spend time filing them > elsewhere, just a date would suffice. It also helps keep the tree > sparse when searching. > > Russell > > On Tue, Sep 26, 2006 at 02:37:27PM +0200, Carsten Dominik wrote: > > > > On Sep 26, 2006, at 1:58, Russell Adams wrote: > > > > >I've gotten in a habit of storing my todo's in the following format, > > >and I'm curious if there's a way to automate this... > > > > > >* Daily > > >** 2006-09 > > >*** 2006-09-25 > > >**** TODO Item One > > > > > >I don't always have an item for each day, its sparsely populated, but > > >I'd like to automate making the first few headings. > > > > > >Any suggestions? Even a macro? ;] > > > > The cl macro "loop" is your friend.... > > > > (defun my-date-tree (y1 y2) > > (interactive "nFirst year: \nnLast year: ") > > (require 'calendar) > > (loop for y from y1 to y2 do > > (message "Doing year %d..." y) > > (insert "* " (format "%4d" y) "\n") > > (loop for m from 1 to 12 do > > (insert "** " (format "%4d-%02d" y m) "\n") > > (loop for d from 1 to 31 do > > (when (= m (car > > (calendar-gregorian-from-absolute > > (calendar-absolute-from-gregorian > > (list m d y))))) > > (insert "*** " (format "%4d-%02d-%02d" y m d) "\n")))))) > > > > Hope this helps > > > > - Carsten > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
On Feb 8, 2007, at 17:05, Russell Adams wrote: > I started tinkering, this being my first macro. Looks very good already. > > I can't say its behaving as I expected. > > (defun my-daily-insertion Every funtion needs an argument list, even if it is the empty one: (defun my-daily-insertion () > (interactive) > (beginning-of-buffer) Correct, but better use (goto-char (point-min)), has fewer side effects. > (re-search-forward "DAILY-INSERTION-POINT") > (forward-line -1) > (insert "*** " (format-time-string "%Y%m%d" (current-time)) ) > ) Looks all fine to me. - Carsten > > I'd welcome input. > > Russell > > On Wed, Sep 27, 2006 at 10:09:21AM -0500, Russell Adams wrote: >> The way I'm reading that macro, it'll prompt me for a date, etc. That >> would be useful for creating a range of dates in a tree if I needed to >> define a time period. >> >> I guess I didn't explain myself clearly. I wanted to generate those >> dated headings under the "Daily" heading for the current date >> only. Just a shortcut so I can hit a single key to add todo items for >> today, and have them added to my chronological "Daily" tree. >> >> I've just found that I'm managing TODO and agenda scheduled items >> well, but I didn't have a good way to handle all the little >> miscellaneous items that pop up. No reason to spend time filing them >> elsewhere, just a date would suffice. It also helps keep the tree >> sparse when searching. >> >> Russell >> >> On Tue, Sep 26, 2006 at 02:37:27PM +0200, Carsten Dominik wrote: >>> >>> On Sep 26, 2006, at 1:58, Russell Adams wrote: >>> >>>> I've gotten in a habit of storing my todo's in the following format, >>>> and I'm curious if there's a way to automate this... >>>> >>>> * Daily >>>> ** 2006-09 >>>> *** 2006-09-25 >>>> **** TODO Item One >>>> >>>> I don't always have an item for each day, its sparsely populated, >>>> but >>>> I'd like to automate making the first few headings. >>>> >>>> Any suggestions? Even a macro? ;] >>> >>> The cl macro "loop" is your friend.... >>> >>> (defun my-date-tree (y1 y2) >>> (interactive "nFirst year: \nnLast year: ") >>> (require 'calendar) >>> (loop for y from y1 to y2 do >>> (message "Doing year %d..." y) >>> (insert "* " (format "%4d" y) "\n") >>> (loop for m from 1 to 12 do >>> (insert "** " (format "%4d-%02d" y m) "\n") >>> (loop for d from 1 to 31 do >>> (when (= m (car >>> (calendar-gregorian-from-absolute >>> (calendar-absolute-from-gregorian >>> (list m d y))))) >>> (insert "*** " (format "%4d-%02d-%02d" y m d) "\n")))))) >>> >>> Hope this helps >>> >>> - Carsten >>> >> ------------------------------------------------------------------ >> Russell Adams RLAdams@AdamsInfoServ.com >> >> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ >> >> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477
Hi fellows, I have a question/feature request. Often tables are a very easy and apropriate way to structure information that are fluent. I work at the following table (e.g.): | Hotel | Manager | price | requested | booked | ----------------------------------------------- | blah | Mayer | 250 | | | | bluh | Schulze | 260 | | | ------------------------------------------------ Now here comes what would be neat: The tables lists all Hotels who offer seminar rooms, which person is banquett manager, the price for the room. Since I often book rooms for seminars (or invite people to workshops etc.) managing bookings/invitations via tables is more effective than doing it with TODO-items (more so because the same table is used over and over again). What would help greatly would be a way to manage fields the same way as with TODO items: A key-string would place a "NO" "RUNNING" "ANSWERED" button right there ... same way as with TODO-items. Is this already possible? Haven't found it in the manual. Greetings, ray
Raimund Kohl-Füchsle <Raimund.Kohl@nabuli.de> writes:
> What would help greatly would be a way to manage fields the same way
> as with TODO items: A key-string would place a "NO" "RUNNING"
> "ANSWERED" button right there ... same way as with TODO-items.
I think what you need is colum view for properties, rather than tables.
Each property is like a field, and you switch between values easily.
You can select the property you want to display in the column view.
Each headline will be displayed as a table row in column view.
And finally, you can capture this column view with C-c C-x r.
See details in the manual:
(info "(org)Column view")
(info "(org)Capturing Column View)
I think it's worth giving it a try. Tables have their own ways of
handling cells and "buttons" would be confusing IMO.
--
Bastien
I've been trying to make an org-remember template that will grab the title of the webpage I want to create a link to. This seems to not be possible, although I could very well be wrong. I was curious as to whether a new keyword could be created for w3 and w3m links. Seems that :title would be very useful. I am pretty sure I could code this myself... doesn't seem to be terribly difficult. It is not likely though that I would ever contribute code to anything else, so filling out the form and waiting for all of it to get where it needs to go seems a bit of a waste. Thanks for listening, rdc -- Robert D. Crawford rdc1x@comcast.net Every journalist has a novel in him, which is an excellent place for it.
Hi Robert, "Robert D. Crawford" <rdc1x@comcast.net> writes: > I've been trying to make an org-remember template that will grab the > title of the webpage I want to create a link to. This seems to not be > possible, although I could very well be wrong. I was curious as to > whether a new keyword could be created for w3 and w3m links. Seems that > :title would be very useful. When I use w3m, the annotation substitution (%a) in the remember template does the trick. It grabs the url and title of the current page (using org-store-link). For instance, if I call remember while visiting the org-mode home page, %a in the remember template is replaced by: [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]] Best, Matt
You night want to use this: http://github.com/SebastianRose/worglet/tree/master Which is an attempt to make `org-browser-url.el' and `org-annotation-handler.el' work without any external dependencies on shell scripts. Also, you'll need to set up only one protocol in Firefox/Opera/OS. The file provides three functions of interest: org-remember org-store-link org-open-source which do just what their names say. `org-browser-url.el' and `org-annotation-handler.el' are in the 'contrib' subdirectory of the Org-mode distribution. Best, Sebastian "Robert D. Crawford" <rdc1x@comcast.net> writes: > I've been trying to make an org-remember template that will grab the > title of the webpage I want to create a link to. This seems to not be > possible, although I could very well be wrong. I was curious as to > whether a new keyword could be created for w3 and w3m links. Seems that > :title would be very useful. > > I am pretty sure I could code this myself... doesn't seem to be terribly > difficult. It is not likely though that I would ever contribute code to > anything else, so filling out the form and waiting for all of it to get > where it needs to go seems a bit of a waste. > > Thanks for listening, > rdc -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de
Hello Matthew, Matthew Lundin <mdl@imapmail.org> writes: >> I've been trying to make an org-remember template that will grab the >> title of the webpage I want to create a link to. This seems to not be >> possible, although I could very well be wrong. I was curious as to >> whether a new keyword could be created for w3 and w3m links. Seems that >> :title would be very useful. > > When I use w3m, the annotation substitution (%a) in the remember > template does the trick. It grabs the url and title of the current page > (using org-store-link). Thanks. This does work for w3m but using w3 it returns this: * [[http://www.osnews.com/story/21181/The_IBM_X41_as_a_Lightweight_Linux_Laptop]] :laptop: from this template: '((?b "* [[%a] %^g %!" "~/bookmarks.org" bottom) Later today, if I get the chance, I'll explore the solution proposed by Sebastian Rose. Thanks again, rdc -- Robert D. Crawford rdc1x@comcast.net Chinese saying: "He who speak with forked tongue, not need chopsticks."
Sebastian Rose <sebastian_rose@gmx.de> writes:
> You night want to use this:
>
> http://github.com/SebastianRose/worglet/tree/master
Please correct me if I am wrong but this seems to be the wrong solution
for w3 and w3m. I don't use a graphical browser because of my need for
a screen reader. I use emacs and emacspeak almost exclusively for my
computing needs. Sorry I wasn't clear in my needs and use.
Thanks,
rdc
--
Robert D. Crawford rdc1x@comcast.net
All kings is mostly rapscallions.
-- Mark Twain
Hello Charles, Charles Philip Chan <cpchan@sympatico.ca> writes: > "Robert D. Crawford" <rdc1x@comcast.net> writes: > >> I use emacs and emacspeak almost exclusively for my computing >> needs. Sorry I wasn't clear in my needs and use. > > I am curious as to why you are using w3, since, from what I have read, > emacspeak supports w3m as well: That is true. > w3 is so slow and feature incomplete. Slow, yes. Feature incomplete, no. There are several things w3 can do that w3m cannot. Table navigation, support for aural css, fontification of all tags (pre, code, and the like immediately come to mind), different attributes for h[1-6] tags, I am aware of nothing w3m can do that w3 cannot. Also, since w3 is pure lisp it can be extended in ways that w3m cannot. rdc -- Robert D. Crawford rdc1x@comcast.net
Hi Robert,
if you pull a new git version, the page title will now correctly
appear in links created in w3-mode buffers.
Thanks to all who contributed to this discussion.
- Carsten
On Mar 23, 2009, at 3:14 AM, Robert D. Crawford wrote:
> I've been trying to make an org-remember template that will grab the
> title of the webpage I want to create a link to. This seems to not be
> possible, although I could very well be wrong. I was curious as to
> whether a new keyword could be created for w3 and w3m links. Seems
> that
> :title would be very useful.
>
> I am pretty sure I could code this myself... doesn't seem to be
> terribly
> difficult. It is not likely though that I would ever contribute
> code to
> anything else, so filling out the form and waiting for all of it to
> get
> where it needs to go seems a bit of a waste.
>
> Thanks for listening,
> rdc
> --
> Robert D. Crawford rdc1x@comcast.net
>
> Every journalist has a novel in him, which is an excellent place for
> it.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Hello Carsten,
Carsten Dominik <carsten.dominik@gmail.com> writes:
> if you pull a new git version, the page title will now correctly
> appear in links created in w3-mode buffers.
>
> Thanks to all who contributed to this discussion.
Thank you. I just tested it and works well. Exactly what I needed.
rdc
--
Robert D. Crawford rdc1x@comcast.net
Hi All, I have to reschedule quite a few items daily. Often they're yesterday's items that I need to reschedule for today. `C-c C-s . RET' is a bit much typing for that, so I re-bound `S' to org-agenda-schedule. But `S . RET' is still a bit much. I'd like it if the default when rescheduling was always for today, instead of the date the item is already scheduled for, so I could `S RET' in the usual case. What about a customizable option to set the default schedule-for date? -- Dave Abrahams BoostPro Computing http://www.boostpro.com
David Abrahams <dave@boostpro.com> writes:
> Hi All,
>
> I have to reschedule quite a few items daily. Often they're
> yesterday's items that I need to reschedule for today.
>
> `C-c C-s . RET'
>
> is a bit much typing for that, so I re-bound `S' to
> org-agenda-schedule. But
>
> `S . RET'
>
> is still a bit much. I'd like it if the default when rescheduling was
> always for today, instead of the date the item is already scheduled
> for, so I could
>
> `S RET'
>
> in the usual case. What about a customizable option to set the
> default schedule-for date?
Hi David,
Why are you rescheduling items everyday? That seems like a lot of
overhead to me. What's wrong with leaving the item on the first
scheduled date and just allow the agenda to show how many days it has
already been scheduled for -- until you mark it DONE?
Alternatively if it's a repeating task, you can use a single day
repeater and just mark the item DONE to move it to the next day.
One thing I've been trying to do is minimize the amount of time I spend
on overhead stuff for my tasks and trading that for time I actually do
work on completing the tasks instead.
Regards,
Bernt
Hi,
David Abrahams <dave@boostpro.com> writes:
> I have to reschedule quite a few items daily. Often they're
> yesterday's items that I need to reschedule for today.
>
> `C-c C-s . RET'
>
> is a bit much typing for that, so I re-bound `S' to
> org-agenda-schedule. But
>
> `S . RET'
>
> is still a bit much. I'd like it if the default when rescheduling was
> always for today, instead of the date the item is already scheduled
> for, so I could
>
> `S RET'
>
> in the usual case. What about a customizable option to set the
> default schedule-for date?
Just curious: Why don't you use the bulk action?
a) Mark all items with `m'
b) `B' `s' `.' RET.
For 20 items, thats:
20x `m' + 4 Keys for b) = 24 keypresses
(if those items are right next to each other and need no navigation)
Your approach would need 20 item x `S Ret' = 40 keypresses :).
Memnon
At Sun, 10 Oct 2010 11:43:07 -0400, Bernt Hansen wrote: > > David Abrahams <dave@boostpro.com> writes: > > > Hi All, > > > > I have to reschedule quite a few items daily. Often they're > > yesterday's items that I need to reschedule for today. > > > > `C-c C-s . RET' > > > > is a bit much typing for that, so I re-bound `S' to > > org-agenda-schedule. But > > > > `S . RET' > > > > is still a bit much. I'd like it if the default when rescheduling was > > always for today, instead of the date the item is already scheduled > > for, so I could > > > > `S RET' > > > > in the usual case. What about a customizable option to set the > > default schedule-for date? > > Hi David, > > Why are you rescheduling items everyday? Because there's always something I didn't get done yesterday, and I often have pushed too many tasks forward onto a given day, and don't want to see more than about 15 TODOs in my agenda on any given day. > That seems like a lot of overhead to me. What's wrong with leaving > the item on the first scheduled date and just allow the agenda to > show how many days it has already been scheduled for -- until you > mark it DONE? Because then they show up in the consciousness like a failure instead of as just what I have to do today, and they tend to pile up and lead to a state of despair, where the agenda is too daunting to face. They need to be processed. I need to re-negotiate the contract I made with myself about when they were getting done. > Alternatively if it's a repeating task, you can use a single day > repeater and just mark the item DONE to move it to the next day. It's not. > One thing I've been trying to do is minimize the amount of time I > spend on overhead stuff for my tasks and trading that for time I > actually do work on completing the tasks instead. Thanks, but I need to do this to keep on track. Regards, -- Dave Abrahams BoostPro Computing http://www.boostpro.com
On Sun, Oct 10, 2010 at 09:50:47AM -0400, David Abrahams wrote:
> I have to reschedule quite a few items daily. Often they're
> yesterday's items that I need to reschedule for today.
> `C-c C-s . RET'
> is a bit much typing for that
I use S-right on the agenda buffer, which is quite easy.
Regards,
.j.
P.S. My reason to do this every day: day planning and regaining
consciouness about things to be done. Takes 1 minute at most.
On Oct 10, 2010, at 3:50 PM, David Abrahams wrote:
>
> Hi All,
>
> I have to reschedule quite a few items daily. Often they're
> yesterday's items that I need to reschedule for today.
>
> `C-c C-s . RET'
>
> is a bit much typing for that, so I re-bound `S' to
> org-agenda-schedule. But
>
> `S . RET'
>
> is still a bit much. I'd like it if the default when rescheduling was
> always for today, instead of the date the item is already scheduled
> for, so I could
>
> `S RET'
>
> in the usual case. What about a customizable option to set the
> default schedule-for date?
After giving this some thought, I don't this this can be done in a
clear and non-confusing way. I do think it is necessary to somehow
change the date relative to what the previously set date is. The only
way to make this half way transparently is to show that date in the
prompt as the default date.
There was lots of good advice to so what you want in different ways,
including not rescheduling, or using bulk actions in the agenda.
Finally, if you still want a fast command doing this:
(defun org-agenda-reschedule-to-today ()
(interactive)
(flet ((org-read-date (&rest rest) (current-time)))
(call-interactively 'org-agenda-schedule)))
- Carsten
At Mon, 11 Oct 2010 09:21:05 +0200, Carsten Dominik wrote: > > After giving this some thought, I don't this this can be done in a > clear and non-confusing way. Thanks for spending so much time/energy considering it, despite the fact that it would be incoherent with the rest of your interface! > I do think it is necessary to somehow change the date relative to > what the previously set date is. The only way to make this half way > transparently is to show that date in the prompt as the default > date. Okay. > There was lots of good advice to so what you want in different ways, > including not rescheduling, or using bulk actions in the agenda. You know, I have `f' and `b' bound to org-agenda-date-later/-earlier, and that would be perfectly adequate for me, *if* I got appropriate visual feedback. The problem is the red "S2" or "S3" I'm looking at doesn't change on the fly when I reschedule. And it's hard to train myself not to hit `f' twice when I see S2 :-) > Finally, if you still want a fast command doing this: > > (defun org-agenda-reschedule-to-today () > (interactive) > (flet ((org-read-date (&rest rest) (current-time))) > (call-interactively 'org-agenda-schedule))) That's a good idea. I don't think I need etags in my agenda buffer, so `M-.' works. -- Dave Abrahams BoostPro Computing http://www.boostpro.com
Carsten Dominik <carsten.dominik@gmail.com> writes:
> Finally, if you still want a fast command doing this:
>
> (defun org-agenda-reschedule-to-today ()
> (interactive)
> (flet ((org-read-date (&rest rest) (current-time)))
> (call-interactively 'org-agenda-schedule)))
Useful, thanks!
I added it to org-hacks.org under this section :
"Reschedule agenda items to today with a single command"
--
Bastien
A little data destruction protection. I put together a table and had to destroy all copies of it after having tried to set up averages for a couple columns. The averages didn't work and data got zeroed out and I lost an entire column of data that way. One of my problems I'm sure was caused because I tried data gathering first then tried modifying the original table and adding the formulas later. Next time I attempt anything with org and mathematics, I'll write my data set down in braille and ought to have done that with this data set as well. What might have helped here a little is if a column is going to be put into existing columns the column inserts rather than overwrites any column that might be there. The broken table I ended up with had six columns and two of those were single space columns out to the right with nothing in them. There ought to have been before I did anything with formulas at most four columns in the table. I did enter time stamps in as two separated date and time fields originally then when I read what all could be put into time stamps, I consolidated those first two columns into a single time stamp column. I don''t know if that consolidation did further damage or not.
Hi Jude, when deleting data with just one keystroke (like in the case you describe), there is always the possibility to _undo_ with C-/ Is there something more we can do? Best, -- Bastien
[-- Attachment #1: Type: text/plain, Size: 1708 bytes --] Recommendation: use something like GIT (or one of the other fine source control systems out there) to checkpoint your work, and save the history of your org files. It can even be set up in emacs to periodically save all org files and check in a snapshot. HTH, Brian ________________________________ From: Jude DaShiell <jdashiel@shellworld.net> To: emacs-orgmode@gnu.org Sent: Monday, July 18, 2011 4:36 PM Subject: [O] feature request A little data destruction protection. I put together a table and had to destroy all copies of it after having tried to set up averages for a couple columns. The averages didn't work and data got zeroed out and I lost an entire column of data that way. One of my problems I'm sure was caused because I tried data gathering first then tried modifying the original table and adding the formulas later. Next time I attempt anything with org and mathematics, I'll write my data set down in braille and ought to have done that with this data set as well. What might have helped here a little is if a column is going to be put into existing columns the column inserts rather than overwrites any column that might be there. The broken table I ended up with had six columns and two of those were single space columns out to the right with nothing in them. There ought to have been before I did anything with formulas at most four columns in the table. I did enter time stamps in as two separated date and time fields originally then when I read what all could be put into time stamps, I consolidated those first two columns into a single time stamp column. I don''t know if that consolidation did further damage or not. [-- Attachment #2: Type: text/html, Size: 2404 bytes --]
Org-mode has proven tremendously useful in writing musical analyses, but it would also be nice to provide musical examples in plain text. Is there anything like this available? If not, I may try to do it myself. I'm finally getting my act together and finishing the Emacs Lisp Intro; but any help pointing me to the right examples, or the right conceptual frameworks would be much appreciate. Here is more or less what I would want: ---------- ---------- ---------- ---------- ---------- Pretend that is the staff. The user places the cursor on the staff, and therefore enters "note entry mode." The "note-entry" function is passed three args: one for the note, two for the rhythmic value. So if the user presses "F," "F" is passed as the first argument; if the user enters "8", "8" is passed as the second argument; if the user enters ".", "." is passed as the third argument. This produces a dotted 8th F note on the staff. The third argument is optional (since not all rhythmic values are dotted), and its value is nil by default. Anyway, that is a draft of what I would want. May already exist with slightly different functionality.
42 147 writes: > Org-mode has proven tremendously useful in writing musical analyses, but > it would also be nice to provide musical examples in plain text. > > Is there anything like this available? Yes. Org-Babel supports Lilypond. It's magic. http://www.lilypond.org/ http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html Yours, Christian
Christian Moe <mail@christianmoe.com> writes: > 42 147 writes: >> Is there anything like this available? > Yes. Org-Babel supports Lilypond. It's magic. > http://www.lilypond.org/ > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html Somewhere in my old files, I have a reference to an Emacs mode for entering music visually in a kind of ASCII mode, written by Neil Jerram if I remember correctly. But this was before Han-Wen and Jan wrote Lilypond. Now that Lilypond exists, it is an immensely more interesting avenue, in my opinion. Neil code would be fairly oldish anyway. I never tried using both Org and Lilypond as suggested, but it looks like a very appealing idea, I should try it. Thanks for the suggestion. François
Hi François
On Tue, Jun 25, 2013 at 6:29 PM, François Pinard
<pinard@iro.umontreal.ca> wrote:
> Somewhere in my old files, I have a reference to an Emacs mode for
> entering music visually in a kind of ASCII mode, written by Neil Jerram
> if I remember correctly.
I am very curios to see how this looked like and how it worked. With a
quick search I was not able to find it.
Michael
Raoul Comninos <revrari@mweb.co.za> writes:
> https://emacs.stackexchange.com/questions/62761/seeing-file-names-in-todo-entries-when-using-org-attach?noredirect=1#comment98901_62761
> ---
Listing all the attached files used to be the built-in, but it was
removed a few years ago.
Best,
Ihor
Raoul Comninos <revrari@mweb.co.za> writes:
> https://emacs.stackexchange.com/questions/62761/seeing-file-names-in-todo-entries-when-using-org-attach?noredirect=1#comment98901_62761
> ---
Listing all the attached files used to be the built-in, but it was
removed a few years ago.
Best,
Ihor
Ihor Radchenko <yantar92@gmail.com> writes:
> Raoul Comninos <revrari@mweb.co.za> writes:
>
>> https://emacs.stackexchange.com/questions/62761/seeing-file-names-in-todo-entries-when-using-org-attach?noredirect=1#comment98901_62761
>> ---
>
> Listing all the attached files used to be the built-in, but it was
> removed a few years ago.
>
> Best,
> Ihor
>
Oh, that's a pity. Thanks for responding.
Raoul Comninos <revrari@mweb.co.za> writes:
>> Listing all the attached files used to be the built-in, but it was
>> removed a few years ago.
> Oh, that's a pity. Thanks for responding.
You can still implement it on your side for personal use. There is
org-attach-after-change-hook where you can put a custom function saving
the attached file list (org-attach-file-list) into a property.
Best,
Ihor
I think something like the following will do (untested): (defun org-attach-save-file-list-to-property () "Save list of attachments to ORG_ATTACH_FILES property." (when-let* ((dir (org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))) (add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property) Best, Ihor
Ihor Radchenko <yantar92@gmail.com> writes:
> I think something like the following will do (untested):
>
> (defun org-attach-save-file-list-to-property ()
> "Save list of attachments to ORG_ATTACH_FILES property."
> (when-let* ((dir (org-attach-dir))
> (files (org-attach-file-list dir)))
> (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", "))))
> (add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property)
>
> Best,
> Ihor
I have copied the code to my dot Emacs, but now when I try to add an attachment now, it generates this error:
run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of
attachments to ORG_ATTACH_FILES property." (when-let* ((dir
(org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property
"ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))), 1
Can you help me with this?
Kind regards,
Raoul Comninos
Raoul Comninos <revrari@mweb.co.za> writes:
> I have copied the code to my dot Emacs, but now when I try to add an attachment now, it generates this error:
>
> run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of
> attachments to ORG_ATTACH_FILES property." (when-let* ((dir
> (org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property
> "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))), 1
>
> Can you help me with this?
You can try:
(defun org-attach-save-file-list-to-property (dir)
"Save list of attachments to ORG_ATTACH_FILES property."
(when-let* ((files (org-attach-file-list dir)))
(org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", "))))
(add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property)
Also, note that the list of files will only be updated if you
attach/delete files calling org-attach. If you change the attachment
folder manually, you will need to run M-x org-attach-sync.
Best,
Ihor
Ihor Radchenko <yantar92@gmail.com> writes: > Raoul Comninos <revrari@mweb.co.za> writes: > >> I have copied the code to my dot Emacs, but now when I try to add an attachment now, it generates this error: >> >> run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of >> attachments to ORG_ATTACH_FILES property." (when-let* ((dir >> (org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property >> "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))), 1 >> >> Can you help me with this? > > You can try: > > (defun org-attach-save-file-list-to-property (dir) > "Save list of attachments to ORG_ATTACH_FILES property." > (when-let* ((files (org-attach-file-list dir))) > (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))) > (add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property) > > Also, note that the list of files will only be updated if you > attach/delete files calling org-attach. If you change the attachment > folder manually, you will need to run M-x org-attach-sync. > > Best, > Ihor It works now and its awesome! I cannot believe that they had this feature and removed it. I am a very happy man and I cannot thank you enough. If you have time please add your answer and function to the original post. I feel others will make use of it too. https://emacs.stackexchange.com/questions/62761/seeing-file-names-in-todo-entries-when-using-org-attach/62792#62792 Kindest regards, Raoul Comninos
Ihor Radchenko <yantar92@gmail.com> writes:
> Raoul Comninos <revrari@mweb.co.za> writes:
>
>> I have copied the code to my dot Emacs, but now when I try to add an attachment now, it generates this error:
>>
>> run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of
>> attachments to ORG_ATTACH_FILES property." (when-let* ((dir
>> (org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property
>> "ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))), 1
>>
>> Can you help me with this?
>
> You can try:
>
> (defun org-attach-save-file-list-to-property (dir)
> "Save list of attachments to ORG_ATTACH_FILES property."
> (when-let* ((files (org-attach-file-list dir)))
> (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", "))))
> (add-hook 'org-attach-after-change-hook #'org-attach-save-file-list-to-property)
>
> Also, note that the list of files will only be updated if you
> attach/delete files calling org-attach. If you change the attachment
> folder manually, you will need to run M-x org-attach-sync.
>
> Best,
> Ihor
With your permission can I post your solution to stack-exchange,
crediting you?
Kindest regards,
Raoul Comninos
Raoul Comninos <revrari@mweb.co.za> writes:
> It works now and its awesome! I cannot believe that they had this
> feature and removed it. I am a very happy man and I cannot thank you enough.
This feature creates a lot of junk text when attachment folder gets very
large. For example, I keep my travel photos as attachments. There can be
hundreds of photos in a single attachment folder. Showing all the photo
names in a property would be not very useful.
On the other hand, if more people are interested, this feature can be
resurrected as a user-option (disabled by default).
Best,
Ihor
Raoul Comninos <revrari@mweb.co.za> writes: > With your permission can I post your solution to stack-exchange, > crediting you? Sure. The public message URL is https://orgmode.org/list/87sg70vsvy.fsf@localhost/ Best, Ihor
Am Mon, 18 Jan 2021 10:17:11 +0800 schrieb Ihor Radchenko <yantar92@gmail.com>: > Raoul Comninos <revrari@mweb.co.za> writes: > > > It works now and its awesome! I cannot believe that they had this > > feature and removed it. I am a very happy man and I cannot thank > > you enough. > > This feature creates a lot of junk text when attachment folder gets > very large. For example, I keep my travel photos as attachments. > There can be hundreds of photos in a single attachment folder. > Showing all the photo names in a property would be not very useful. > > On the other hand, if more people are interested, this feature can be > resurrected as a user-option (disabled by default). As an option I would use it! Detlef > > Best, > Ihor > >