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

Not able to edit two passages side-by-side #1467

Open
3 of 4 tasks
StarterBA opened this issue Nov 12, 2023 · 7 comments
Open
3 of 4 tasks

Not able to edit two passages side-by-side #1467

StarterBA opened this issue Nov 12, 2023 · 7 comments
Labels
enhancement New feature or request P3 (could) Annoying bugs that have workarounds, Interesting ideas

Comments

@StarterBA
Copy link

Describe the bug.

I have Twine version 2.7.1, Sugarcube story format. In some previous 2.x versions I could have two passages open in one window of Twine editor. In this way, I could compare, copy variables and do other things. But now in the Twine editor the passage edit tabs only stack one over another, so I cannot have two-panel view. Is this on purpose, or is it a bug?
If it could be solved then what do I need to change?

Steps to reproduce:

  1. I open one passage in editor. It is opened on the right.
  2. When I open another passage, the first passage is displayed on top, and the second passage is opened below it. But the two passages are stacked one over another.

Expected behavior:

  1. I open one passage in editor. It is opened on the right.
  2. When I open another passage, the first passage shrinks and goes on top, and the second passage is opened below it.
  3. When I click to enlarge on the second passage, it goes to the left

Additional context on this problem.

No response

Twine version number

2.7.1

Does this problem occur with the web version of Twine or the desktop app?

Desktop app

What operating system does this problem occur on?

Windows

If this problem is occurring with the web version of Twine, what browser does it occur on?

None

Presubmission checklist

  • I am interested in working on code that would fix this bug. (This is not required to submit a bug report.)
  • I have done a search and believe that an issue does not already exist for this bug in the GitHub repository.
  • If this problem is occurring with the app version of Twine, it still happens after I remove the user.css file from my Twine folder. (You would've added this file yourself. If you don't understand this question, you can safely check this box.)
  • I have read and agree to abide by this project's Code of Conduct.
@StarterBA StarterBA added the bug Something isn't working label Nov 12, 2023
@klembot
Copy link
Owner

klembot commented Nov 12, 2023

Yes, in 2.6.0 and later, passage editors stack. The rationale was that that when they didn't, they very quickly got too short to be useful. (See #1282 for original discussion on this.) Right now, there isn't a way to restore the old behavior, but if there's enough interest in it, it could perhaps be a preference, or we add a way to pop an editor so it stands alone.

@klembot klembot added enhancement New feature or request P3 (could) Annoying bugs that have workarounds, Interesting ideas and removed bug Something isn't working labels Nov 12, 2023
@StarterBA
Copy link
Author

StarterBA commented Nov 13, 2023

Thank You for Your fast response.
I have looked into the #1282 issue and it seems that there was not enough space for editing for some people. But, for example, in CSS we have "flex" and "media" (or div columns and media) for browsers (https://www.w3schools.com/css/css3_flexbox_responsive.asp) so we can either have two columns or one column with two rows depending on the window (screen) width. Or in Windows, you can just use Win+Left/Right arrows to make windows side-by-side.
Just my thoughts for the future.

@StarterBA
Copy link
Author

StarterBA commented Nov 13, 2023

Strange. I have noticed that side-by-side view works for Story Stylesheet and Story Javascript.
First, I open a usual passage.
Then open a Stylesheet, it is opened beneath the passage.
When I enlarge it, it goes to the left, so the passage and stylesheet editors are side-by-side!
But this does not work for two usual passages.
It seems that I figured it out. When the passages are open, I open Help-Troubleshooting-Show debug console. There it looks like the Story Stylesheet editor card/window has different "div", sth like "dialog...". I will try to modify it for myself, hoping I won't break it :)
Twine EditWindowsOk
Twine EditWindowsOk2
Twine EditWindowsOk3

@hituro
Copy link

hituro commented Dec 8, 2023

My suggestion would be to add an extra control, similar to the "full width" option that just pops an editor off the stack and puts it on the right.

Alternatively you could use the "full width" itself to do that, but then the editor stack cannot itself be made full width.

@TelesphorosGames
Copy link

any update on this? editing multiple passages side-by side is essential for me and after a recent update to work out a bug with the (scroll:) function not working, now I cannot edit side by side. I suppose I will revert my twine for now and just not use (scroll:), but I'm really hoping that we get this feature back.

@klembot
Copy link
Owner

klembot commented Feb 25, 2024

No updates right now other than it's not something I'm currently working on.

@TelesphorosGames
Copy link

Thanks for your quick response and for all your work. I did end up reverting for now. If you ever do add an option to toggle on the stackable passage editors, I would greatly appreciate it. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3 (could) Annoying bugs that have workarounds, Interesting ideas
Projects
None yet
Development

No branches or pull requests

4 participants