Mads Buus Westmark’s tech blog
RSS icon Home icon
  • snap open

    Download (or clone) latest version from github: http://github.com/MadsBuus/gedit-snapopen-plugin

    This plugin makes it much more convenient to open related source files.

    Inspired by TextMate for Mac, this plugin will use regular expressions to quickly search through files as you type. You just add spaces for wildcards. It also matches any paths to files, so, for example, writing ‘config’ will also match any files in to your config folder.

    Linux

    Press CTRL+ALT+o (letter o) to open dialog

    OS X (using native OSX port of gedit):

    snapopen screenshot mac

    snapopen screenshot mac

    Press alt-cmd-o (letter o) to open dialog

    Filebrowser integration: if the ‘file browser’ integration is enabled. Snap Open will use the filebrowsers ‘root’ dir as top level dir when searching

    for files to open. if filebrowser is NOT used, The files suggested are those in or below the directory from where gedit was started.

    You can enter text or use arrow keys to select the file,and then hit enter to open that file.

    If the file is already open, Gedit will switch t

    o the proper tab. Escape will close the dialog.

    This plugin uses ‘find’ and ‘grep’ tools. You can modify the actual search command by editing snapopen.py and look for the line starting with

    	cmd = "find ...

    Have fun!