Bike 1.11 (120-126)

Yipes, I keep finding bugs. Maybe this is the final release:

  • Fixed previews and thumbnail generation performance
  • Fixed broken autocorrect and selection behaviors

Previously:

This preview release adds actions for the Shortcuts app. Shortcuts is the new app that allows you to create workflows to automate tasks on your Mac.

  • Added Fold Rows action
  • Added Focus Row action
  • Added Get Selection action
  • Added Get Rows action
  • Added Edit Rows action
  • Added Import Rows action
  • Added Export Rows action
  • Added Find Rows action
  • Added Open Row action
  • Added Create Outline action
  • Added Open Outline action
  • Added Create Row action
  • Added Delete Rows action
  • Added Move Rows action (Not tested)
  • Fixed problems with text statistics popover display
  • Fixed to allow typewriter mode when text is wrapping to window
  • Fixed Open Outline action security access failure
  • Fixed Edit Rows action from editing extra incorrect row
  • Fixed text editing crash related to word boundaries
  • Fixed licensing code to actually disable features

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

1 Like

I’m pushing this out late, hopefully without too may bugs. Wanted to get something out by Friday, but just decided I will take the day off tomorrow to play… so rushing this out right now!

If you have used Shortcut before please try this version out and tell me everywhere that I’m going wrong. If you haven’t used Shortcuts yet, give them a try. They make simple automations easy.

Try Bike’s “Create Row”:

  1. Open the Shortcuts app
  2. Create a new shortcut and open it.
  3. Shortcuts are composed of one or more actions.
  4. Select Bike in the list of Apps and drag the “Create Row” action into your shortcut.
  5. Run the shortcut and a new empty row is inserted before the current selection.
  6. Click “Content” in the Create Row action and type some text
  7. Now when you run the shortcut a new row with the text you entered is inserted.

Next you can click the actions “Show More”

For “Row Location” click the “Choose” button and you can browse through all top level rows to choose where to create the new row. If the row you want isn’t a top level one then use the “Search” field in that popup to find it.

You can configure relative location to insert before/after or in the children of that row.

Let me know how it goes.

2 Likes

Downloaded and testing.

Hi!
Your “Create Row” automations and some options with “Show More” goes well, on mixed English/Japanese, small document. :smile:

Thanks for trying things out.

I also expect to add an Edit Rows action that will allow you to set properties on existing rows. After that I’m wondering how deep I need to go.

The new 121 release is getting a lot closer. I think I have a good set of actions, and they are setup so that I can continue to add features over time, without having to create a new action each time.

I think I will add one more “Perform View Action” (if I can’t figure a better name). That action will allow you to perform various view actions such as expand/collapse/focus/select.

Thoughts for any improvements are welcome.

I’m not sure how the “Open Outline” action should be used, but I’m getting a permission error when I’m copying and opening a Bike template file.

Otherwise awesome stuff!

I’m not sure how the “Open Outline” action should be used

It should take a file on your filesystem and open it using Bike.

I just tried and it seemed to work on my computer without problem. What I did was:

  1. Open Bike
  2. Create a new document.
  3. Save that document to my desktop.
  4. Close that document. Close Bike
  5. Create a new shortcut
  6. Add the Open Outline action.
  7. Click the “file” param and select my file that was saved to the desktop.

Once I do all that then anytime I run the action it opens that document in Bike and brings Bike to the foreground.

Are you doing about the same steps and it’s not working? Or is there something different that you are doing?

Just noticed a bug where Edit Rows action will always edit rows selected + 1. Will fix in next release.

I’m using it this way.

It is a shortcut which starts a Tyme timer and creates a new Bike outline for note taking. It does this by duplicating a template and opening the new file in Bike. Luckily the built-in “Open File” action works as well.

1 Like

I just used the Shortcuts integration in another way for blogging.

Adding Bike Shortcuts integration to my publishing setup – Decoding

1 Like

Really nice, thanks for sharing! Great to see that the actions will be of use.

I’ll have a fix for that Open Outline action in the next release.

@zsbenke (or anyone familiar with Shortcut actions)

It seems to me that the behavior associated with most of Bike’s menu items could also be useful as an action in Shortcuts.

For example:

  • expand
  • collapse
  • select
  • focus
  • find
  • new tab
  • new window
  • etc

At the same time I would consider most of these behaviors as “extra”, not holding the same importance as “Create Row” or “Edit Row”. I also feel like if Bike has 20+ actions it would just make it seem complex when you are browsing it in Shortcuts.app.

For these reasons my plan is to create a single new “View Action” that has a parameter dropdown where you can choose from the above list… and that’s the action that will be performed.

Does that seem like a reasonable approach to you?

I don’t think it’s a problem if an app has 20+ actions. I mostly use the search functionality in Shortcuts when adding a new action, so it can be helpful to see each action separately in these scenarios.

If you still feel it’s too much, maybe you could organize them by a bit more granular categories than a singular “View” action. For example:

  • Expand and Collapse could be a “Toggle Row” action.
  • New tab or New Window could be another “Open New (Window|Tab)”.
  • Find should be a separate action (if you refer to the existing Find Rows action).
  • Select and Focus also seems to be related.

Also, do not forget about action categories in Shortcuts, which could also organize these actions.

Cognitively speaking, clumping seems good.

(A long list is a lot to parse at a glance)

Interesting, I hadn’t thought of that.

Though it’s true, I have found that as I mess with Actions more I find myself using search more. Also as much as I wanted to have a small number of actions, the label for this “Update Outline View” action is looking pretty ugly and out of place next to all the others.

I was just about to post new release, but I think you’ve convinced me. Better to break functionality out into multiple actions even if it means I’ll end up with quite a few.

How about this for a category. Basically put all view related actions on one place:

  1. New Section called “Outline View”
  2. And in that section include the actions:
    • Focus Rows
    • Fold Rows
    • Get Selection
    • Open Find
    • Open Row
    • Open View
1 Like

I like it. :+1:

I’ve just posted what I think might be the final 1.11 preview release. Try it out, let me know if I’m right? :slight_smile:

In the end I decided to leave Open Find and Open View actions out. Can add them later if needed, but decided to only add things that I was pretty sure people would need for the start.

Also I changed the “Find Rows”. Previously it was getting generated by Xcode as a special case. End result was it could do things that my new one can’t. But my new one is better setup to use Bike’s future query language. (not implemented yet, but expected eventually).

Last, a text editing crasher bug was discovered and fixed. Probably 80% of the crashing bugs have been related to the small amount of code that detects word and sentence ranges. I’m not sure if I’m being dumb or the API (I think maybe a combination of both, I know the API is wrong in a few places). Anyway for this crash I rewrite things using a different API and that seems to have fixed bugs and allowed me to take out some special cases… but be on the lookout for oddities while editing text this release.

2 Likes

I can’t find Bike actions in Shortcuts.app
What did I miss?
(This is my first attempt. I don’t know if it only appeared in this version or not before.)

–
Bike 1.11 (122)
macOS 12.6.4

Make sure that you don’t have any other version of Bike installed other than the latest preview. I think that will do the trick. Then maybe restart preview or computer if things still not showing up, but I don’t then I’ve needed to do that.

Let me know if that solves problem.