I have moved my org-files from "~/local_computer/org/" to "~/Dropbox/org/" in order to be able to work on the files on separate computers.
Opening my inbox.org on my new computer, all old TODO-items are not bold as they are supposed to be. My old TODO-items are not listed in the global list of TODO items. When I choose "show TODO tree" in my inbox.org, all my TODO-items are highlighted.
When a change a TODO-state to DONE it changes from
* TODO Work
to
* DONE TODO Work
I can however capture a new TODO-item:
* TODO Sleep
and change the state to a non-bold DONE-state:
* DONE Sleep
But when I change it to TODO again, it goes:
* TODO DONE Sleep
Update:
When I delete the priority tag, the TODO-keyword becomes bold:
* TODO [#A] Buy milk
->
* TODO Buy milk
However, when I change the TODO-state from TODO to DONE back to TODO, the headline is destroyed and un-bold:
* TODO DONE Buy milk
Solved: My TODO-keywords "fast selection/timestamp/note"-syntax was messed up. Now corrected and TODO-states works fine
Related
I want to hover over a element and later click on it.
Below is the code
await browser.actions().mouseMove(elm, { x: 200, y: 200 }).perform();
await browser.wait(EC.visibilityOF(elm2),10000);
await elm2.click();
I also tried without the offset, like for instance:
await browser.actions().mouseMove(elm).click().perform();
However , I could not get the hover effect and click on the element I wanted , i.e elm2 in this case.
My protractor version is 5.4.1
Appreciate your assistance.
Thanks
I have found the routines in protractor-test-helper extremely useful and robust. These (and instructions for use and installation) can be found at github.com/hetznercloud/protractor-test-helper
So in your case you would say something like:
import { click, hover} from '#hetznercloud/protractor-test-helper/dist';
and later
await hover(elm, 10000); //hover over item, waiting up to 10 seconds
await click(elm2, 10000, 3); //waits for elm2 to show up, up to 10 seconds, clicks on it, 3 retries
But if you just want to look at their hover implementation code for inspiration (not all that different from yours without the offset and with the structure of the three beginning lines), it is at line 55 of https://github.com/hetznercloud/protractor-test-helper/blob/master/dist/actions.js
I know this doesn't tell you exactly how to change what you have, but I hope it gives you at least one (or two) ways to move forward.
If I have two different VSTO AddIns installed on the same Word application, is there a way to know which one of them first receives the events raised by Word. For example the DocumentOpen event?
Can I control that order?
Thanks
I didn't find anything specific about event order in multiple add-ins (but I believe I've read something about it years ago) so I did simple test
I created three Excel add-ins with this code
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
this.Application.WorkbookBeforeSave += Application_WorkbookBeforeSave;
}
void Application_WorkbookBeforeSave(Excel.Workbook Wb, bool SaveAsUI, ref bool Cancel)
{
System.Windows.Forms.MessageBox.Show("Add-in 1");
}
One of them I gave it random name as I wanted to know if Excel runs them in alphabetical order, in one of the add-in I set the Cancel = true
I don't know why but Excel always fired the ExcelAddin 2 first, then ExcelAddin 1 and finished with AAExcelAddin. I tried to rebuild (I also cleaned my solutions first) in different order but the order was still the same (note the very first addin created was the ExcelAddin 1) No matter if I run it from VS or just simply start Excel and pressed CTRL+S
Based on above I would say that you should not have any logic in your code that assume certain order of add-ins. You never know if any new add-in will break the order.
Also keep in mind that if you use any of the cancellation events (has the argument Cancel) and you cancel it (Cancel=true) then all the other add-ins will receive the event and will still run it but the Cancel flag will be set to true from the previous one.
In my case I set Cancel=true in the add-in that was fired at first (ExcelAddin 2) and even the two other add-ins received the event, they didn't save as saving was cancelled in the first one.
Is there a way to remove only the last snapshot in the CKEditor undo stack or can i replace it with another.Should i implement it on my own?
Example:
Step 1
Step 2 --should be removed and replaced with step 3 (On given situation)
Step 3 -- should become step 2
This feature should be available only if special event occurs.
If your undo snapshots are a result of user actions, following this way:
Step 1.
Step 2.
CKEDITOR.instances.editor.fire( 'lockSnapshot' )
Step 3.
CKEDITOR.instances.editor.fire( 'unlockSnapshot' )
Of course, you have to detect what's going on and fire the right event at the right time.
If changes to the content are done from code, editor#updateSnapshot event would even be better:
function() {
editor.fire( 'saveSnapshot' );
editor.document.body.append(...);
// Makes new changes following the last undo snapshot a part of it.
editor.fire( 'updateSnapshot' );
..
}
How do I get org-mode DONE statistics to filter up through non-todo headings and update the statistics cookie?
I have an org-mode file that looks like this:
* <2013-03-06 Wed> [0%]
** work
*** training
**** TODO email Anne
**** DONE call Raymond
*** reports
**** DONE collect research
**** DONE compile data
*** white papers
**** TODO collect client files
*** sales
**** DONE email Wendy
** housekeeping
*** DONE go to post office!
The parent headings are not TODO tasks; they're conceptual categories.
I want org-mode to calculate the % done statistics as I mark tasks DONE.
I tried setting org-hierarchical-todo-statistics to t but that didn't help.
You've set the variable backwards, try:
(setq org-hierarchical-todo-statistics nil)
If you only want it to have effect on certain (a single) tree, use the property :COOKIE_DATA: recursive
From the variable definition:
org-hierarchical-todo-statistics is a variable defined in `org.el'.
Its value is nil
Original value was t
Documentation:
Non-nil means TODO statistics covers just direct children.
When nil, all entries in the subtree are considered.
This has only an effect if `org-provide-todo-statistics' is set.
To set this to nil for only a single subtree, use a COOKIE_DATA
property and include the word "recursive" into the value.
Doing a
(setq org-hierarchical-todo-statistics nil)
works for me! You can also set the COOKIE_DATA property to recursive:
* <2013-03-06 Wed> [71%]
:PROPERTIES:
:COOKIE_DATA: recursive
:END:
** work
*** training
**** TODO email Anne
**** DONE call Raymond
*** reports
**** DONE collect research
**** DONE compile data
*** white papers
**** TODO collect client files
*** sales
**** DONE email Wendy
** housekeeping
*** DONE go to post office!
In org mode, if you create a todo, and first assign it a DEADLINE, maybe a week in advance, then a few days later, get around to scheduling it, both the SCHEDULED todo and the DEADLINE todo show up in my agenda. How do I get rid of the DEADLINE item? It clutters up my agenda view.
There is a specific variable for that that was introduced in commit 8d6aa8f3 (2010-02-17). This should put it somewhere around version 6.35.
org-agenda-skip-deadline-prewarning-if-scheduled is a variable defined
in `org-agenda.el'. Its value is nil
Documentation: Non-nil means skip deadline prewarning when entry is
also scheduled. This will apply on all days where a prewarning for the
deadline would be shown, but not at the day when the entry is actually
due. On that day, the deadline will be shown anyway. This variable
may be set to nil, t, or a number which will then give the number of
days before the actual deadline when the prewarnings should resume.
This can be used in a workflow where the first showing of the deadline
will trigger you to schedule it, and then you don't want to be
reminded of it because you will take care of it on the day when
scheduled.
You can customize this variable.
I couldn't spot it in the manual however M-x apropos RET org-agenda-skip- does list it as well as other variables that offer similar sorts of filtering.