ttscoff / bunch

Documentation repository for Bunch.app
https://bunchapp.co
116 stars 5 forks source link

"Default" command opens the Default Folder X control panel #257

Open Wildphinn opened 2 years ago

Wildphinn commented 2 years ago

A minor annoyance, but I thought I would report: when asking Bunch to open files using the "Default" application, somehow that leads to opening Default Folder X's preferences (on a French system). I guess the "default" part of the name mixes things up šŸ™‚

ttscoff commented 2 years ago

Oh, that's odd, will look into it.

On 20 Sep 2022, at 2:04, Wildphinn wrote:

A minor annoyance, but I thought I would report: when asking Bunch to open files using the "Default" application, somehow that leads to opening Default Folder X's preferences (on a French system). I guess the "default" part of the name mixes things up šŸ™‚

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/257 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

SteveMattan commented 1 year ago

Perhaps more than a minor annoyance?

Using the Default keyword to open a file with the default app has the side effect of launching, and worse quitting (when closing the bunch), the application Default Folder X.

Edit: I added the sentence below and formatted the example to preserve the "-"s, in response to ttscoff's comment directly after this one.

The code example below is from the Bunch documentation at the following link:

https://bunchapp.co/docs/bunch-files/apps/#defaultapp

Default

- File 1.pages
- File 2.numbers
- File 3.md

Let me know if you need any additional info. And if there is a way to use "Default" without this side effect.

macOS 13.3.1 Bunch 1.4.11 (166)

Thanks.

SteveM

ttscoff commented 1 year ago

I'm unable to replicate this and it doesn't make any sense based on the code. "Default Folder X" should only be launchable by its full name, and there are multiple tests to see if "default" is the given app name and handle it with the system open command. I would note that in @SteveMattan's example, the file lines do not have hyphens before them, which would be required, but it still doesn't make sense that Default Folder X would ever be matched.

I'm kind of at a loss on this one.

SteveMattan commented 1 year ago

Curious.

Very repeatable for me. Note that some times it does not launch Default Folder X. But if Default Folder X is running it always quits when the Bunch is run the second time.

As to this comment, "I would note that in @SteveMattan's example, the file lines do not have hyphens before them, which would be required, ..." that example is copied from the Bunch documentation, at the link provided. Sorry I did not make that clear. And it seems the "-"'s were lost when pasting (and I did not notice).

Here is my test bunch:

---
title: Test Bunch
---
# Test Bed for Bunch Ideas

# Default Test

Default
- /Users/stevemattan/Documents/Programming Files/Ruby/test_file.txt

I start with Default Folder X on. I run the Bunch and the fixe opens. I run the Bunch again and Default Folder X quits. I run the Bunch again Default Folder X usually launches.

Iā€™m still using macOS 13.3.1 but now Iā€™m on Bunch 1.4.12 (172).

Thanks for checking.