Bike 1.6 Preview (88)

  • Updated for macOS Ventura
  • Added .rtf text to pasteboard when you copy
  • Added Edit > Copy As for specific pasteboard types
  • Changed to standard color well in editor settings
  • Changed to not allow move commands to move focused row
  • Changed search to select match on Enter (not automatically while typing)
  • Changed search and text checking to allow first match to intersect selection
  • Fixed incorrect scroll position that could happen when reopening a document
  • Fixed crash that could happen with Replace All and in a few other cases

To get preview releases through Bike’s software update select: Bike > Preferences > General > Include “preview” releases.

3 Likes

Is there a way to copy as rich text without the bullets?

There isn’t right now. Can you describe more what you need? Also how would you encode the outline hierarchy?

I sometimes use Bike to write a document or an email. The structure is flat — just a bunch of bullets on the same level. I’d like to be able to copy and paste that straight into an email without having to remove bullets.

1 Like

This make sense, I do sometimes find the bullets to be a pain also. It will be a bit of work, right now I’m getting .rft output for free by converting Bike .html into .rtf using Apple system framework. To get rid of the bullets I’ll need to do the full encoding myself.

I’m not in a place to do this work right now (fighting with autocorrect this weeks), but have added to my list. If I haven’t implemented this in a few months please don’t hesitate to give me another reminder.

1 Like

FWIW Mail has a native (HTML defined) bullet-less indentation format in which:

  1. row text is wrapped in a <div> ... </div>
  2. any indented descendants are further enclosed in <blockquote style="margin: 0px 0px 0px 40px;">...</blockquote>

I did write something for pasting bullet-less plain text outlines from Bike into Mail, using the function below:

(It doesn’t pick up the inline html markup, but that would be feasible, I think)

Expand disclosure triangle to view JS source
// mailBlockQuotesFromForest :: [Tree String] -> String
const mailBlockQuotesFromForest = forest => {
    const
        style = "style=\"margin: 0px 0px 0px 40px;\"",
        go = tree => {
            const xs = tree.nest;

            return [
                `<div>${tree.root || "&nbsp;"}</div>`,
                ...(
                    0 < xs.length ? [
                        [
                            `<blockquote ${style}>`,
                            xs.flatMap(go).join("\n"),
                            "</blockquote>"
                        ]
                        .join("\n")
                    ] : []
                )
            ]
            .join("\n");
        };

    return forest.flatMap(go).join("\n");
};

The Keyboard Maestro version of the plain text bullet-less Mail pasting macro is at:

1 Like

In the meanwhile, see: