Bike 2 | Go to heading

Am I missing something or Bike 2 does not have Go to heading feature? Cmd+P does not work! To me this is the only thing that keeps me using Bike 2 regularly, as an avid user of Taskpaper and Bike 1, I mostly rely on this shortcut.

You’ve experimented with ^⌘S to view the Sidebar,
and use the //headings shortcut there ?


I don’t think ⌘P is implemented yet (253)
though an interim scripted version could be sketched

thanks for sharing your suggestion, I already did but I got used to Cmd P and its much faster than //heading approach. Hopefully soon @jessegrosjean will implement this.

and use the //headings shortcut there ?

Where/how do one do this?

I haven’t figured out where I can do anything with the sidebar…

If you have installed the Bike extension kit, you should, I think, see a Headings shortcut item (and Home and Today items) in the sidebar.

(You can define custom items via the kit)


In src/!bike.bkext/app/main.ts, for example:

Expand disclosure triangle to view TS source
  bike.observeWindows(async (window: Window) => {
    window.sidebar.addItem({
      id: 'bike:home',
      text: 'Home',
      symbol: 'house',
      ordering: { section: 'actions' },
      action: 'bike:home',
    })

    window.sidebar.addItem({
      id: 'bike:headings',
      text: 'Headings 􀱁',
      ordering: { section: 'filters' },
      isGroup: true,
      action: 'bike:headings',
      children: {
        query: '//heading',
      },
    })
  })

Ah, yes! I have that one. Clicking it shows the headings in the main window.

(What I’d want, however, is to just have all the headings show in the sidebar. I plan on looking into that when I get the time. :slightly_smiling_face:)

Hi, this is an intended feature that just isn’t implemented yet.

1 Like