Results 1 to 5 of 5

Thread: Can gedit save open file instances?

  1. #1
    Join Date
    Oct 2005
    Location
    Gainesville, FL
    Beans
    Hidden!
    Distro
    Kubuntu 9.10 Karmic Koala

    Can gedit save open file instances?

    Subject line says it all. I use gedit to modify about 7 or so files for a mysql/php project. Opening them all individually is annoying. I know editors I've used in the past (like kate) could remember all the open files. I can't seem to find this functionality in gedit. Is it there?

  2. #2
    Join Date
    May 2007
    Beans
    980
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Can gedit save open file instances?

    Gedit is intended to be a lightweight text editor, so probably the closest to the feature that you want is the "Recent files" list that you have under the File menu.

    You can also use the command line, write a shell script or set an alias that will open all the files that you need when you start gedit.

    For example, if you execute it like this:
    Code:
    gedit file1 file2 file3 file4
    It will open all the files in the same window. Don't forget that you need to put the full path to every file.

    Probably a small shell script would be the easiest thing to do. It will look similar to this:
    PHP Code:
    #!/bin/sh
    folder="path to where your files are"
    gedit $folder"file name 1" $folder"file name 1" $folder"file name 3" &
    done 
    Then you can add a launcher to your gnome panel or to your menus that will execute the script.
    Last edited by Diabolis; August 25th, 2008 at 12:04 AM.

  3. #3
    Join Date
    Oct 2005
    Location
    Gainesville, FL
    Beans
    Hidden!
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Can gedit save open file instances?

    Ah. Excellent idea. I love using little shell scripts whenever I can. I made a little one to move all my php file changes to /var/www and send backups to another machine. Thanks for the idea.

    -Griff

  4. #4
    Join Date
    Oct 2008
    Beans
    2

    Re: Can gedit save open file instances?

    whats that done used for

  5. #5
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

    Re: Can gedit save open file instances?

    i just found a gedit plugin that kinda does what you need
    Code:
    sudo apt-get install gedit-plugins
    and enable the 'session saver' plugin from edit->preferences->plugins
    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •