debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Tabs] feature to re-order editor tabs

Open kenjiO opened this issue 8 years ago • 10 comments

I thought it will be nice if people can re-order the tabs of the open files in the editor by dragging and dropping them. I would like to try to implement this using the method used for the toolbox tabs. Can you let me know your thoughts about this?

kenjiO avatar Jul 27 '18 20:07 kenjiO

Wow, that would be an awesome feature @kenjiO ! I'd love to see something like that :)

darkwing avatar Jul 27 '18 21:07 darkwing

/claim Cool. I'll be able to get started on it next week.

kenjiO avatar Jul 28 '18 19:07 kenjiO

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Jul 28 '18 19:07 claim

Thanks, after thinking about it. I love the feature, but I'm not sure if sharing the code makes sense. Let's see what it looks like on tabs.js

Also there's a great ticket for refactoring the trans redux logic. This might be a good prerequisite. CC @bomsy

jasonLaster avatar Jul 29 '18 12:07 jasonLaster

The ticket @jasonLaster is probably referring to is #3279. it has some useful PRs that might need little to finish off.

bomsy avatar Jul 30 '18 20:07 bomsy

I'll wait until #3279 gets finished then. What still needs to be done for that one?

kenjiO avatar Jul 31 '18 23:07 kenjiO

@kenjiO it was close, but everyone got busy...

https://github.com/devtools-html/debugger.html/pull/5672/files honestly is pretty old and we've come a long way since then. For instance we have much better flow types and no longer use Immutable for sources. If i were to start it now, I'd draw inspiration from it, but then start from scratch:

  1. create a reducers/tabs.js file
  2. separate tabs actions
  3. wire it all up

jasonLaster avatar Aug 01 '18 13:08 jasonLaster

I feel like a re-ordering feature may be a bit much but the idea of a "pinned" tab makes sense to me. I can see a scenario where someone would want 2-3 given tabs always displaying first.

darkwing avatar Dec 09 '18 23:12 darkwing

I feel like both of these features can be added to the icebox. Neither feels like an immediate goal for the team, but we would be happy to review PRs.

jasonLaster avatar Dec 10 '18 19:12 jasonLaster

OK. I was putting this off because there were a lot of other PRs dealing with tabs that I didn't want to interefere with. If you ever want to implement this feature let me know.

kenjiO avatar Dec 11 '18 00:12 kenjiO