Reverting

40 views
Skip to first unread message

lawquest

unread,
Feb 6, 2012, 7:44:53 PM2/6/12
to Event and Task Manager
When, for any reason, I go to a day other than the current day, ETM
stays on that other day. So later, when putting in time or some such,
the time is logged on that non-current day. This is great when
putting in time spent (but not logged) on a prior date but a bother
when I am doing the right thing and putting in my time during the day
as I go, i.e, an hour or so ago, I searched for a plan hearing date
that took place in September of last year. After finding it (I love
the search function), I then went about doing something else and when
I finished that something else, put in my time. But the time was
logged on a date other than today because I had neglected to push the
space bar before entering it.

I looked in etmrc and didn't see anything I could set that might help
here.

I don't know if this is related but pass it along for what its
worth: at the end of the month, when I am reviewing my hours for
billing purposes, I do not want ETM to revert to today's date until I
tell it to. What I do as a practical matter at the end of the month is
to give ETM the following command (gui): o -b 1-1 -e 2-1 -g (c,
(y,m,d), T) -d 0 -T 1 -o -k !p and then open another version of ETM
and make any necessary changes in the second version. I guess I could
print the first version;s display and work off that, but I prefer not
doing so. Not long after I make a change using the second version of
ETM, the first version, without asking me, resets, and I have to put
in o -b 1-1 -e 2-1 -g (c,(y,m,d), T) -d 0 -T 1 -o -k !p again.

These are minor matters which probably don't need "fixing" at all, as
they stem from my inherent laziness. But if, during the day, ETM
would periodically revert to today's date and, at the end of the
month, stay still while I make the edits in the second version, my use
of ETM would be somewhat enhanced.

Thanks.

John

Dan

unread,
Feb 7, 2012, 1:06:49 PM2/7/12
to eventandt...@googlegroups.com
The highlighted date entered when you create a new item will always be the selected day (the first of the highlighted days) from the monthly calendar.  If you click on a date in the monthly calendar, this date will become the selected day.  etm will not reset the selected day even if it reloads the data file unless you tell it to do by, for example, clicking on a date in the monthly calendar or pressing the space bar.

If you have entered an option string such as the one you mention and you want to edit an item, why not just double click on it? This will display the item as is without changing the date.  Why open a second instance of etm? 

etm checks once every minute for any changes to any of its data files and, if any changes are found, then reloads the modified files. If this were not the case, then any changes you made in one instance of etm would not be reflected in the other.  When the data files are reloaded, the selected day is not changed but the viewing options are otherwise reset to the defaults. Are you asking for last option string to be restored after the reload?

By the way, if you have two instances of etm open and make changes to items in the same data file from each of the etm instances before a reload has taken place, the results may not be what you would want.  If the first change affects the line lumbers of the items, then the second change may be made to the wrong lines from the file thus corrupting the file.

-Dan

lawquest

unread,
Feb 7, 2012, 6:33:29 PM2/7/12
to Event and Task Manager
"If you have entered an option string such as the one you mention and
you
> want to edit an item, why not just double click on it? This will display
> the item as is without changing the date. Why open a second instance of
> etm? "

So long as the display produced by the option string shows, I cannot
edit the date by clicking on the date in the calendar. And, of
course, clicking on the display generated by the option string does
nothing.

John

Dan

unread,
Feb 8, 2012, 8:58:30 AM2/8/12
to eventandt...@googlegroups.com
John,

If you want to be able to click on items in the tree and edit them, you should change your option string from

1)     o -b 1-1 -e 2-1 -g (c, (y,m,d), T) -d 0 -T 1 -o -k !p

to

2)     o -b 1-1 -e 2-1 -g (c, (y,m,d))  -T 1 -o -k !p

By omitting all details, -d 0 in (1), and including T in the groupby clause, you are grouping by item titles and group headings, as you note, are not editable. E.g.,

 3:30) Thu Jan 12 2012
    2:30) Tuesday/Thursday morning and afternoon events (2)  <=== not editable

By switching to (2) which defaults to  -d 1, you would get instead editable items within the tree

  3:30) Thu Jan 12 2012
    10:05a Tuesday/Thursday morning and afternoon events   <=== editable
     2:50p Tuesday/Thursday morning and afternoon events    <=== editiable

You could switch quickly back and forth between (1) and (2) by including something like the following in your etmrc

display_shortcuts = [
    'o -g ((y,m,d),)',                                                          # list element 0
    'o -b 1-1 -e 2-1 -g (c, (y,m,d), T) -d 0 -T 1 -o -k !p',   # list element 1
    'o -b 1-1 -e 2-1 -g (c, (y,m,d))  -T 1 -o -k !p' ]             # list element 2
]

Then pressing Ctrl-0 in etm would open the options setting with the highlighted setting corresponding to the 0 element from this list, pressing Ctrl-1 would open it with your (1) and pressing Ctrl-2 would open it with my (2).

I will soon be releasing 887 which makes the following change. If you using option string (2), edit an item and then save your changes, the current behavior is to reload the changed data files and reset the option string to the default (0) but with your selected day (Jan 1) as the begin date.  The new behavior in 887 is to keep your option string after the reload so that you would not need to enter it again to continue editing.

-Dan


lawquest

unread,
Feb 11, 2012, 3:40:06 PM2/11/12
to Event and Task Manager
These suggestions work great! Only problem is that display becomes
double-spaced after entering o -b 2-1 -e 2-12 -g (c, (y,m,d)) -T 1 -o
-k !p

Thanks very much.

John

lawquest

unread,
Feb 11, 2012, 8:16:16 PM2/11/12
to Event and Task Manager
Dan,

I need to correct a mis-impression, if that's a word, in my last
post:

Doublespacing only happens when I end with a future date, as in the
example I gave (2-12 is tomorrow).

Another example is:

o -b 2-1 -e 3-1 -g (c, (y,m,d)) -T 1 -o -k !p

I think it might be helpful if I could put in future date without the
display doublespacing. I could then, at the beginning of each month,
set a list option in the display_shortcuts = section in etmrc to, for
example: o -b 2-1 -e 3-1 -g (c, (y,m,d)) -T 1 -o -k !p. I think that
might be quite helpful.

John

Dan

unread,
Feb 12, 2012, 9:04:56 AM2/12/12
to eventandt...@googlegroups.com
John,

I can't duplicate your double spacing problem.  Does it happen in the outline panel, the display panel or when you print?  Could you email me a screenshot?

-Dan

lawquest

unread,
Feb 12, 2012, 7:57:32 PM2/12/12
to Event and Task Manager
Dan,

With your kind and considerable help I learned that the doublespacing
problem was due to an entry I made on 2-8-12 which had two bracketed
lines, not one. Doublespacing started when etm saw the erroneous two
bracket entry.

I understand now that etm automatically inserts ONE line of bracketed
information in the Details panel for its own use and that when copying
the Details panel from another entry it is easy to also copy that
other entry's bracket line, thereby causing the new entry to have two
bracket lines. Most likely this is what I did. Had I followed
directions and simply selected the old item and pressed T I would not
have created a two bracket Detail.

My sincere thanks.

John

lawquest

unread,
Apr 12, 2012, 5:18:55 PM4/12/12
to eventandt...@googlegroups.com
The following appears from Dan earlier in this thread:


display_shortcuts = [
    'o -g ((y,m,d),)',                  
                                        # list element 0
    'o -b 1-1 -e 2-1 -g (c, (y,m,d), T) -d 0 -T 1 -o -k !p',   # list element 1
    'o -b 1-1 -e 2-1 -g (c, (y,m,d))  -T 1 -o -k !p' ]             # list element 2

]

Then pressing Ctrl-0 in etm would open the options setting with the highlighted setting corresponding to the 0 element from this list, pressing Ctrl-1 would open it with your (1) and pressing Ctrl-2 would open it with my (2).

I will soon be releasing 887 which makes the following change. If you using option string (2), edit an item and then save your changes, the current behavior is to reload the changed data files and reset the option string to the default (0) but with your selected day (Jan 1) as the begin date.  The new behavior in 887 is to keep your option string after the reload so that you would not need to enter it again to continue editing.
(Emphasis added).

Not sure I am understanding this but when I make the change with element 2 selected, the machine still resets and I have to put the search criteria in again.  I may have copied something wrong. 

Comment?

Dan

unread,
Apr 15, 2012, 10:35:56 AM4/15/12
to eventandt...@googlegroups.com
Your -e (end_date) option is not being saved. I'll fix this for the next release.

By the way, your -o entries aren't doing anything since they aren't followed by an indication of what to omit.

-Dan

lawquest

unread,
Apr 17, 2012, 11:42:09 AM4/17/12
to eventandt...@googlegroups.com
Thanks Dan, and thanks again for a wonderful program.  I use it constantly. 

John

lawquest

unread,
May 2, 2012, 11:51:41 PM5/2/12
to eventandt...@googlegroups.com
The end_date change works great.
Reply all
Reply to author
Forward
0 new messages