Bookmarking files
P4V enables you to create bookmarks so you can navigate quickly to often-used files and folders. You can organize the bookmarks using folders and separators. When you choose the bookmark from the list displayed under the Tools>Bookmarks menu item, P4V navigates to the corresponding file or folder and selects it, expanding any containing folders.
Bookmark a file or folder
- In the depot or workspace pane, context-click the desired target file or folder. (P4V stores the location using local or depot syntax, depending on whether you select the target in the workspace or depot pane.)
-
Select Bookmark…
The Bookmarks dialog is displayed.
-
Specify the bookmark as follows:
- Name: descriptive text to be displayed in the list of bookmarks
- Placement: the location of the bookmark in the displayed hierarchy of bookmarks
- Location: the path that specifies the location of the file or folder in the depot or workspace.
- Click OK to dismiss the dialog and save your entries.
Manage bookmarks
- Go to Tools > Bookmarks > Manage Bookmarks…
- On the Manage Bookmarks dialog, you can create and edit bookmarks, create folders, and create separators.
Using P4V shortcuts
Drag and drop
P4V supports drag-and-drop shortcuts for common tasks. To enable or disable drag-and-drop file integration or diffing, go to P4V > Preferences (Mac) or Edit > Preferences (Windows) and set the drag-and-drop options on the Behavior page.
- To add a file to Perforce, drag it from a file browser (such as Windows Explorer) to a pending changelist.
- To get a file revision at a submitted changelist, workspace, label or file revision, drag the submitted changelist, workspace, label or file revision to the field next to the Get Revision dialog To field.
- To integrate (merge) files, drag the source folder to the target folder. The Merge/Integrate dialog opens, where you can refine your integration criteria.
- To label a file, drag a file or a folder to a label. Alternately, drag a label onto a file or folder.
- To diff two file revisions, drop a file or a file revision onto another file revision. To display file revisions, context-click the file and choose File History.
- To diff revisions of different files, display the File History for both files, then drag a revision from one window to the other and drop it on the other revision.
- To diff two folder revisions, drop a folder revision onto another folder revision. To display folder revisions, context-click the folder and choose Folder History.
- To add files to a pending changelist, drop files onto the pending changelist itself, or onto the Files field of the pending changelist’s Submit form.
- To move a file from one changelist to another, drag files from the source Submit form to the target Submit form. Alternately, choose Display>Pending Changelists, and drag the files from the source changelist to the target changelist.
- To filter the pending changelists, submitted changelists, labels, or jobs by file path, drag files or folders from the Tree pane to the Filters pane in the specification tab.
- To add a job to a changelist, drag the job from the Jobs tab of the right pane to the Jobs field of the pending changelist. You cannot attach a job to a submitted changelist.
- To locate a file in the depot, drag the file from a pending or submitted changelist to the address bar (which is located below the P4V toolbar). Alternatively, copy the depot or workspace path (for example, select a file in a submitted changelist and choose Edit>Copy), then paste the path into the depot or workspace pane.
- To switch panes, drag any selected object to the toolbar button for the desired pane. For example, to add a job to a submitted changelist,
drag the job from the Jobs tab to the submitted changelists button
P4V displays the Submitted Changelist tab. Drop the job on the target changelist.
- For streams drag-and-drop shortcuts, see Using the Stream Graph.
Shortcut keys
P4V supports the default shortcut keys listed below. You can also set up custom shortcuts. Go to P4V > Preferences (Mac) or Edit > Preferences (Windows) and set up your shortcuts on the Shortcuts page in the Preferences dialog.
Action | Mac | Windows |
---|---|---|
Display Workspace tab in Tree pane |
+0 |
+0 |
Display pending changelists |
+1 |
+1 |
Display submitted changelists |
+2 |
+2 |
Display branches |
+3 |
+3 |
Display labels |
+4 |
+4 |
Display workspaces |
+5 |
+5 |
Display jobs |
+6 |
+5 |
Display Depot tab in Tree pane |
+9 |
+9 |
Select all objects |
+A |
+A |
Copy text, path of selected file or folder, or contents of selected specification |
+C |
+C |
Diff selected file |
+D |
+D |
Check out file |
+E |
+E |
Find |
+F |
+F |
Close the current window |
+F4 |
+F4 |
Go to a specification |
+G |
+G |
Display Perforce versioning service information in log window |
+I |
+I |
Lock files |
+L |
+L |
Create new specification |
+N |
+N |
Open a new connection |
+O |
+O |
Print selected item |
+P |
+P |
Revert selected files |
+R |
+R |
Submit selected changelist |
+S |
+S |
Display Administration Tool |
++A |
++A |
Copy depot path of selected file or folder to clipboard |
++C |
++C |
Get latest revision |
++G |
++G |
Show in Stream Graph |
++M |
++M |
Display Revision Graph of selected file |
++R |
++R |
Display Time-lapse Display |
++T |
++T |
Display revision history of selected file/folder |
+T |
+T |
Unlock files |
+U |
+U |
Paste text |
+V |
+V |
Close the current window |
+W |
+W |
Cut text |
+X |
+X |
Redo last edit |
+Y |
+Y |
Undo last edit |
+Z |
+Z |