Renamed Xedit -> Xed (avoid name clash with x11-apps's xedit)

This commit is contained in:
Clement Lefebvre
2016-02-04 09:20:42 +00:00
parent c8dd785ea8
commit 16eacdc3f4
487 changed files with 104410 additions and 104432 deletions

View File

@@ -1,30 +1,30 @@
desktopdir = $(datadir)/applications
desktop_in_files = xedit.desktop.in
desktop_in_files = xed.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/appdata
appdata_in_files = xedit.appdata.xml.in
appdata_in_files = xed.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
gsettings_SCHEMAS = org.x.editor.gschema.xml
@GSETTINGS_RULES@
man_MANS = xedit.1
man_MANS = xed.1
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xedit.pc
pkgconfig_DATA = xed.pc
bugreportdir = $(libexecdir)/xedit
bugreport_SCRIPTS = xedit-bugreport.sh
bugreportdir = $(libexecdir)/xed
bugreport_SCRIPTS = xed-bugreport.sh
EXTRA_DIST = \
$(appdata_in_files) \
$(desktop_in_files) \
$(man_MANS) \
xedit.pc.in \
xedit-bugreport.sh.in
xed.pc.in \
xed-bugreport.sh.in
CLEANFILES = \
$(desktop_DATA) \

View File

@@ -4,7 +4,7 @@
<key name="use-default-font" type="b">
<default>true</default>
<summary>Use Default Font</summary>
<description>Whether to use the system's default fixed width font for editing text instead of a font specific to xedit. If this option is turned off, then the font named in the "Editor Font" option will be used instead of the system font.</description>
<description>Whether to use the system's default fixed width font for editing text instead of a font specific to xed. If this option is turned off, then the font named in the "Editor Font" option will be used instead of the system font.</description>
</key>
<key name="editor-font" type="s">
<default context="editor-font" l10n="messages">'Monospace 12'</default>
@@ -19,27 +19,27 @@
<key name="create-backup-copy" type="b">
<default>false</default>
<summary>Create Backup Copies</summary>
<description>Whether xedit should create backup copies for the files it saves. You can set the backup file extension with the "Backup Copy Extension" option.</description>
<description>Whether xed should create backup copies for the files it saves. You can set the backup file extension with the "Backup Copy Extension" option.</description>
</key>
<key name="auto-save" type="b">
<default>false</default>
<summary>Autosave</summary>
<description>Whether xedit should automatically save modified files after a time interval. You can set the time interval with the "Autosave Interval" option.</description>
<description>Whether xed should automatically save modified files after a time interval. You can set the time interval with the "Autosave Interval" option.</description>
</key>
<key name="auto-save-interval" type="i">
<default>10</default>
<summary>Autosave Interval</summary>
<description>Number of minutes after which xedit will automatically save modified files. This will only take effect if the "Autosave" option is turned on.</description>
<description>Number of minutes after which xed will automatically save modified files. This will only take effect if the "Autosave" option is turned on.</description>
</key>
<key name="writable-vfs-schemes" type="as">
<default>[ 'dav', 'davs', 'ftp', 'sftp', 'smb', 'ssh' ]</default>
<summary>Writable VFS schemes</summary>
<description>List of VFS schemes xedit supports in write mode. The 'file' scheme is writable by default.</description>
<description>List of VFS schemes xed supports in write mode. The 'file' scheme is writable by default.</description>
</key>
<key name="max-undo-actions" type="i">
<default>2000</default>
<summary>Maximum Number of Undo Actions</summary>
<description>Maximum number of actions that xedit will be able to undo or redo. Use "-1" for unlimited number of actions.</description>
<description>Maximum number of actions that xed will be able to undo or redo. Use "-1" for unlimited number of actions.</description>
</key>
<key name="wrap-mode" type="s">
<default>'GTK_WRAP_WORD'</default>
@@ -54,32 +54,32 @@
<key name="insert-spaces" type="b">
<default>false</default>
<summary>Insert spaces</summary>
<description>Whether xedit should insert spaces instead of tabs.</description>
<description>Whether xed should insert spaces instead of tabs.</description>
</key>
<key name="auto-indent" type="b">
<default>false</default>
<summary>Automatic indent</summary>
<description>Whether xedit should enable automatic indentation.</description>
<description>Whether xed should enable automatic indentation.</description>
</key>
<key name="display-line-numbers" type="b">
<default>false</default>
<summary>Display Line Numbers</summary>
<description>Whether xedit should display line numbers in the editing area.</description>
<description>Whether xed should display line numbers in the editing area.</description>
</key>
<key name="highlight-current-line" type="b">
<default>false</default>
<summary>Highlight Current Line</summary>
<description>Whether xedit should highlight the current line.</description>
<description>Whether xed should highlight the current line.</description>
</key>
<key name="bracket-matching" type="b">
<default>false</default>
<summary>Highlight Matching Bracket</summary>
<description>Whether xedit should highlight the bracket matching the selected one.</description>
<description>Whether xed should highlight the bracket matching the selected one.</description>
</key>
<key name="display-right-margin" type="b">
<default>false</default>
<summary>Display Right Margin</summary>
<description>Whether xedit should display the right margin in the editing area.</description>
<description>Whether xed should display the right margin in the editing area.</description>
</key>
<key name="right-margin-position" type="i">
<default>80</default>
@@ -94,17 +94,17 @@
<key name="restore-cursor-position" type="b">
<default>true</default>
<summary>Restore Previous Cursor Position</summary>
<description>Whether xedit should restore the previous cursor position when a file is loaded.</description>
<description>Whether xed should restore the previous cursor position when a file is loaded.</description>
</key>
<key name="enable-search-highlighting" type="b">
<default>true</default>
<summary>Enable Search Highlighting</summary>
<description>Whether xedit should highlight all the occurrences of the searched text.</description>
<description>Whether xed should highlight all the occurrences of the searched text.</description>
</key>
<key name="enable-syntax-highlighting" type="b">
<default>true</default>
<summary>Enable Syntax Highlighting</summary>
<description>Whether xedit should enable syntax highlighting.</description>
<description>Whether xed should enable syntax highlighting.</description>
</key>
<key name="toolbar-visible" type="b">
<default>true</default>
@@ -114,7 +114,7 @@
<key name="toolbar-buttons-style" type="s">
<default>'@TOOLBAR_STYLE@'</default>
<summary>Toolbar Buttons Style</summary>
<description>Style for the toolbar buttons. Possible values are "XEDIT_TOOLBAR_SYSTEM" to use the system's default style, "XEDIT_TOOLBAR_ICONS" to display icons only, "XEDIT_TOOLBAR_ICONS_AND_TEXT" to display both icons and text, and "XEDIT_TOOLBAR_ICONS_BOTH_HORIZ" to display prioritized text beside icons. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here.</description>
<description>Style for the toolbar buttons. Possible values are "XED_TOOLBAR_SYSTEM" to use the system's default style, "XED_TOOLBAR_ICONS" to display icons only, "XED_TOOLBAR_ICONS_AND_TEXT" to display both icons and text, and "XED_TOOLBAR_ICONS_BOTH_HORIZ" to display prioritized text beside icons. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here.</description>
</key>
<key name="statusbar-visible" type="b">
<default>true</default>
@@ -139,12 +139,12 @@
<key name="print-syntax-highlighting" type="b">
<default>true</default>
<summary>Print Syntax Highlighting</summary>
<description>Whether xedit should print syntax highlighting when printing documents.</description>
<description>Whether xed should print syntax highlighting when printing documents.</description>
</key>
<key name="print-header" type="b">
<default>true</default>
<summary>Print Header</summary>
<description>Whether xedit should include a document header when printing documents.</description>
<description>Whether xed should include a document header when printing documents.</description>
</key>
<key name="print-wrap-mode" type="s">
<default>'GTK_WRAP_WORD'</default>
@@ -154,7 +154,7 @@
<key name="print-line-numbers" type="i">
<default>0</default>
<summary>Print Line Numbers</summary>
<description>If this value is 0, then no line numbers will be inserted when printing a document. Otherwise, xedit will print line numbers every such number of lines.</description>
<description>If this value is 0, then no line numbers will be inserted when printing a document. Otherwise, xed will print line numbers every such number of lines.</description>
</key>
<key name="print-font-body-pango" type="s">
<default context="print-font-body-pango" l10n="messages">'Monospace 9'</default>
@@ -174,7 +174,7 @@
<key name="auto-detected-encodings" type="as">
<default context="auto-detected" l10n="messages">[ 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16' ]</default>
<summary>Automatically Detected Encodings</summary>
<description>Sorted list of encodings used by xedit for automatically detecting the encoding of a file. "CURRENT" represents the current locale encoding. Only recognized encodings are used.</description>
<description>Sorted list of encodings used by xed for automatically detecting the encoding of a file. "CURRENT" represents the current locale encoding. Only recognized encodings are used.</description>
</key>
<key name="shown-in-menu-encodings" type="as">
<default context="shown-in-menu" l10n="messages">[ 'ISO-8859-15' ]</default>
@@ -194,7 +194,7 @@
<key name="active-plugins" type="as">
<default>[ 'docinfo', 'modelines', 'filebrowser', 'spell', 'time' ]</default>
<summary>Active plugins</summary>
<description>List of active plugins. It contains the "Location" of the active plugins. See the .xedit-plugin file for obtaining the "Location" of a given plugin.</description>
<description>List of active plugins. It contains the "Location" of the active plugins. See the .xed-plugin file for obtaining the "Location" of a given plugin.</description>
</key>
</schema>
</schemalist>

View File

@@ -31,11 +31,11 @@ gsettings get org.x.editor active-plugins \
echo
# Manually installed plugins (in $HOME)
if [ -d $HOME/.config/xedit/plugins ]
if [ -d $HOME/.config/xed/plugins ]
then
echo "Plugins in \$HOME:"
ls $HOME/.config/xedit/plugins/*.xedit-plugin \
| sed -r -e 's#.*/([^/]*)\.xedit-plugin$# - \1#'
ls $HOME/.config/xed/plugins/*.xed-plugin \
| sed -r -e 's#.*/([^/]*)\.xed-plugin$# - \1#'
else
echo "No plugin installed in \$HOME."
fi

72
data/xed.1 Normal file
View File

@@ -0,0 +1,72 @@
.\" Man page for Xed.
.TH XED 1
.\"
.SH "NAME"
Xed \- The Text Editor
.SH "SYNOPSIS"
.B xed [OPTIONS...] [FILES...]
.SH "DESCRIPTION"
Xed is the official text editor of the X-APPS project, which aims to provide applications to the Cinnamon, MATE and Xfce desktops. While aiming at simplicity and ease of use, Xed is a powerful general purpose text editor. It can be used to create and edit all sorts of text files.
.PP
Xed features a flexible plugin system which can be used to dynamically add new advanced features to Xed itself.
.PP
This manual page briefly documents the \fBxed\fR command.
.SH "OPTIONS"
.TP
\fBfilename(s)...\fR
Specifies the file to open when \fBxed\fR starts. If this is not specified, \fBxed\fR will start a new, blank file with an "Unsaved Document" label. Multiple files can be loaded if they are separated by spaces. \fBxed\fR also supports handling of remote files.
.TP
\fB\-\-display=DISPLAY\fR
X display to use.
.TP
\fB\-\-encoding\fR
Set the character encoding to be used for opening the files listed on the command line.
.TP
\fB\-\-new\-window\fR
Create a new toplevel window in an existing instance of \fBxed\fR.
.TP
\fB\-\-new\-document\fR
Create a new document in an existing instance of \fBxed\fR, on the last Xed window that had focus.
.TP
\fB+[num]\fR
For the first file, go to the line specified by "num" (do not insert a space between the "+" sign and the number).
If "num" is missing, go to the last line.
.TP
\fB\-\-list-encodings\fR
Display list of possible values for the encoding option and exit
.TP
\fB\-\-version\fR
Output version information and exit
.TP
\fB\-?, \-h, \-\-help\fR
Print standard command line options.
.TP
\fB\-\-help\-all\fR
Print all command line options.
.P
This program also accepts the standard GTK options.
.SH "EXAMPLES"
\fBxed \-\-encoding WINDOWS-1252 ftp://ftp.kernel.org/pub/linux/kernel/README\fR
.RS 4
Open the Linux Kernel README file from kernel.org's FTP server using Windows-1252 character encoding.
.RE
.PP
\fBxed +156 http://www.some-website.com/\fR
.RS 4
Open the main web page of some-website.com and jump to line 156.
.RE
.PP
\fBxed \-\-new\-window ~/.bashrc ~/.bash_history\fR
.RS 4
Open the current users .bashrc and .bash_history files in a new window.
.SH "BUGS"
.SS Should you encounter any bugs, they may be reported at:
http://github.com/linuxmint/xed/issues
.fi
.SH "SEE ALSO"
.SS
Xed documentation can be found from the "Help" menu, or by pressing the F1 key.

View File

@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>xedit.desktop</id>
<id>xed.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Xedit</name>
<name>Xed</name>
<_summary>A Text Editor</_summary>
<_description>
<p>
Xedit is a small, but powerful text editor. It has most standard text editor functions and fully
Xed is a small, but powerful text editor. It has most standard text editor functions and fully
supports international text in Unicode. Advanced features include syntax
highlighting and automatic indentation of source code, printing and editing
of multiple documents in one window.
</p>
<p>
Xedit is extensible through a plugin system, which currently includes
Xed is extensible through a plugin system, which currently includes
support for spell checking, comparing files, viewing CVS ChangeLogs, and
adjusting indentation levels.
</p>
</_description>
<url type="homepage">http://www.github.com/linuxmint/xedit</url>
<url type="homepage">http://www.github.com/linuxmint/xed</url>
<updatecontact>root@linuxmint.com</updatecontact>
<project_group>X-Apps</project_group>
</component>

View File

@@ -1,7 +1,7 @@
[Desktop Entry]
_Name=Text Editor
_Comment=Edit text files
Exec=xedit %U
Exec=xed %U
Terminal=false
Type=Application
StartupNotify=true
@@ -9,4 +9,4 @@ MimeType=text/plain;
Icon=accessories-text-editor
Categories=GTK;Utility;TextEditor;
Keywords=text;editor;tabs;highlighting;code;multiple;files;pluggable;
X-MATE-DocPath=xedit/xedit.xml
X-MATE-DocPath=xed/xed.xml

View File

@@ -2,11 +2,11 @@ prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
pluginsdir=@libdir@/xedit/plugins
pluginsdir=@libdir@/xed/plugins
Name: xedit
Description: xedit
Name: xed
Description: xed
Requires: gtksourceview-@GTK_API_VERSION@
Version: @VERSION@
Cflags: -I${includedir}/xedit
Cflags: -I${includedir}/xed
Libs: -L${libdir}

View File

@@ -1,72 +0,0 @@
.\" Man page for Xedit.
.TH XEDIT 1
.\"
.SH "NAME"
Xedit \- The Text Editor
.SH "SYNOPSIS"
.B xedit [OPTIONS...] [FILES...]
.SH "DESCRIPTION"
Xedit is the official text editor of the X-APPS project, which aims to provide applications to the Cinnamon, MATE and Xfce desktops. While aiming at simplicity and ease of use, Xedit is a powerful general purpose text editor. It can be used to create and edit all sorts of text files.
.PP
Xedit features a flexible plugin system which can be used to dynamically add new advanced features to Xedit itself.
.PP
This manual page briefly documents the \fBxedit\fR command.
.SH "OPTIONS"
.TP
\fBfilename(s)...\fR
Specifies the file to open when \fBxedit\fR starts. If this is not specified, \fBxedit\fR will start a new, blank file with an "Unsaved Document" label. Multiple files can be loaded if they are separated by spaces. \fBxedit\fR also supports handling of remote files.
.TP
\fB\-\-display=DISPLAY\fR
X display to use.
.TP
\fB\-\-encoding\fR
Set the character encoding to be used for opening the files listed on the command line.
.TP
\fB\-\-new\-window\fR
Create a new toplevel window in an existing instance of \fBxedit\fR.
.TP
\fB\-\-new\-document\fR
Create a new document in an existing instance of \fBxedit\fR, on the last Xedit window that had focus.
.TP
\fB+[num]\fR
For the first file, go to the line specified by "num" (do not insert a space between the "+" sign and the number).
If "num" is missing, go to the last line.
.TP
\fB\-\-list-encodings\fR
Display list of possible values for the encoding option and exit
.TP
\fB\-\-version\fR
Output version information and exit
.TP
\fB\-?, \-h, \-\-help\fR
Print standard command line options.
.TP
\fB\-\-help\-all\fR
Print all command line options.
.P
This program also accepts the standard GTK options.
.SH "EXAMPLES"
\fBxedit \-\-encoding WINDOWS-1252 ftp://ftp.kernel.org/pub/linux/kernel/README\fR
.RS 4
Open the Linux Kernel README file from kernel.org's FTP server using Windows-1252 character encoding.
.RE
.PP
\fBxedit +156 http://www.some-website.com/\fR
.RS 4
Open the main web page of some-website.com and jump to line 156.
.RE
.PP
\fBxedit \-\-new\-window ~/.bashrc ~/.bash_history\fR
.RS 4
Open the current users .bashrc and .bash_history files in a new window.
.SH "BUGS"
.SS Should you encounter any bugs, they may be reported at:
http://github.com/linuxmint/xedit/issues
.fi
.SH "SEE ALSO"
.SS
Xedit documentation can be found from the "Help" menu, or by pressing the F1 key.