Bug 478353 - split-view does not show the same document and instead launches a new shell
Summary: split-view does not show the same document and instead launches a new shell
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: split-view (show other bugs)
Version: 23.08.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-10 17:18 UTC by denix13@gmail.com
Modified: 2023-12-11 13:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-178842-0.html (3.33 KB, text/html)
2023-12-10 17:42 UTC, tcanabrava
Details
attachment-294716-0.html (2.14 KB, text/html)
2023-12-11 13:06 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description denix13@gmail.com 2023-12-10 17:18:18 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
In previous releases of konsole, "split-view" did just that:
split the current pane in two so that one can have two views of
the same document. This is consistent with what is written in the
konsole handbook:

View → Split View → Split View Top/Bottom (Ctrl+)) 
Splits all the tabs into top and bottom views 
Any output on one view is duplicated in the other view.

This is particularly useful for examining long files!

On the current opensuse tumbleweed, konsole-23.08.3-1.1.x86_64
split the screen in two panes, but launches a new shell in the
new pane. It is therefore not possible to have two different views
of the same document.

The current behaviour is the same as "clone tab" or "new tab"
which kind of renders it useless.

Is it possible to restore the correct behaviour?


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 tcanabrava 2023-12-10 17:42:33 UTC
Created attachment 164074 [details]
attachment-178842-0.html

Not a bug but an Intended change. The handbook is wrong for a while
aparently, and that will be changed.

It’s possible to add a new feature that would let the current view to be
mirrored in another split but the current way the Split View works is more
consistent with the way all other terminal do Split Views.

On Sun, 10 Dec 2023 at 18:18 <denix13@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=478353
>
>             Bug ID: 478353
>            Summary: split-view does not show the same document and instead
>                     launches a new shell
>     Classification: Applications
>            Product: konsole
>            Version: 23.08.3
>           Platform: openSUSE
>                 OS: Linux
>             Status: REPORTED
>           Severity: normal
>           Priority: NOR
>          Component: split-view
>           Assignee: konsole-devel@kde.org
>           Reporter: denix13@gmail.com
>   Target Milestone: ---
>
> SUMMARY
> ***
> NOTE: If you are reporting a crash, please try to attach a backtrace with
> debug
> symbols.
> See
>
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
> ***
> In previous releases of konsole, "split-view" did just that:
> split the current pane in two so that one can have two views of
> the same document. This is consistent with what is written in the
> konsole handbook:
>
> View → Split View → Split View Top/Bottom (Ctrl+))
> Splits all the tabs into top and bottom views
> Any output on one view is duplicated in the other view.
>
> This is particularly useful for examining long files!
>
> On the current opensuse tumbleweed, konsole-23.08.3-1.1.x86_64
> split the screen in two panes, but launches a new shell in the
> new pane. It is therefore not possible to have two different views
> of the same document.
>
> The current behaviour is the same as "clone tab" or "new tab"
> which kind of renders it useless.
>
> Is it possible to restore the correct behaviour?
>
>
> STEPS TO REPRODUCE
> 1.
> 2.
> 3.
>
> OBSERVED RESULT
>
>
> EXPECTED RESULT
>
>
> SOFTWARE/OS VERSIONS
> Windows:
> macOS:
> Linux/KDE Plasma:
> (available in About System)
> KDE Plasma Version:
> KDE Frameworks Version:
> Qt Version:
>
> ADDITIONAL INFORMATION
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 2 denix13@gmail.com 2023-12-11 12:47:42 UTC
@tcanabrava@kde.org
Thank you for having answered so fast. Much appreciated!

As per your suggestion, I had to install a few other terminal programs
to see that their split-view indeed create a new shell.

But konsole is the terminal of KDE plasma and what made it stand out
was the possibility to split a terminal session in two when
visualizing a long command output (think ala journalctl or git log)
which is really useful. So I think adding back this functionality to
konsole would indeed be a good thing in my opinion.

Note I can trivially do that in Emacs with its terminal emulators and
split-buffer. But Emacs is not a proper terminal application.  Maybe
it is possible to do it with Gnu screen or tmux but I have not found
yet.

Now the way to do it in konsole if I had the capabilities to program
in KDE plasma would be to add a context menu (right-mouse click) in
each pane of a konsole split and let the user choose the associated
shell session, with maybe the default session set in a parameter
file. Possible?

Keep up the good work!

Cheers,

Denix13
Comment 3 tcanabrava 2023-12-11 13:06:40 UTC
Created attachment 164087 [details]
attachment-294716-0.html

Indeed possible and I know a few people (including you) that would be happy
with that so I promise to work torwards that

On Mon, 11 Dec 2023 at 13:47 <denix13@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=478353
>
> --- Comment #2 from denix13@gmail.com <denix13@gmail.com> ---
> @tcanabrava@kde.org
> Thank you for having answered so fast. Much appreciated!
>
> As per your suggestion, I had to install a few other terminal programs
> to see that their split-view indeed create a new shell.
>
> But konsole is the terminal of KDE plasma and what made it stand out
> was the possibility to split a terminal session in two when
> visualizing a long command output (think ala journalctl or git log)
> which is really useful. So I think adding back this functionality to
> konsole would indeed be a good thing in my opinion.
>
> Note I can trivially do that in Emacs with its terminal emulators and
> split-buffer. But Emacs is not a proper terminal application.  Maybe
> it is possible to do it with Gnu screen or tmux but I have not found
> yet.
>
> Now the way to do it in konsole if I had the capabilities to program
> in KDE plasma would be to add a context menu (right-mouse click) in
> each pane of a konsole split and let the user choose the associated
> shell session, with maybe the default session set in a parameter
> file. Possible?
>
> Keep up the good work!
>
> Cheers,
>
> Denix13
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.