@@ -28,6 +28,8 @@ Setup ........................................... |noteworthy-setup|
28
28
Setting a custom header ....................... |g:noteworthy_header_command|
29
29
Allow any file extension in tab completion .... |g:noteworthy_ambiguous|
30
30
Set the default file name delimiter ........... |g:noteworthy_delimiter|
31
+ Change the default window height for splits ... |g:noteworthy_split_size|
32
+ Change the default window width for vsplits ... |g:noteworthy_vsplit_size|
31
33
Commands ........................................ |noteworthy-commands|
32
34
Create or open a note ......................... |Note|
33
35
Create or open a note in a split .............. |Snote|
@@ -143,50 +145,74 @@ something different, set the following variable in your vimrc.
143
145
<
144
146
This can also be changed temporarily via the |NoteDelimiter| command.
145
147
148
+ *g:noteworthy_split_size*
149
+ Change the default window height for splits~
150
+
151
+ You can change the default window height for splits. The default is to split
152
+ the current window in half. Note that, if |Snote| is called with a count, this
153
+ variable will be overridden.
154
+ >
155
+ let g:noteworthy_split_size = 30
156
+ <
157
+
158
+ *g:noteworthy_vsplit_size*
159
+ Change the default window width for vsplits~
160
+
161
+ You can change the default window width for vertical splits. The default is to
162
+ split the current window in half. Note that, if |Vnote| is called with a count,
163
+ this variable will be overridden.
164
+ >
165
+ let g:noteworthy_vsplit_size = 80
166
+ <
167
+
146
168
================================================================================
147
169
148
170
COMMANDS *noteworthy-commands*
149
171
150
172
*Note* *:Note*
151
- :Note {topic} [{, ...}] Create new {topic} markdown file in the
152
- |b:noteworthy_current_library|, or open it if it
153
- already exists. The file extension can be omitted.
154
- Can be multiple words separated by spaces, which
155
- will be replaced by underscores in the file name.
173
+ :Note {topic} [{, ...}] Create new {topic} markdown file in the
174
+ |b:noteworthy_current_library|, or open it if it
175
+ already exists. The file extension can be omitted.
176
+ Can be multiple words separated by spaces, which
177
+ will be replaced by underscores in the file name.
156
178
157
179
*Snote* *:Snote*
158
- :Snote {topic} [{, ...}] Same as |Note|, but opens in a split.
180
+ :[N]Snote {topic} [{, ...}] Same as |Note|, but opens in a split. If N is
181
+ provided, it will be used as the height of the
182
+ window.
159
183
160
184
*Vnote* *:Vnote*
161
- :Vnote {topic} [{, ...}] Same as |Note|, but opens in a vertical split.
185
+ :[N]Vnote {topic} [{, ...}] Same as |Note|, but opens in a vertical split. If N
186
+ is provided, it will be used as the width of the
187
+ window.
162
188
163
189
*Tnote* *:Tnote*
164
- :Tnote {topic} [{, ...}] Same as |Note|, but opens in new tab.
190
+ :Tnote {topic} [{, ...}] Same as |Note|, but opens in new tab.
165
191
166
192
*NoteLibrary* *:NoteLibrary*
167
- :NoteLibrary [{library}] Switch to {library}, which should be a key of
168
- |g:noteworthy_libraries|. If {library} is not
169
- provided, the current library being used will be
170
- displayed.
193
+ :NoteLibrary [{library}] Switch to {library}, which should be a key of
194
+ |g:noteworthy_libraries|. If {library} is not
195
+ provided, the current library being used will be
196
+ displayed.
171
197
172
198
*NoteExtension* *:NoteExtension*
173
- :NoteExtension [{ext}] Change the file extension being used when creating a
174
- new note or using tab-completion to {ext}. If {ext}
175
- is not provided, the current extension being used
176
- will be displayed. If ambiguous file extensions are
177
- enabled, this will not automatically be added to new
178
- notes.
199
+ :NoteExtension [{ext}] Change the file extension being used when creating a
200
+ new note or using tab-completion to {ext}. If {ext}
201
+ is not provided, the current extension being used
202
+ will be displayed. If ambiguous file extensions are
203
+ enabled, this will not automatically be added to new
204
+ notes.
179
205
180
206
*NoteAmbiguousEnable* *:NoteAmbiguousEnable*
181
- :NoteAmbiguousEnable Allow any file extension in tab completion.
207
+ :NoteAmbiguousEnable Allow any file extension in tab completion.
182
208
183
209
*NoteAmbiguousDisable* *:NoteAmbiguousDisable*
184
- :NoteAmbiguousDisable Disallow any file extension in tab completion.
210
+ :NoteAmbiguousDisable Disallow any file extension in tab completion.
185
211
186
212
*NoteDelimiter* *:NoteDelimiter*
187
- :NoteDelimiter [{delim}] Change the delimiter used to join the file name. If
188
- {delim} is not passed, the current delimiter being
189
- used will be displayed.
213
+ :NoteDelimiter [{delim}] Change the delimiter used to join the file name. If
214
+ {delim} is not passed, the current delimiter being
215
+ used will be displayed.
190
216
191
217
================================================================================
192
218
0 commit comments