Commit graph

608 commits

Author SHA1 Message Date
Marco Hinz 8850a05c80
Support "file" type for funcref lists
This makes it possible to use markers (s, v, t, etc.) to with lists generated by
funcrefs.

References #328
2018-06-22 12:34:01 +02:00
Marco Hinz 0b300f411f
Nvim: make :Startify work from terminal buffer
Fixes #327
2018-06-14 00:31:51 +02:00
Marco Hinz fbd690fc85
Ignore buffers with unsaved changes when deleting buffers 2018-05-05 14:52:22 +02:00
Marco Hinz 423eb03de4
Simplify buffer deletion for g:startify_session_delete_buffers 2018-05-05 14:24:07 +02:00
Marco Hinz 2cdbe64a7d
Refactor warnings 2018-05-05 14:14:21 +02:00
Marco Hinz 3969c6bcf3
Fortune: new quotes 2018-05-05 14:13:28 +02:00
Marco Hinz 4f296fe424
Syntax: fix StartifyFooter regexp
Prior to this StartifyFooter would only reach up to the first * character. Now
we include any character including newlines. This effectively highlights
everything to the end of the buffer.

References #316
2018-04-27 10:55:55 +02:00
Marco Hinz c1a81780d5
Refactor headers and footers
g:startify_custom_header and g:startify_custom_footer behave the same now.

Prior to this change, g:startify_custom_footer only accepted lists and no
strings containing expressions that evaluate to lists.

References #316
2018-04-26 21:26:17 +02:00
Marco Hinz ca03433196
Make g:startify_custom_header handle empty string
eval() throws errors on empty strings.
2018-04-26 13:15:10 +02:00
Huy Vo bd297e5798 Fortune: add Stephen Hawking's quote on recursion (#315) 2018-04-26 11:39:11 +02:00
Marco Hinz 0564148cfc
Fortune: new quotes!
Closes #312
2018-04-25 09:36:03 +02:00
Marco Hinz 532f3db6be
Check for empty buffer on VimEnter
We check if files were given on the command-line already, but argc() is 0 when
Vim is used as a $MANPAGER.

So, only run Startify if the first buffer is actually empty.

Fixes #310
2018-04-10 12:13:06 +02:00
Marco Hinz 2cd1664470
Fix tests 2018-04-09 17:21:22 +02:00
Marco Hinz 66c90a179e
Rename functions 2018-04-09 17:08:26 +02:00
Marco Hinz 6f621bd99a
Skip creating new buffer if current buffer is empty
This prevents buffer-local commands getting lost that were set before startify
was run. E.g. :Git which is set by fugitive.
2018-04-09 17:02:43 +02:00
Marco Hinz 5a1d811d5f
Allow to run :Startify from a startify buffer 2018-04-09 16:46:53 +02:00
Marco Hinz 669d87dcec
Warn for unsaved changes if 'nohidden' and 'modified' 2018-04-09 16:42:13 +02:00
Marco Hinz 0a81f95abf
Always create new buffer
Nowadays :enew won't create a new buffer if the current buffer is empty. So this
won't create an unused, empty, unnamed buffer.
2018-04-09 16:13:47 +02:00
Marco Hinz 113655717e
FAQ: Run Startify for each new tab!
References #139
2018-04-03 13:04:17 +02:00
Marco Hinz 87861176ca
Narrow scope of lists variable 2018-03-27 16:15:28 +02:00
valleydali 54483c88e5 Avoid taking over a modified buffer 2018-03-21 09:48:36 +01:00
Marco Hinz 8d77329d27
Doc: fix arguments for startify#fortune#cowsay() example 2018-03-20 17:30:38 +01:00
Marco Hinz 620b040b5e
Doc: add g:startify_lists
Closes #288
2018-03-20 17:26:04 +01:00
Marco Hinz 50d4c51607
Fix type mismatch for heterogenous lists in older Vims
Fixes #293
2018-03-18 00:38:03 +01:00
Marco Hinz 362001d03e
Refactoring 2018-03-16 17:14:40 +01:00
Marco Hinz bdb389ef61
Fix firstline offset under new s:lists format 2018-03-16 16:47:40 +01:00
Marco Hinz 15ee162f99
Compat: convert g:startify_list_order to g:startify_lists format
g:startify_list_order is deprecated in favor of g:startify_lists.

They use different formats, but for compatability, the old g:startify_list_order
format is converted to the newer g:startify_lists format.

References #288
2018-03-16 15:28:51 +01:00
Marco Hinz f16cfcebe8
Add experimental support for g:startify_lists
References #288
2018-03-16 15:03:36 +01:00
Marco Hinz 5df5b7478c
Avoid magic number 2018-03-16 12:16:07 +01:00
Marco Hinz 5425dd3e84
Run :Startify on DirChanged
Otherwise relative entries could become out-of-date.

Fixes #305
2018-03-16 01:06:40 +01:00
Marco Hinz 226cafe0a0
Doc: rewording of startify-autocmd 2018-02-28 03:09:02 +01:00
Marco Hinz fbd9b681ff
Doc: new FAQ: How to disable single mappings?
Closes #303
2018-02-28 03:07:39 +01:00
Marco Hinz e1716c4ef1
Doc: make example for StartifyEntryFormat() use vim-devicons 2018-02-17 15:12:39 +01:00
Marco Hinz d5a549a7b9
Doc: add StartifyEntryFormat() 2018-02-17 15:06:46 +01:00
Marco Hinz 983919aee2
Make entry format customizable 2018-02-07 16:47:42 +01:00
Marco Hinz 4f1cd14e94
Open all folds
Fixes #300.
2018-01-24 16:29:33 +01:00
Marco Hinz fbcba230e9
Refactoring: g:startify_custom_header 2018-01-14 17:30:26 +01:00
Marco Hinz d66c31f02e
Doc: mention startify#fortune#predefined_quotes() 2018-01-14 15:38:05 +01:00
Marco Hinz 21294851f6
Doc: fix g:startify_custom_header default value 2018-01-14 15:37:41 +01:00
Marco Hinz e0183c8913
Fortune: drag variables to the bottom 2018-01-14 14:53:13 +01:00
MisanthropicBit 26ec1573a5 Add new quotes while keeping predefined ones 2018-01-14 14:37:36 +01:00
Marco Hinz 5e476d8e00
Doc: small improvement 2017-12-20 12:21:54 +01:00
Marco Hinz c905a0c959
Rework the default skiplist 2017-12-06 20:11:16 +01:00
Marco Hinz b89579e456
FAQ: Startify is cluttered with help files!
References #296.
2017-12-05 15:12:07 +01:00
Marco Hinz cbb1b487d0
Add "plugged/.*/doc" to default skiplist
We have "bundle" already, so add "plugged" as well. These two are the most
commonly used directories for plugins.
2017-12-05 14:52:15 +01:00
Marco Hinz 17ef51a2d1
Set 'matchpairs' to empty
Use this to avoid weird highlighting of the `[` and `]` characters, if the
matchparen plugin is enabled.
2017-11-23 22:53:12 +01:00
Marco Hinz f7d4957d02
FAQ: NERDTree does not work in gvim!
References #24
2017-11-22 11:50:13 +01:00
Marco Hinz e6547e9887
Fix cursor setting code
This makes the local j/k mappings obsolete.

References #294, #156.
2017-11-21 22:18:41 +01:00
Marco Hinz 86d4503461
Doc: mention :SSave! and :SDelete!
References #295
2017-11-21 20:28:15 +01:00
Marco Hinz 95d182979e
Use :SS! to force overwriting a potentially existing session
This can be used to avoid the following prompt when using :SSave

  "Session already exists. Overwrite?  [y/n]"

References #295
2017-11-21 20:13:48 +01:00