This file is indexed.

/usr/share/medit-1/menu.xml is in medit 1.0.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<moo-user-tools version="1.0"><!-- -%- indent-width:2 -%- -->
  <command id="SortLines">
    <name>Sort Lines</name>
    <options>need-doc</options>
    <type>lua</type>
    <lua:code><![CDATA[
lines = doc.get_selected_lines()
if #lines > 1 then
  table.sort(lines)
  doc.replace_selected_lines(lines)
end
]]></lua:code>
  </command>
  <command id="SortLinesUniq">
    <name>Sort | Uniq</name>
    <options>need-doc</options>
    <type>exe</type>
    <exe:input>lines</exe:input>
    <exe:output>insert</exe:output>
    <exe:code><![CDATA[
sort | uniq
]]></exe:code>
  </command>
  <command id="DiffToDisk">
    <name>Diff to Disk</name>
    <options>need-file</options>
    <type>exe</type>
    <exe:input>doc-copy</exe:input>
    <exe:code><![CDATA[
diff -pu $DOC_PATH $INPUT_FILE > $TEMP_DIR/m.diff
medit -r $TEMP_DIR/m.diff
]]></exe:code>
  </command>
  <command id="Yacc">
    <name>Bison</name>
    <langs>yacc</langs>
    <options>need-file,need-save</options>
    <type>exe</type>
    <exe:filter>bison</exe:filter>
    <exe:output>pane</exe:output>
    <exe:code><![CDATA[
bison $DOC
]]></exe:code>
  </command>
  <command id="LaTeX">
    <name>LaTeX</name>
    <file-filter>*.tex</file-filter>
    <options>need-save</options>
    <accel>&lt;shift&gt;&lt;ctrl&gt;L</accel>
    <type>exe</type>
    <exe:output>pane</exe:output>
    <exe:code><![CDATA[
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
latex --src-specials "$doc"
]]></exe:code>
  </command>
  <command id="Make_PDF">
    <name>Make PDF</name>
    <file-filter>*.tex</file-filter>
    <options>need-save</options>
    <type>exe</type>
    <exe:output>pane</exe:output>
    <exe:code><![CDATA[
  [ -f medit-env.sh ] && . medit-env.sh
  doc="${LATEX_MASTER:-$DOC}"
  doc_base=`basename "$doc" .tex`
  latex --src-specials "$doc" && \
  dvips "$doc_base.dvi" && \
  ps2pdf "$doc_base.ps"
]]></exe:code>
  </command>
  <command id="Bibtex">
    <name>LaTeX</name>
    <file-filter>*.tex</file-filter>
    <accel>&lt;shift&gt;&lt;ctrl&gt;B</accel>
    <type>exe</type>
    <exe:output>pane</exe:output>
    <exe:code><![CDATA[
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
bibtex "$doc_base"
]]></exe:code>
  </command>
  <command id="PdfLaTeX">
    <name>PdfLaTeX</name>
    <file-filter>*.tex</file-filter>
    <options>need-save</options>
    <type>exe</type>
    <exe:output>pane</exe:output>
    <exe:code><![CDATA[
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
pdflatex "$doc"
]]></exe:code>
  </command>
  <command id="View_DVI">
    <name>View DVI</name>
    <file-filter>*.tex</file-filter>
    <accel>&lt;shift&gt;&lt;ctrl&gt;V</accel>
    <type>exe</type>
    <exe:output>async</exe:output>
    <exe:code><![CDATA[
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
if (which kdvi > /dev/null); then
  kdvi --unique "$doc_base.dvi" && \
  dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide && \
  dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
else
  xdg-open "$doc_base.dvi"
fi
]]></exe:code>
  </command>
  <command id="View_PDF">
    <name>View PDF</name>
    <file-filter>*.tex</file-filter>
    <type>exe</type>
    <exe:output>async</exe:output>
    <exe:code><![CDATA[
[ -f medit-env.sh ] && . medit-env.sh
doc="${LATEX_MASTER:-$DOC}"
doc_base=`basename "$doc" .tex`
if (which kpdf > /dev/null); then
  kpdf=`dcopfind -a 'kpdf-*'`
  if [ -z "$kpdf" ]; then
    kpdf "$doc_base.pdf"
    kpdf=`dcopfind -a 'kpdf-*'`
  else
    dcop "$kpdf" kpdf openDocument "$doc_base.pdf"
  fi
  dcop "$kpdf" kpdf-mainwindow#1 hide
  dcop "$kpdf" kpdf-mainwindow#1 show
else
  xdg-open "$doc_base.pdf"
fi
]]></exe:code>
  </command>
  <command id="Math">
    <name>Math</name>
    <file-filter>*.tex</file-filter>
    <accel>&lt;alt&gt;M</accel>
    <type>lua</type>
    <lua:code><![CDATA[
if doc.has_selection() then
  doc.replace_selected_text('$' .. doc.get_selected_text() .. '$')
else
  pos = doc.get_cursor_pos().get_offset()
  doc.insert_text('$ $')
  doc.select_range(pos + 1, pos + 2)
end
]]></lua:code>
  </command>
  <command id="InsertDateAndTime">
    <name>Insert Date and Time</name>
    <options>need-doc</options>
    <type>python</type>
    <python:code><![CDATA[
# insert_date_and_time.py is installed in
# $prefix/share/medit-1/python
from insert_date_and_time import get_format
import time

fmt = get_format(window)
if fmt is not None:
    doc.replace_selected_text(time.strftime(fmt))
]]></python:code>
  </command>
</moo-user-tools>