drummerSupport icon indicating copy to clipboard operation
drummerSupport copied to clipboard

Sharing links into Drummer outlines

Open scripting opened this issue 4 years ago • 15 comments

This is like a scavenger hunt!

If you made it this far congratulations. You are an Internet pioneer. :smile:

I promised to show you the source code for the script.

If you click this link, Drummer should open and the bar cursor should be pointing to the script that created the link you just clicked.

I don't think we're in Kansas anymore.

Here's a screen shot in case the link didn't work for some reason.

image

scripting avatar Oct 15 '21 14:10 scripting

As a reader of http://drummer.scripting.com/?url=http://drummer.scripting.com/davewiner/drummer/changeNotes.opml# who isn't authenticated, how can I generate a link into a place in the outline to share with people as there is no menu that seems to allow me to do this?

SparkyT avatar Oct 15 '21 14:10 SparkyT

@sparkyt -- if I understand the question (not sure I do) -- you have to be logged in to create one of these links, because you can't see the DW menu without being logged in. That's probably just a temporary situation. This stuff is all very new.

scripting avatar Oct 15 '21 14:10 scripting

Oops, I accidentally tested this on a node within my blog.opml outline and now it's become an Instant Outline and I can't figure out how to change it back. All of the usual menu items and sidebar icons appear disabled, although some of them actually work (but not important ones like "+" :) )

The lightning bolt appears in the tab. (Along with some extra HTML, see #74)

What have I done!?

jackbaty avatar Oct 15 '21 14:10 jackbaty

Or maybe not. It could be that it was an entirely different file/outline that only looked like my blog.opml file. Closing everything and reopening blog.opml made me see my mistake.

jackbaty avatar Oct 15 '21 14:10 jackbaty

Jack any public outline is an instant outline.

I want to say this carefully, but keep the decorum like any other product development forum. You're not allowed to panic in messages here. Slowly and carefully explain what is going on there. Messages like the one you posted really fuck up my day. I'm not kidding.

scripting avatar Oct 15 '21 14:10 scripting

Now, that said -- you may have tripped over a bug we were dealing with a lot during testing, and I thought it had been eliminated. That's why it's so important to slow down and please help us get rid of these if that's what's happening.

One outline replacing the contents of another is the symptom we're watching for.

scripting avatar Oct 15 '21 14:10 scripting

Now I've read your messages carefully, and think there may be something else going on here.

I'm not sure I've used the web Drummer to share an outline. That may be what's going on.

  1. You had blog.opml open and were editing it (of course, it's your blog).

  2. You shared a URL pointing into that outline.

  3. Another copy of Drummer opened? Did that happen somewhere in here? (Probably.)

  4. That's when the crazy-looking thing showed up. (This is my guess.)

  5. Then when you reloaded Drummer, presumably without the long URL, the problem appeared to clear up.

Is that what happened?

scripting avatar Oct 15 '21 14:10 scripting

Jack any public outline is an instant outline.

I want to say this carefully, but keep the decorum like any other product development forum. You're not allowed to panic in messages here. Slowly and carefully explain what is going on there. Messages like the one you posted really fuck up my day. I'm not kidding.

Fair enough. I apologize. Should've let it burn in first. I know better.

jackbaty avatar Oct 15 '21 14:10 jackbaty

@jackbaty -- I know you to be a professional.

I wouldn't have said what I did if I didn't know that. ;-)

scripting avatar Oct 15 '21 14:10 scripting

Now I've read your messages carefully, and think there may be something else going on here.

I'm not sure I've used the web Drummer to share an outline. That may be what's going on.

  1. You had blog.opml open and were editing it (of course, it's your blog).
  2. You shared a URL pointing into that outline.
  3. Another copy of Drummer opened? Did that happen somewhere in here? (Probably.)
  4. That's when the crazy-looking thing showed up. (This is my guess.)
  5. Then when you reloaded Drummer, presumably without the long URL, the problem appeared to clear up.

Is that what happened?

That sounds close. I shared an outline from withing my blog.opml. This opened a new Drummer tab showing my outline. I mistook this new tab for my "normal" blog.opml tab and freaked out a little when it seemed to be read only. I had a bunch of tabs open so I didn't notice it was new/different. Here are 3 screenshots taken while trying to reproduce it.

Prior to sharing.

drummer1

Immediately after sharing (via running "I/O Permalink")

drummer2

After reloading the browser (Safari)

drummer3

(Note that I ran this from a copy of your script, since I'm not seeing the Utilities item in the DW menu for some reason (even after hard reload). I just copied into my own scripts menu. I mention this just in case it's relevant.

jackbaty avatar Oct 15 '21 15:10 jackbaty

Okay I understand what happened well enough to try to reproduce it.

I'm actually trying to figure out what's going on with the titles, I'm going to stay with that for now, and come back to this.

scripting avatar Oct 15 '21 15:10 scripting

The one thing I want to be sure of -- you have been able to restore normalcy to your Drummer setup?

scripting avatar Oct 15 '21 15:10 scripting

The one thing I want to be sure of -- you have been able to restore normalcy to your Drummer setup?

Yes, all seems well, thanks. Sorry for panicking. Onward! Good luck with the titles thing.

jackbaty avatar Oct 15 '21 15:10 jackbaty

I used the I/O permalink script tonight both successfully and unsuccessfully:

  • Using the script on a Change notes node for October worked as expected.
  • Using the script on a Change notes node for September (note it is an included outline in Work notes) did not result as expected. It did open Drummer in a new tab but with the cursor at the most recent Change notes item and without the permalink for the September node I had wanted.

mistersugar avatar Oct 20 '21 01:10 mistersugar

@mistersugar — it doesn’t yet work in includes. It will.

scripting avatar Oct 20 '21 01:10 scripting