Use a single shortcut (toggle) to expand and collapse a row

Bike use one shortcut to expand a row and another shortcut to collapse a row.

Instead a single shortcut could be used (such as CMD+. or CMD+0) that toggle expand/collapse.

I won’t change the current design, but you can create your own toggle command with AppleScript. I think this should do it:

tell front document of application "Bike"
	if selection row is collapsed then
		expand selection rows
	else if selection row is expanded then
		collapse selection rows
	end if
end tell

Here’s how to use Scripts:

Hi,

Thanks for the tip!

Out of curiosity, why a “toggle open/collapse” is not a better/good UX/Design in your opinion? (if you don’t have the time to answer, feel free to skip ;))

Perhaps instead of changing the current design, only adding a toggle menu and shortcut?

Regards

I don’t have a lot of logic behind decision… but current design is what I “expect” from using other apps. For example in macOS Finder list view expand/collapse is done with separate arrow keys. Same with older outliners like OmniOutliner.

If most apps before Bike used a toggle I would happily use that instead, but few if any of them seem to.

I would rather people use a script if they want a toggle. I’m always battling (and sometimes winning) to keep menu’s and short and clear looking as possible. In this case I don’t think dedicating a new menu item to expand/collapse toggle is worthwhile since

Important Note: I never use the Command-0 and Command-9 shortcuts myself. Instead I always exit to outline mode and use left/right arrow to expand/collapse items. You might find that easier.

1 Like