Linux Commands Examples

A great documentation place for Linux commands

gnome-text-editor

text editor for the GNOME Desktop

Synopsis

gedit [OPTION...] [FILE...] [+LINE[:COLUMN]]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
function edit_config {
gnome-text-editor "${BASE_PATH}/config"
exit 0;
}
function get_wall_filename {
wget -U "${USER_AGENT}" -q -O- ${FEED_URL} | grep -P -o 'http://*[^:]*\.jpg' | head -n1 | sed -e 's/previews/7yz4ma1/g' | sed -e 's/@2x\.jpg/_'${RESOLUTION}'\.jpg/g'

description

gedit is the official text editor of the GNOME desktop environment.

While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor. It can be used to create and edit all kinds of text files.

gedit features a flexible plugin system which can be used to dynamically add new advanced features to gedit itself.

options

-b, --background

Run gedit in the background.

--encoding

Set the character encoding to be used for opening the files listed on the command line.

-g, --geometry=GEOMETRY

Set the X geometry window size (WIDTHxHEIGHT+X+Y).

--list-encodings

Display list of possible values for the encoding option and exit.

--new-window

Create a new toplevel window in an existing instance of gedit.

--new-document

Create a new document in an existing instance of gedit.

-s, --standalone

Run gedit in standalone mode.

-w, --wait

Open files and block the gedit process.

--help

Prints the command line options.

--version

Output version information and exit.

FILE

Specifies the file to open when gedit starts. If this is not specified, gedit will load a blank file with an "Unsaved Document" label. Multiple files can be loaded if they are separated by spaces. gedit also supports handling of remote files. For example, you can pass the location of a webpage to gedit , like "http://www.gnome.org", or load a file from a FTP server, like "ftp://ftp.gnome.org/robots.txt".

+LINE

For the first file, go to the line specified by LINE (do not insert a space between the "+" sign and the number). If LINE is missing, go to the last line.

COLUMN

For the first file, go to the column specified by COLUMN. If COLUMN is missing, go to the first column.


bugs

If you find a bug, please report it at http://bugzilla.gnome.org/enter_bug.cgi?product=gedit.


authors

Paolo Maggi (paolo[:at:]gnome[:dot:]org)
Paolo Borelli (pborelli[:at:]katamail[:dot:]com)
Steve Frécinaux (code[:at:]istique[:dot:]net)
Jesse van den Kieboom (jessevdk[:at:]gnome[:dot:]org)
Ignacio Casal Quinteiro <icq[:at:]gnome[:dot:]org>
James Willcox (jwillcox[:at:]gnome[:dot:]org)
Federico Mena Quintero (federico[:at:]novell[:dot:]com)
Chema Celorio

How can this site be more helpful to YOU ?


give  feedback