Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CTRL+SHIFT+G and you got yo'self a nice ol' gist private URL to your clipboard!
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Note: Please see gedit-icing for more gedit plugins.


Author: Nick Baugh (@niftylettuce) |

  1. Install xclip for clipboard copying:

    sudo apt-get install xclip
  2. Install gista (Note: this requires node and npm, here are quick instructions to install these requirements):

        npm install -g gista
  3. Enable the External Tools plugin:

    Enable the External Tools plugin

  4. Add a new entry called gedit-gists under Tools -> Manage External Tools:

      if [ -d "$HOME/bin" ]; then PATH="$HOME/bin:$PATH"
      export PATH=$HOME/local/node/bin:$PATH
      if [ -n "${GEDIT_CURRENT_DOCUMENT_NAME+x}" ]; then
        GIST=`cat $1 | gista -pn $GEDIT_CURRENT_DOCUMENT_NAME -d "Gist created using"`
        GIST=`cat $1 | gista -pd "Gist created using"`
      echo $GIST | tr -d '\n' | xclip -selection clipboard
      echo "Successfully created gist (URL is copied to clipboard)"
      echo $GIST
  5. Set External Tool Options as follows:

    Set External Tool Options as follows

  6. Open your file in gedit, then use the hotkey CTRL+SHIFT+G to generate and store a Gist URL to your clipboard.

  7. You can also select specific parts of a file and use the hotkey.

  8. If you would like to modify things (e.g. public vs. private gists) please type gista -h and modify the the script above.

For more gedit plugins, tools, tricks, and tips:

Something went wrong with that request. Please try again.