Commit graph

329 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
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
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
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
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
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
c905a0c959
Rework the default skiplist 2017-12-06 20:11:16 +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
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
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
Marco Hinz
22ccf58613
Add covenience function for warnings 2017-11-02 20:29:48 +01:00
Marco Hinz
0c23b67dbf
Warn if :StartifyDebug is run outside Startify buffer 2017-11-02 20:24:23 +01:00
Marco Hinz
ae8cfbb9db
g:startify_use_env: ignore $HOME
References #284.
2017-05-30 00:00:35 +02:00
Marco Hinz
367aec0966
g:startify_use_env: compare against absolute path
References #284.
2017-05-29 23:13:35 +02:00
Marco Hinz
c60ebcc313
g:startify_relative_path: :.:~ -> :~:.
References #284.
2017-05-29 21:13:58 +02:00
Marco Hinz
1e251fb749
Fix g:startify_change_to_dir corner cases
References https://github.com/mhinz/vim-startify/issues/283
2017-05-07 20:05:50 +02:00
Samar Dhwoj Acharya
8abaf8ed9f Fix dir listing corner case 2017-05-03 09:45:17 +02:00
Marco Hinz
664ed502ed
Use vim-devicons only when it's enabled
References c193556225 (commitcomment-21866826)
2017-04-22 16:32:36 +02:00
Marco Hinz
f80b0cbe62
Make <MiddleMouse> use "* instead of "" by default
Startify remaps <MiddleMouse> and uses v:register to paste from a specific
register.

The problem:

Unless 'clipboard' is set to "unnamed" or "unnamedplus", v:register will default
to "", whereas <MiddleMouse> usually defaults to "*.

Fixes #281.
2017-04-07 01:52:21 +02:00
Marco Hinz
2e89a6ec2b
Expand bookmark paths
Closes #275.
2017-03-13 15:53:25 +01:00
Marco Hinz
967ea449f5
Make <MiddleMouse> take register
References #272.
2017-02-22 21:08:07 +01:00
Marco Hinz
66d4500576
Make <MiddleMouse> paste in new empty buffer
References #272.
2017-02-22 19:48:42 +01:00
Marco Hinz
72c51e773a
New option: g:startify_session_number
Closes #268.
2017-01-20 20:11:32 +01:00
Marco Hinz
b08d65a967
Make buffer readonly again
This time we pay more attention to when the buffer will still be written by the
plugin itself.

Note to self: Never commit after midnight.
2017-01-19 14:07:27 +01:00
Marco Hinz
42a317bc9e
Revert "Make buffer readonly"
This reverts commit 5c4ed4a34a.
2017-01-19 13:16:31 +01:00
Marco Hinz
5c4ed4a34a
Make buffer readonly
This is done to avoid accidentally saving the Startify buffer to disk.

For why Startify is not using buftype=nofile in the first place, see `:h
startify-faq-05`.

References #265.
2017-01-19 03:49:14 +01:00
Marco Hinz
579b106724
Make g:startify_session_delete_buffers = 1 the default
References #262.
2017-01-11 16:28:38 +01:00
Marco Hinz
af521fa617
Fix s:sort_by_mtime()
Fixes #260.
2017-01-07 14:13:07 +01:00
Marco Hinz
28cfff5ba9
Sessions: filter foox.vim only if foo.vim exists
We used to filter all sessions ending with "x.vim", because of session extra
files. (See 10. in `:h :mks`.)

To avoid false positives, we now only filter a session "foox.vim", if there is
also an accompanying session "foo.vim".

References #259.
2017-01-06 00:36:58 +01:00
Marco Hinz
881246ed5c
Mappings: add s:nowait to j and k 2016-12-20 11:39:27 +01:00
Marco Hinz
3a1ed53393
Remove "wait" arg from s:register 2016-12-20 11:29:17 +01:00
Marco Hinz
685760fb69
Remove g:startify_mapping_nowait
This option got obsoleted by 07b122f.
2016-12-07 13:15:40 +01:00