Just upgraded from SL3 to SL4. The option ‘New view into file’ now does not show up under ‘File’, and cannot find it under other categories either.
'New view into file' disappeared after update
But Split View
doesn’t do the same. BTW there’s no button to undo the split view that is generated with that button.
It doesn’t do the exact same thing, no. It opens up a new view into the file and then multi-selects it.
Not sure what you mean here, there wasn’t an “undo” button for “New View into File” either. Just close one of the tabs.
So is there some setting to bring back ‘New View into File’ to the ‘File’ menu? Or at least some setting to have it appear in the right click menu of file tabs?
By not undoing the split view, I mean that it doesn’t follow the same logic as with grouped layouts even though it looks the same (doesn’t follow layout settings, and the effect disappears after switching tabs), and if there’s multiple tabs opened, it’s very hard to pinpoint which specific tab was added by the split view.
So is there some setting to bring back ‘New View into File’ to the ‘File’ menu? Or at least some setting to have it appear in the right click menu of file tabs?
You can customise the menu to use the old command. Afaik none of that has changed, only the actual menu item was changed.
By not undoing the split view, I mean that it doesn’t follow the same logic as with grouped layouts even though it looks the same (doesn’t follow layout settings, and the effect disappears after switching tabs), and if there’s multiple tabs opened, it’s very hard to pinpoint which specific tab was added by the split view.
Yes, that is the intention. It lets you make quick temporary side-by-side views without having to manage multiple tab groups. Chances are that if someone wants a new view into the file that they’ll want it side-by-side, and if not then changing the tab selection is simple.
If you want to do something like this, create a file named Main.sublime-menu
in your User
package with this content:
[
{
"id": "file",
"children": [
{ "command": "clone_file", "args": {"add_to_selection": false}, "caption": "New View into File", "mnemonic": "e" },
],
}
]
The difference between this and the Split View
command (besides the caption
is that add_to_selection
is false
instead of true
.
Glad to have found this thread, the final solution is really useful. I also noticed that “New view into file” is still in the command palette.
For what it’s worth, this quoted comment is extremely wrong for me, to the point where I sort of think you may want to get some sanity check from the userbase in how this feature was actually used in ST3. (And for those who used it the way I did and as much as I did, it’s simple I agree but also IMO pretty annoying…)