Skip to content

SceneSwitcher: Add input to copy / paste current scene path#2095

Closed
manuq wants to merge 1 commit intomainfrom
copy-paste-scene-path
Closed

SceneSwitcher: Add input to copy / paste current scene path#2095
manuq wants to merge 1 commit intomainfrom
copy-paste-scene-path

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Apr 2, 2026

Rationale: Although the web build can load a specific scene by copying the scene path to the URL hash, people is not used to edit the URL.

With this change we could say: "Copy the following line that starts with res:// and then press Ctrl + V in the game".

In the future, two Copy / Paste buttons could be exposed in the Debug Settings.

Rationale: Although the web build can load a specific scene by copying the scene
path to the URL hash, people is not used to edit the URL.

With this change we could say: "Copy the following line that starts with res://
and then press Ctrl + V in the game".

In the future, two Copy / Paste buttons could be exposed in the Debug Settings.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Test build no longer available.

@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented Apr 2, 2026

@wjt just an idea, what do you think?

@wjt
Copy link
Copy Markdown
Member

wjt commented Apr 2, 2026

I'm not sure about this. I think it's quite easy to accidentally copy or paste into the window rather than into the address bar; and it would also be surprising IMO if pasting into the window with no control focused caused a scene switch. I think this is less discoverable than the URL bar. (I agree that most normal humans don't edit URLs.)

As an aside, I don't think that binding to Ctrl + physical location of C on US English keyboard is correct:

  • Rather than Ctrl, it should use “Command / Ctrl (auto)”. This is because on macOS the standard shortcut is Command (equivalent of Windows key) + C. image
  • Rather than the physical location of C + V it should use the logical location. I believe all mainstream latin keyboard layouts (QWERTY/QWERTZ/AZERTY) have these keys in the same place, but on Dvorak they are not. I press Ctrl + logical C (physical I) to copy.

Rather than trying to get the keyboard shortcut right, maybe we could do this:

image

@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented Apr 2, 2026

Rather than trying to get the keyboard shortcut right, maybe we could do this:

image

Nice! Mine was a quick hack, and you are absolutely right about the keyboard shortcut issues. I very much prefer the UI solution above.

@manuq manuq closed this Apr 2, 2026
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

Successfully merging this pull request may close these issues.

2 participants