Mercurial > vim-lawrencium
annotate doc/lawrencium.txt @ 48:85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
- merged changes from @soliman
- removed the bang edit command setting. The preview windows is not really
well suited for some things, so it's been replaced with a normal split
window for `Hg!` and `Hgstatus`.
- officialized `Hglog`.
- fixed some problems on Windows.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 08 Nov 2012 13:58:29 -0800 |
parents | 6a4f5200d8da |
children | dffb41c2067c |
rev | line source |
---|---|
0 | 1 *lawrencium.txt* Mercurial wrapper for VIM |
2 | |
13 | 3 |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
4 LLLLLLLLLLL ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
5 L:::::::::L ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
6 L:::::::::L ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
7 LL:::::::LL ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
8 L:::::L rrrrr rrrrrrrrr ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
9 L:::::L r::::rrr:::::::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
10 L:::::L r:::::::::::::::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
11 L:::::L rr::::::rrrrr::::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
12 L:::::L r:::::r r:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
13 L:::::L r:::::r rrrrrrr ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
14 L:::::L r:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
15 L:::::L LLLLLLr:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
16 LL:::::::LLLLLLLLL:::::Lr:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
17 L::::::::::::::::::::::Lr:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
18 L::::::::::::::::::::::Lr:::::r ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
19 LLLLLLLLLLLLLLLLLLLLLLLLrrrrrrr ~ |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
20 |
13 | 21 LAWRENCIUM REFERENCE MANUAL |
22 by Ludovic Chabant | |
23 | |
24 | |
25 *lawrencium* | |
0 | 26 |
13 | 27 1. Introduction |lawrencium-intro| |
28 2. Commands |lawrencium-commands| | |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
29 3. Status Window |lawrencium-status-window| |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
30 4. Log Window |lawrencium-log-window| |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
31 5. Global Settings |lawrencium-global-settings| |
0 | 32 |
13 | 33 |
34 ============================================================================= | |
35 1. Introduction *lawrencium-intro* | |
0 | 36 |
37 When a file from a Mercurial repository is open in a buffer, that buffer gets | |
38 new commands defined. | |
39 | |
13 | 40 This plugin is only available if 'compatible' is not set. |
41 | |
42 Grab the latest version or report a bug on BitBucket: | |
43 | |
44 http://bitbucket.org/ludovicchabant/vim-lawrencium | |
45 | |
46 | |
47 | |
48 ============================================================================= | |
49 2. Commands *lawrencium-commands* | |
0 | 50 |
51 All commands defined by |lawrencium| are local to each buffer. | |
52 | |
13 | 53 *:Hg* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
54 :Hg {args} Run an arbitrary Mercurial command. Similar to :!hg |
0 | 55 [args] but the '--repository' is automatically |
56 specified with the root of the repository the current | |
20
01932a36df03
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
13
diff
changeset
|
57 file belongs to, and it will auto-complete any |
01932a36df03
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
13
diff
changeset
|
58 standard command or option. |
43
fc20a265551d
Added auto cd'ing into the repo root for `:Hg`.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
59 |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
60 Also, unless the |lawrencium_auto_cd| global is set to |
43
fc20a265551d
Added auto cd'ing into the repo root for `:Hg`.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
61 `0`, it will temporarily set the current directory to be |
fc20a265551d
Added auto cd'ing into the repo root for `:Hg`.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
62 the root of the repository so that auto-completed |
fc20a265551d
Added auto cd'ing into the repo root for `:Hg`.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
63 filenames work out of the box. |
0 | 64 |
13 | 65 *:Hg!* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
66 :Hg! {args} Like |:Hg|, but the output of the command is placed in |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
67 a temp file and edited in a split window. |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
68 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
69 Once the output is open in a buffer, Lawrencium will |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
70 try to set the file type according to the Mercurial |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
71 command that was run. See |lawrencium_hg_commands_file_types|. |
0 | 72 |
13 | 73 *:Hgcd* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
74 :Hgcd[!] {path} |:cd| relative to the root of the repository. |
0 | 75 |
13 | 76 *:Hglcd* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
77 :Hglcd[!] {path} |:lcd| relative to the root of the repository. |
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
78 |
13 | 79 *:Hgedit* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
80 :Hgedit {file} |:edit| {file} relative to the root of the repository. |
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
81 |
13 | 82 *:Hgedit!* |
6
1da613c13d81
Better hg-status window.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
83 :Hgedit! {file} |:edit!| {file} relative to the root of the repository. |
0 | 84 |
13 | 85 *:Hgstatus* |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
86 :Hgstatus Shows the output of 'hg status' in a split window. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
87 Some extra-commands, along with some default mappings, |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
88 are available in this window. See |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
89 |lawrencium-status-window|. |
13 | 90 |
91 *:Hgdiff* | |
92 :Hgdiff Diffs the current file against its parent revision. | |
93 | |
94 *:Hgdiff_f* | |
95 :Hgdiff {revspec} Diffs the current file against the specified revision. | |
96 | |
97 *:Hgvdiff* | |
98 :Hgvdiff Same as |:Hgdiff| but uses a vertical split. | |
99 | |
100 *:Hgvdiff_f* | |
101 :Hgvdiff {revspec} Same as |:Hgdiff_f| but uses a vertical split. | |
102 | |
103 *:Hgcommit* | |
104 :Hgcommit Opens a new window to edit a commit message into a | |
105 temporary file and, upon quitting the buffer, if that | |
106 file has been written to, commit the current changes | |
107 to the repository. | |
108 | |
109 *:Hgvcommit* | |
110 :Hgvcommit Same as |:Hgcommit| but uses a vertical split to edit | |
111 the commit message. | |
0 | 112 |
38
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
113 :Hgrevert {files} *:Hgrevert* |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
114 Reverts the given files (in repo-relative paths). If no |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
115 file are given, reverts the current file. |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
116 |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
117 :Hgrevert! {files} *:Hgrevert!* |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
118 Same as |:Hgrevert| but with the --no-backup option |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
119 given to prevent a .orig backup file from being |
a384b4aff211
Updated documentation with `Hgrevert`.
Ludovic Chabant <ludovic@chabant.com>
parents:
34
diff
changeset
|
120 created. |
0 | 121 |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
122 *:Hglog* |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
123 :Hglog |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
124 Opens the history (log) for the currently edited file |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
125 in a split window. Some extra-commands, along with |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
126 some default mappings, are available in this window. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
127 See |lawrencium-log-window|. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
128 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
129 *:Hglog_f* |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
130 :Hglog {file} Same as |:Hglog|, but opens the log for the specified |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
131 file instead of the currently edited file. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
132 |
0 | 133 |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
134 ============================================================================= |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
135 3. Status Window *lawrencium-status-window* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
136 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
137 The `hg status` window opened by Lawrencium has a few special commands |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
138 defined in it. Also, unless the global |lawrencium_define_mappings| is set to |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
139 `0`, some commands are mapped to keyboard shortcuts, as detailed in the |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
140 following descriptions. |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
141 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
142 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
143 *:Hgstatusedit* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
144 :Hgstatusedit Open the file mentioned on the current line. |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
145 Mapped to <CR>. |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
146 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
147 *:Hgstatusaddremove* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
148 :Hgstatusaddremove Run `hg addremove` on the file mentioned on the |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
149 current line, or on the lines currently selected in |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
150 visual selection mode (see |visual-start|). |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
151 Mapped to <CTRL-A>. |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
152 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
153 *:Hgstatusdiff* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
154 :Hgstatusdiff Open a diff window on the file mentioned on the |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
155 current line, between the working directory version |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
156 and the parent revision version. Similar to running |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
157 |:Hgdiff| on that file. |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
158 Mapped to <CTRL-D>. |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
159 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
160 *:Hgstatusvdiff* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
161 :Hgstatusvdiff Similar to |:Hgstatusdiff|, but use a vertical split. |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
162 Similar to running |:Hgvdiff| on that file. |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
163 Mapped to <CTRL-V>. |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
164 |
34
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
165 *:Hgstatuscommit* |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
166 :Hgstatuscommit Runs |:Hgcommit| on the files currently mentioned in |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
167 the buffer, or in the current selection. The first |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
168 option means you can delete lines from the buffer |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
169 until the remaining filenames are those you want to |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
170 commit. |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
171 Mapped to <CTRL-S>. |
34
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
172 |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
173 *:Hgstatusvcommit* |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
174 :Hgstatusvcommit Similar to |:Hgstatuscommit|, but use a vertical |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
175 split, as with |:Hgvcommit|. |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
176 Not mapped byd default. |
cfc15ff67aaf
Updated documentation.
Ludovic Chabant <ludovic@chabant.com>
parents:
31
diff
changeset
|
177 |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
178 *:Hgstatusrefresh* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
179 :Hgstatusrefresh Refreshes the status window by running `hg status` |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
180 again. |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
181 Mapped to <CTRL-R>. |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
182 |
40
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
183 *:Hgstatusqnew* |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
184 :Hgstatusqnew {patch} {message}. |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
185 If you have the 'mq' extension enabled, creates a new |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
186 patch with the file currently mentioned in the buffer, |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
187 or in the current selection. You must give a patch name, |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
188 and may optionally write a commit message for the patch |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
189 (without surrounding quotes). |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
190 |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
191 *:Hgstatusqrefresh* |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
192 :Hgstatusqrefresh If you have the 'mq' extension enabled, refreshes the |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
193 current patch with the files currently mentioned in the |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
194 buffer, or in the current selection. |
a63ec818ab21
Added `qnew` and `qrefresh` commands to the `Hgstatus` window.
Ludovic Chabant <ludovic@chabant.com>
parents:
38
diff
changeset
|
195 |
31
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
196 *lawrencium-status-mappings* |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
197 A few other mappings are available in the status window: |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
198 |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
199 <C-N> Jump to the next filename. |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
200 <C-P> Jump to the previous filename. |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
201 q Quit the status window. |
3a0f7bb6ea64
Hgstatus window improvements and bug fixes:
Ludovic Chabant <ludovic@chabant.com>
parents:
20
diff
changeset
|
202 |
0 | 203 |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
204 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
205 ============================================================================= |
48
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
206 4. Log Window *lawrencium-log-window* |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
207 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
208 The `hg log` window opened by Lawrencium has a few special commands |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
209 defined in it. Also, unless the global |lawrencium_define_mappings| is set to |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
210 `0`, some commands are mapped to keyboard shortcuts, as detailed in the |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
211 following descriptions. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
212 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
213 *:Hglogrevedit* |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
214 :Hglogrevedit Looks at the revision specified on the current line, |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
215 and opens that revision for edit in the previous |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
216 window (although as a read-only buffer). |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
217 Mapped to |<CR>| |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
218 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
219 *lawrencium-log-mappings* |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
220 A few other mappings are available in the log window: |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
221 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
222 q Quit the log window. |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
223 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
224 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
225 |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
226 ============================================================================= |
85e39bdd7089
Lots of changes that should have gone in other commits (ugh):
Ludovic Chabant <ludovic@chabant.com>
parents:
46
diff
changeset
|
227 5. Global Settings *lawrencium-global-settings* |
46
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
228 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
229 The following global settings can be defined in your |vimrc| to change the |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
230 default behaviour of Lawrencium. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
231 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
232 *lawrencium_hg_executable* |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
233 g:lawrencium_hg_executable |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
234 Defines the executable to run when running Mercurial |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
235 commands. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
236 Defaults to simply `hg`. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
237 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
238 *lawrencium_auto_cd* |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
239 g:lawrencium_auto_cd Specifies whether the current working directory should |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
240 be set to the repository's root while running |:Hg| |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
241 commands so that auto-completion works magically with |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
242 repository relative paths. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
243 Defaults to `1`. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
244 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
245 *lawrencium_define_mappings* |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
246 g:lawrencium_define_mappings |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
247 Specifies whether Lawrencium should define default |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
248 keyboard shortcuts. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
249 Defaults to `1`. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
250 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
251 *lawrencium_hg_commands_file_types* |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
252 g:lawrencium_hg_commands_file_types |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
253 Defines the |file-types| that Lawrencium should use |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
254 when editing the output of |:Hg!| based on the |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
255 Mercurial command that was used. |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
256 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
257 By default, unless overridden, the following commands |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
258 map to the following file types: |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
259 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
260 diff diff |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
261 graphlog graphlog |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
262 |
6a4f5200d8da
`:Hg!` command changes:
Ludovic Chabant <ludovic@chabant.com>
parents:
43
diff
changeset
|
263 |
0 | 264 vim:tw=78:et:ft=help:norl: |