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

[Feature]: Tinker consoles per-project, option to put them in the .idea folder #330

Open
1 task
pxlrbt opened this issue May 3, 2024 · 8 comments
Open
1 task
Labels
feature request A requested feature - unsure when and if it will be built in. keep active This issue is exempt from going stale

Comments

@pxlrbt
Copy link

pxlrbt commented May 3, 2024

Related problem

No response

My ideal solution

I see you moved the the Tinker Console to "Scratches and Consoles" with #39. Is there a reason why we need a separate "Console" and can't just run PHP scratch files?

Considered alternatives

No response

Additional context

No response

Intentions

  • I'm open to build this myself and PR it
@pxlrbt pxlrbt added the feature request A requested feature - unsure when and if it will be built in. label May 3, 2024
@Roboroads
Copy link
Owner

I had tried to do that, I just needed a little bit more costimizability in the form of the tinker console scratch file type. I'm not happy with the implementation yet tho - I want the files to be "per project" and the way it's now it's not per project. So, I might ditch scratch files all together at some point.

@laserhybiz
Copy link

How about having a .tinker directory etc. inside each project and whatever php files are in this directory should be tinker executable?

This will also make it easier to have custom filenames.

@Roboroads
Copy link
Owner

An interesting idea, however, that would "dirty" your folder. Maybe add in to the idea folder. Or, even better, make it customizable.

@laserhybiz
Copy link

@Roboroads Why do you consider it "dirty", it should be added to .gitignore

@laserhybiz
Copy link

maybe even include a gitignore file by default when creating the directory

@laserhybiz
Copy link

I specifically do want to see it in the directory so I can see all saved snippets and select the file I want to tinker with.

Having it in the idea folder will make it again invisible.

Copy link

stale bot commented Sep 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. This means this issue is resolved or nobody else has had this issue or feature request. It will be closed if no further activity occurs within 30 days, so if this is still relevant, please let us know!

@stale stale bot added the stale This issue hasn't had activity for quite some time - let me know if it's still relevant! label Sep 2, 2024
@Roboroads Roboroads added keep active This issue is exempt from going stale and removed stale This issue hasn't had activity for quite some time - let me know if it's still relevant! labels Sep 9, 2024
@Roboroads Roboroads changed the title [Feature]: Run from scratch files [Feature]: Tinker consoles per-project, option to put them in the .idea folder Sep 9, 2024
@mybouhssina
Copy link

+1, it would be great to be able to have a tinker console per project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A requested feature - unsure when and if it will be built in. keep active This issue is exempt from going stale
Projects
None yet
Development

No branches or pull requests

4 participants