Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Perforce commands now mapped to Command-4 - (Old ones still live at Control-Shift-F. I haven't touched those.) - All commands at Command-4 now work on multiple selected files - Using shell scripts instead of awkwardly-invoked Python when possible - Added Sync with Depot - If you try to Save inside a Perforce depot, you will be prompted to overwrite the locked file. Do it. This Perforce bundle will open that file for editing on your behalf. TODO: - Add support for shelve/unshelve
- Loading branch information
1 parent
b83efd5
commit 8e6ff94
Showing
10 changed files
with
126 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?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>#!/bin/bash | ||
p4_info_key="Client root: " | ||
# Get the key: value pair containing the workspace path from | ||
# p4 | ||
workspace_path=`p4 info | grep "$p4_info_key"` | ||
# Remove the key | ||
workspace_path="${workspace_path#$p4_info_key}/" | ||
if [[ $TM_SELECTED_FILE =~ $workspace_path ]] | ||
then | ||
relative_path=${TM_SELECTED_FILE#$workspace_path} | ||
if [[ -d $TM_SELECTED_FILE ]] | ||
then | ||
# p4 requires ... to sync a directory | ||
relative_path="${relative_path}/..." | ||
fi | ||
# eval not needed because $TM_SELECTED_FILE is unquoted | ||
cd $workspace_path | ||
p4 sync $relative_path | ||
fi</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>keyEquivalent</key> | ||
<string>@4</string> | ||
<key>name</key> | ||
<string>Sync with Depot</string> | ||
<key>output</key> | ||
<string>openAsNewDocument</string> | ||
<key>uuid</key> | ||
<string>48C3E848-57FC-4633-814E-724CE05AC124</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters