Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397453
D9943.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D9943.id.diff
View Options
diff --git a/resources/textmate/local_definition.tmCommand b/resources/textmate/local_definition.tmCommand
deleted file mode 100644
--- a/resources/textmate/local_definition.tmCommand
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>#!/usr/bin/env php
-<?php
-
-if (getenv('TM_SELECTED_TEXT')) {
- $word = getenv('TM_SELECTED_TEXT');
-} else {
- $word = getenv('TM_CURRENT_WORD');
-}
-
-$file = getenv('TM_FILEPATH');
-
-if (!is_dir($file)) {
- $file = dirname($file);
-}
-$file = escapeshellarg($file);
-
-$ref = null;
-$err = 0;
-$root = exec("(cd {$file} && /usr/bin/env git rev-parse --show-cdup)", $ref, $err);
-if ($err) {
- echo "File is not in a git working copy.\n";
- exit($err);
-}
-
-$word = preg_quote($word, $delim = NULL);
-$patterns = array(
- "((abstract|final) +)*class +{$word}( |$)",
- "interface +{$word}( |$)",
- "function +&?{$word}( |\(|$)",
- " *const +{$word}( |=|$)",
- "@provides {$word}( |$)",
-);
-foreach ($patterns as $k => $pattern) {
- $patterns[$k] = '-e '.escapeshellarg($pattern);
-}
-$patterns = implode(' --or ', $patterns);
-
-$err = 0;
-$cmd = "(cd {$root} && /usr/bin/env git grep --no-index -n -z -I -E {$patterns} | head -n1)";
-$output = exec($cmd, $ref, $err);
-$output = trim($output);
-if (!$output) {
- $untracked = exec("(cd {$root} && /usr/bin/env git ls-files --others --exclude-standard)");
- if ($untracked) {
- echo "No results found, but you have untracked files which 'git grep' does not search.\n";
- } else {
- echo "No results found.\n";
- }
- exit(0);
-}
-
-list($local, $line) = explode("\0", $output);
-
-$target = $root.'/'.$local;
-exec('/usr/bin/env mate '.escapeshellarg($target).' -l '.escapeshellarg($line));
-
-</string>
- <key>fallbackInput</key>
- <string>word</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>@
-</string>
- <key>name</key>
- <string>Open Definition (PHP, Local Git)</string>
- <key>output</key>
- <string>showAsTooltip</string>
- <key>scope</key>
- <string>source.php</string>
- <key>uuid</key>
- <string>0D267B50-2E9C-4B48-9D0C-0FB8E9807552</string>
-</dict>
-</plist>
diff --git a/resources/textmate/php_property.tmSnippet b/resources/textmate/php_property.tmSnippet
deleted file mode 100644
--- a/resources/textmate/php_property.tmSnippet
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>content</key>
- <string>${2:public} function set${1/./\u$0/}(\$${1/[A-Z]+/_\L$0\E/g}) {
- \$this->${1:property} = \$${1/[A-Z]+/_\L$0\E/g};
- return \$this;
-}
-
-${2:public} function get${1/./\u$0/}() {
- return \$this->$1;
-}
-
-$0</string>
- <key>name</key>
- <string>PHP Property</string>
- <key>scope</key>
- <string>source.php</string>
- <key>tabTrigger</key>
- <string>prop</string>
- <key>uuid</key>
- <string>7C1971CD-6BC0-433B-8604-9F008B6CC29D</string>
-</dict>
-</plist>
diff --git a/resources/textmate/trailing_whitespace.tmMacro b/resources/textmate/trailing_whitespace.tmMacro
deleted file mode 100644
--- a/resources/textmate/trailing_whitespace.tmMacro
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>commands</key>
- <array>
- <dict>
- <key>argument</key>
- <dict>
- <key>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>perl -pe 's/[\t ]+$//g'</string>
- <key>input</key>
- <string>document</string>
- <key>output</key>
- <string>replaceDocument</string>
- </dict>
- <key>command</key>
- <string>executeCommandWithOptions:</string>
- </dict>
- <dict>
- <key>argument</key>
- <dict>
- <key>beforeRunningCommand</key>
- <string>saveActiveFile</string>
- <key>input</key>
- <string>none</string>
- <key>output</key>
- <string>discard</string>
- </dict>
- <key>command</key>
- <string>executeCommandWithOptions:</string>
- </dict>
- </array>
- <key>keyEquivalent</key>
- <string>@s</string>
- <key>name</key>
- <string>Remove Trailing Space and Save</string>
- <key>uuid</key>
- <string>F61A9B5A-A31E-45C0-8A08-968A50664CC3</string>
-</dict>
-</plist>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 8:19 PM (1 d, 11 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708821
Default Alt Text
D9943.id.diff (4 KB)
Attached To
Mode
D9943: Remove textmate resources
Attached
Detach File
Event Timeline
Log In to Comment