Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define editor per backend or rely on system default for filetype #32

Open
mxa opened this issue Jul 1, 2020 · 3 comments
Open

Define editor per backend or rely on system default for filetype #32

mxa opened this issue Jul 1, 2020 · 3 comments

Comments

@mxa
Copy link
Collaborator

mxa commented Jul 1, 2020

With the current implementation Rack will accept one editor for all backends. However it doesn't make much sense to open .pd files with a code editor.
Suggestion: Remove the option to set an editor in Rack altogether and rather rely on the system to open the file with the associated program to the file-type, a.k.a. xdg-open on Linux.

@AndrewBelt
Copy link
Member

I suspected you'd say this, so good job, you're doing things as expected. :)

What I'll do is make the libpd ScriptEngine have a "special" editor defined by a "puredataPath" property in the global settings.

@mxa
Copy link
Collaborator Author

mxa commented Jul 1, 2020

OK.
For the record, .pd files should always be associated with the pd-gui binary (not with the pd binary, that will open another instance of Pd on every call).

@mxa
Copy link
Collaborator Author

mxa commented Jul 3, 2020

Let me park a "note-to-self" here because it is relevant in this context:
Opening a code snippet from Rack in an editor is exposing normal behaviour: Editing in the code is not affecting the sound output and it will only reload (or JIT-compiled) once it is saved. However: Opening a Pd patch from Rack in a separate instance of Pd will be a bit confusing, because it goes against the expectations of a realtime programming language such as Pd. Changing the patch contents is not affecting the output immediately, as Pd-users would expect.
This is probably the reason why libpd has an experimental feature which is to open a GUI which will directly attach to the running patch and affect it in realtime. However it is crashy: pressing Control-D for example will take the whole libpd instance down. If this feature ever works properly, this might be nice to migrate to this over launching a parallel instance of Pd to open the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants