Rename Pluma to Xedit

This commit is contained in:
Clement Lefebvre
2016-01-25 14:13:49 +00:00
parent 3a62ddff64
commit 4304f9ffc1
563 changed files with 112901 additions and 112901 deletions

View File

@@ -1,4 +1,4 @@
TOOL_MERGE=$(top_srcdir)/plugins/externaltools/scripts/pluma-tool-merge.pl
TOOL_MERGE=$(top_srcdir)/plugins/externaltools/scripts/xedit-tool-merge.pl
tools_in_files = \
build.tool.in \
@@ -14,7 +14,7 @@ desktop_in_files = $(install_tools_in_files:.tool.in=.desktop.in)
desktop_files = $(install_tools_in_files:.tool.in=.desktop)
tools_SCRIPTS = $(install_tools_in_files:.tool.in=)
toolsdir = $(PLUMA_PLUGINS_DATA_DIR)/externaltools/tools
toolsdir = $(XEDIT_PLUGINS_DATA_DIR)/externaltools/tools
all_tools_in_files = \
$(tools_in_files)

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Build
_Comment=Run "make" in the document directory
Input=nothing

View File

@@ -1,7 +1,7 @@
#!/bin/sh
EHOME=`echo $HOME | sed "s/#/\#/"`
DIR=$PLUMA_CURRENT_DOCUMENT_DIR
DIR=$XEDIT_CURRENT_DOCUMENT_DIR
while test "$DIR" != "/"; do
for m in GNUmakefile makefile Makefile; do
if [ -f "${DIR}/${m}" ]; then

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Open terminal here
_Comment=Open a terminal in the document location
Input=nothing

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#TODO: use "mateconftool-2 -g /desktop/mate/applications/terminal/exec"
mate-terminal --working-directory=$PLUMA_CURRENT_DOCUMENT_DIR &
mate-terminal --working-directory=$XEDIT_CURRENT_DOCUMENT_DIR &

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Remove trailing spaces
_Comment=Remove useless trailing spaces in your file
Input=document

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Run command
_Comment=Execute a custom command and put its output in a new document
Input=nothing

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#TODO: use "gsettings get org.mate.applications-terminal exec"
exec `zenity --entry --title="Run command - Pluma" --text="Command to run"`
exec `zenity --entry --title="Run command - Xedit" --text="Command to run"`

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Search
Shortcut=<Primary><Shift>f
Languages=

View File

@@ -1,4 +1,4 @@
[Pluma Tool]
[Xedit Tool]
_Name=Switch onto a file .c and .h
Shortcut=<Shift><Alt>s
Applicability=all

View File

@@ -17,9 +17,9 @@
import os
name = os.environ["PLUMA_CURRENT_DOCUMENT_NAME"]
name = os.environ["XEDIT_CURRENT_DOCUMENT_NAME"]
if name.endswith('.c'):
os.system("pluma %s.h" % ".".join(name.split('.')[:-1]))
os.system("xedit %s.h" % ".".join(name.split('.')[:-1]))
if name.endswith('.h'):
os.system("pluma %s.c" % ".".join(name.split('.')[:-1]))
os.system("xedit %s.c" % ".".join(name.split('.')[:-1]))