After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751503 - Cannot move/split/save terminal
Cannot move/split/save terminal
Status: RESOLVED INCOMPLETE
Product: gnome-builder
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-25 14:44 UTC by Michael Catanzaro
Modified: 2015-07-07 19:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of big terminal with broken move/split/save options (266.06 KB, image/png)
2015-06-25 14:44 UTC, Michael Catanzaro
  Details
fix spit and move (29.75 KB, patch)
2015-07-02 20:21 UTC, sébastien lafargue
none Details | Review
GbTerminalView: add split and move (29.63 KB, patch)
2015-07-05 11:17 UTC, sébastien lafargue
committed Details | Review
GbTerminalView: save and save-as (17.74 KB, patch)
2015-07-05 13:00 UTC, sébastien lafargue
committed Details | Review

Description Michael Catanzaro 2015-06-25 14:44:52 UTC
Created attachment 306115 [details]
screenshot of big terminal with broken move/split/save options

Working with the terminal plugin in the bottom frame, I can press Ctrl+Shift+T to open a big terminal in the normal editor view (screenshot attached). I was pretty surprised to discover that, but I guess you'll have a more discoverable way to do this in the future? Anyway, this big terminal has the same split, move, and save operations as normal text documents, but nothing happens when I click on them. They should be insensitive or not present.

It would be nice to implement Move, though.
Comment 1 sébastien lafargue 2015-07-02 20:21:46 UTC
Created attachment 306662 [details] [review]
fix spit and move

This patch need https://bugzilla.gnome.org/show_bug.cgi?id=751834 to work like expected.

There's still some issues already there before the patch:

- When closing Gb with an open terminal we get :

GLib[8101]:  WARNING: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.

- I also haven't test the needs-attention provide by OSC 777 command as patches for this are not committed yet :

https://bugzilla.gnome.org/show_bug.cgi?id=711059

- When moving views (terminal, editor, Devhelp) to the left we get :

CRITICAL: gtk_window_get_default_widget: assertion 'GTK_IS_WINDOW (window)' failed
CRITICAL: gtk_window_set_default: assertion 'GTK_IS_WINDOW (window)' failed
Comment 2 sébastien lafargue 2015-07-02 20:22:56 UTC
what about save/save as ?

we can do it by saving the focused view when having a vertical split.
Comment 3 sébastien lafargue 2015-07-03 21:00:58 UTC
Review of attachment 306662 [details] [review]:

::: plugins/terminal/gb-terminal-view.c
@@ -229,1 +271,13 @@
-
+      if (position == GTK_POS_TOP &&
+          !gtk_widget_in_destruction (GTK_WIDGET (self->terminal_top)))
+        {
... 10 more ...

i have forgotten this one
Comment 4 sébastien lafargue 2015-07-05 11:17:06 UTC
Created attachment 306851 [details] [review]
GbTerminalView: add split and move
Comment 5 sébastien lafargue 2015-07-05 13:00:35 UTC
Created attachment 306855 [details] [review]
GbTerminalView: save and save-as

Terminal views now support save
(it do a save-as if you never saved it before)
and save-as.

The saved terminal is the focused one.
The whole terminal backlog history is saved, unless
there's a selection, in this case, the selection is saved.
Comment 6 sébastien lafargue 2015-07-05 13:03:20 UTC
what's missing so far:

- <ctrl>s

- highlight ( blue border like focused entry ? ) focused terminal,
  so we can clearly see the one to save.

- progress bar: not sure it's worth the code as it almost always small files.
Comment 7 sébastien lafargue 2015-07-05 14:57:50 UTC
We also need cut/copy/paste handling too
Comment 8 Christian Hergert 2015-07-07 18:53:19 UTC
LGTM, lets get this merged.
Comment 9 sébastien lafargue 2015-07-07 19:17:05 UTC
Attachment 306851 [details] pushed as 7484f85 - GbTerminalView: add split and move
Attachment 306855 [details] pushed as 89869c8 - GbTerminalView: save and save-as