Closed jwijenbergh closed 3 years ago
Hopefully we can discuss good solutions to my open issues. Added help wanted label
Requested review, let me know what you think of the current implementation.
There's a bug where if you open a file as a tab, close that tab and try to open the same file again right after (so presumably for the same tab), the file is no longer opened in a new tab. This might be due to the way IDs are handled for tabs, and the ID already exists once you opened the file once (combined with the number of the tab), but I'm not sure about that.
There's a bug where if you open a file as a tab, close that tab and try to open the same file again right after (so presumably for the same tab), the file is no longer opened in a new tab. This might be due to the way IDs are handled for tabs, and the ID already exists once you opened the file once (combined with the number of the tab), but I'm not sure about that.
Fixed this issue.
Currently when you have multiple tabs open and save one (and close it) to then refresh the page with ctrl f5
, the page loads the contents of the tab you saved and closed, since that's the last thing that has been saved in the local buffer.
Currently when you have multiple tabs open and save one (and close it) to then refresh the page with
ctrl f5
, the page loads the contents of the tab you saved and closed, since that's the last thing that has been saved in the local buffer.
Indeed, I'm working on saving and restoring the tabs so that you can either:
Would be nice if the x
to close is aligned with the text (Vertically).
Tab name is now the filename of the loaded file. Adding a tab through the editor however now gives it the name undefined
, still needs to be handled. *
is not yet in the tab name, since the tabs don't have their own buffer yet, thus meaning *
in a tab would be useless as for now (since saving a tab and closing it overwrites the local buffer, and reloading the page puts the last saved buffer in the first tab, possibly overwriting what was actually there).
Would be nice if the
x
to close is aligned with the text (Vertically).
I added it as a superscript with <sup> </sup>
, I can easily remove that
Tab name is now the filename of the loaded file. Adding a tab through the editor however now gives it the name
undefined
, still needs to be handled.*
is not yet in the tab name, since the tabs don't have their own buffer yet, thus meaning*
in a tab would be useless as for now (since saving a tab and closing it overwrites the local buffer, and reloading the page puts the last saved buffer in the first tab, possibly overwriting what was actually there).
Still working on saving and restoring tabs, having a few issues with that. Will do this when I get saving/restoring working
The addition of a button to save all in the dropdown is nice, but there already exists an extensible function for it in the master branch. Not sure if it is in this branch also, it was created in the compiler thingy
The addition of a button to save all in the dropdown is nice, but there already exists an extensible function for it in the master branch. Not sure if it is in this branch also, it was created in the compiler thingy
That extensible function is for adding new items to the menu, I needed to expand an existing item (the file item)
Rebased with master.
A few small changes:
A few small changes:
* The most important change imo is that the tabs selection is now below the buttons of the other features. I think this is relevant since that info is not preserved per tab * The tabs selection needed a bit of margin for this change, looked ugly without * The first tab link was blue and got a cursor: pointer because href was set, better without
Good changes, it indeed looks much better now