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 349097 - Scriptable Context Menu
Scriptable Context Menu
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 492515 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-07-28 15:25 UTC by mitchell perilstein
Modified: 2021-06-10 16:42 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description mitchell perilstein 2006-07-28 15:25:42 UTC
Inspired by Nautilus context menus:

When presenting the right-click context menu,
if directory ~/.gnome2/gnome-terminal-scripts exists, then:
present each file in that directory as a menu choice under a "Scripts" section.

If a script is chosen, it should be run with the current terminal selection (if small enough) as an argument.  If there is no selection, the script is run with no arguments.  The output of the script is pasted into the terminal.

Examples:

  #!/bin/sh
  # script to insert some text into terminal
  cat ~/.signature


  #!/bin/sh
  # script to do some math on selected region and insert result
  echo $(($1))
Comment 1 mitchell perilstein 2006-07-28 15:34:53 UTC
Oh yea, I'm working on a patch to terminal-screen.c to do this.
Comment 2 Christian Persch 2008-07-15 11:13:00 UTC
*** Bug 492515 has been marked as a duplicate of this bug. ***
Comment 3 GNOME Infrastructure Team 2021-06-10 16:42:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/3548.