dschwen / switch-header-source

Quick switching between C/C++ header and source files
MIT License
13 stars 49 forks source link

Option to switch within the same tab #15

Closed SEbbaDK closed 6 years ago

SEbbaDK commented 6 years ago

When i enable the same pane switcher, a permanent pane is opened for the .h file instead of using the current pane.

dschwen commented 6 years ago

Hm, that seems to be a new one. Are you on 1.23.0?

On Wed, Dec 13, 2017, 6:27 AM SEbbaDK notifications@github.com wrote:

When i enable the same pane switcher, a permanent pane is opened for the .h file instead of using the current pane.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dschwen/switch-header-source/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMWPnlWorSd7PGaQDlTmJ49T__Lf9f6ks5s_9DdgaJpZM4RAi36 .

dschwen commented 6 years ago

I cannot reproduce this in 1.23.0. Can you give me a few more details? I.e. which files are open (h and/or c?), how many open panes do you have, which file is in which pane? What happens if you trigger switch-header-source the first time, what happens if you trigger it the second time?

SEbbaDK commented 6 years ago

Sorry, i was understanding pane as tab, and thought it would change the current tab to show the other file. I was at 1.23.0

dschwen commented 6 years ago

Oh, yeah, I don't have an in-tab switching. Is this a requested feature? What would I do with unsaved changes when switching? I guess I could look at the pending tab state (when the tab title is italic) and allow in tab switching for pending tabs (as long as their content is unchanged).

SEbbaDK commented 6 years ago

Same tab switching would be optimal for me, since my header files are usually so small and i only edit them when touching the .c file too

dschwen commented 6 years ago

This is actually in 0.27.0, just enable the "New tab pending" option and it will switch the pending tab to a new pending tab in place.