Rename Pluma to Xedit
This commit is contained in:
@@ -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)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Tool]
|
||||
[Xedit Tool]
|
||||
_Name=Build
|
||||
_Comment=Run "make" in the document directory
|
||||
Input=nothing
|
||||
|
@@ -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
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Tool]
|
||||
[Xedit Tool]
|
||||
_Name=Open terminal here
|
||||
_Comment=Open a terminal in the document location
|
||||
Input=nothing
|
||||
|
@@ -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 &
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Tool]
|
||||
[Xedit Tool]
|
||||
_Name=Remove trailing spaces
|
||||
_Comment=Remove useless trailing spaces in your file
|
||||
Input=document
|
||||
|
@@ -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
|
||||
|
@@ -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"`
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Tool]
|
||||
[Xedit Tool]
|
||||
_Name=Search
|
||||
Shortcut=<Primary><Shift>f
|
||||
Languages=
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[Pluma Tool]
|
||||
[Xedit Tool]
|
||||
_Name=Switch onto a file .c and .h
|
||||
Shortcut=<Shift><Alt>s
|
||||
Applicability=all
|
||||
|
@@ -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]))
|
||||
|
Reference in New Issue
Block a user