Bug 487357

Summary: Terminal panel(s) as editor tabs
Product: [Applications] kate Reporter: 0BADC0DE <vincenzo.romano>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: lassi.vaatamoinen
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: VS Code with embedded terminal as a tab
The terminal window shown as a tab in 2-columns mode
Kate window, full-screen, Konsole pane on the right

Description 0BADC0DE 2024-05-22 08:01:47 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I would like to have an option to open a terminal panel in the same place where editor panels are opened, with full window height.
I have 2 main reasons for this.

1. I am continuously extending and shrinking that panel when I need that during editing. With this feature I would just switch to a different panel or go multi-column.
2. My monitors are wider than high and this feature would make better use of the screen real estate.

This feature is already present in VS Code.

STEPS TO REPRODUCE
1. This is a wish-list so this feature is not present.

OBSERVED RESULT
1. Terminal panels are opened belo the editor area thus shrinking it.

EXPECTED RESULT
1. An option to open the terminal "aside" of the editor area, as tab.

SOFTWARE/OS VERSIONS
Kernel Version : 6.9.1.zen1-1
Plasma Version : 6.0.4.1-1
KDE Version : 24.02.2-1
Frameworks Version : 6.2.0-1
Qt5 Version : 5.15.13+kde+r7-1
Qt6 Version : 6.7.0-7

ADDITIONAL INFORMATION
n/a
Comment 1 Lassi Väätämöinen 2024-06-28 19:01:49 UTC
(In reply to 0BADC0DE from comment #0)
> I would like to have an option to open a terminal panel in the same place
> where editor panels are opened, with full window height.
> I have 2 main reasons for this.
> 
> 1. I am continuously extending and shrinking that panel when I need that
> during editing. With this feature I would just switch to a different panel
> or go multi-column.
> 2. My monitors are wider than high and this feature would make better use of
> the screen real estate.

You seem to refer to height being the issue. I know the width will not be a "full" tab width, but as alternative to the bottom bar, you can move the terminal view to left or right side bars.

So terminal  will open in full height, but of course splitting the view vertically in half.
Comment 2 0BADC0DE 2024-06-29 10:43:24 UTC
Created attachment 171164 [details]
VS Code with embedded terminal as a tab

The terminal tab is shown just like any editor tab.
Comment 3 0BADC0DE 2024-06-29 10:45:00 UTC
Created attachment 171165 [details]
The terminal window shown as a tab in 2-columns mode

The terminal window is visible at the same time as the code window.
Of course, you cannot have full width. But you can have full height.
Comment 4 0BADC0DE 2024-06-29 10:46:42 UTC
The basic idea is to let the user choose whether they need full height or full width terminal.
As is it now in kate you can only have full width. Unless you open konsole and put it aside of you kate session.
Which is not what I am talking about.
Comment 5 Lassi Väätämöinen 2024-06-29 10:48:58 UTC
(In reply to 0BADC0DE from comment #4)
> As is it now in kate you can only have full width. Unless you open konsole
> and put it aside of you kate session.

See comment #1. You can move the terminal pane to either left or right sidebar, instead of being at the bottom. This is how you get full height Konsole in the Kate window. Just right click on the pane button at the bottom bar and select other sidebar from the menu.

If you keep it in the bottom pane, it will open at the bottom, being full width.
Comment 6 Lassi Väätämöinen 2024-06-29 11:11:18 UTC
Created attachment 171168 [details]
Kate window, full-screen, Konsole pane on the right

Here you can see the Terminal pane being set on the right-hand side of Kate window. Also showing the right-click context menu,  where you can set to which side of the window you want the terminal view.
Comment 7 0BADC0DE 2024-06-29 14:38:12 UTC
That's pretty cool. Thanks, Lassi.
I was not aware of such a feature: never did a right-click on the terminal icon!
Comment 8 0BADC0DE 2024-06-29 16:57:16 UTC
As of now I can only have a single terminal, while VS Code and LAPCE can have multiple.
But so far I for one can live with that.
Comment 9 Lassi Väätämöinen 2024-06-29 16:59:18 UTC
(In reply to 0BADC0DE from comment #8)
> As of now I can only have a single terminal, while VS Code and LAPCE can
> have multiple.
> But so far I for one can live with that.

You can use your shortcuts to open new tabs (Ctrl+Shift+T) in the terminal view. In practise it works as a Konsole normally would.
Comment 10 Lassi Väätämöinen 2024-06-29 17:01:03 UTC
(In reply to Lassi Väätämöinen from comment #9)
> (In reply to 0BADC0DE from comment #8)
> > As of now I can only have a single terminal, while VS Code and LAPCE can
> > have multiple.
> > But so far I for one can live with that.
> 
> You can use your shortcuts to open new tabs (Ctrl+Shift+T) in the terminal
> view. In practise it works as a Konsole normally would.

And you can configure Kate-specific shortcuts in the normal shorcut configuration dialog.

Also: Tools -> New Terminal Tab.
Comment 11 0BADC0DE 2024-06-29 17:01:21 UTC
Even cooler! Thanks twice Lassi! o/