Commit graph

390 commits

Author SHA1 Message Date
Marco Hinz 9814df57c1
Expose startify#set_mark()
This function can be used to remap the functionality that is mapped to the
b/s/v/t keys by default.

References https://github.com/mhinz/vim-startify/issues/390
2019-09-19 19:28:20 +02:00
Marco Hinz ae10ca5152
Scroll window to top as much as possible
This way you'll see as much as possible from a potential header.

The reverse (making the current line the top line in the window) could be done
via..

    autocmd User Startified normal! zt

..or centerered via..

    autocmd User Startified normal! zz

Fixes https://github.com/mhinz/vim-startify/issues/391
2019-09-19 15:40:20 +02:00
Marco Hinz 13b67af7aa
API: get the session path 2019-08-27 19:45:25 +02:00
Marco Hinz d7849587e5
Skip default header for very old versions
Closes https://github.com/mhinz/vim-startify/issues/386
2019-08-15 12:28:42 +02:00
Tsuyoshi CHO 2486ab67bc Skip all files below .git and fugitiveblame files 2019-08-07 10:05:50 +02:00
Marco Hinz 9abd2c7684
Nvim: make :SClose close terminal buffers as well
Fixes https://github.com/mhinz/vim-startify/issues/382
2019-07-29 15:24:08 +02:00
Marco Hinz a4d663ebb9 Batchmode: disable batchmode on VV etc.
Also indicate it with a message when the batchmode is turned off.
2019-04-11 17:35:53 +02:00
Marco Hinz 3dda0f55df Introduce batchmode
In batchmode you can mark entries without going to their line first.

Use uppercase characters `B`/`S`/`V`/`T` to switch between modes.

E.g. V123 is the same as going to entry 1, hitting v, then entry 2 hitting v,
then entry 3, hitting v. Use <cr> as usual to open the marked entries.

Using the lowercase variants still works as before and resets an active
batchmode.

Implements https://github.com/mhinz/vim-startify/issues/357
2019-04-11 17:35:53 +02:00
Marco Hinz 6d7a05bdfb
Typo
References https://github.com/mhinz/vim-startify/issues/366
2019-04-11 00:28:06 +02:00
Marco Hinz c91d197017
Typo 2019-04-10 23:42:47 +02:00
Marco Hinz b92a2224cd
Don't change line on <LeftMouse>
Fixes https://github.com/mhinz/vim-startify/issues/365
2019-04-10 21:20:10 +02:00
Marco Hinz 9622dee5f1
Session: rename variables 2019-04-06 16:51:55 +02:00
Marco Hinz 26f2ffcdf4
Use :lcd when changing to VCS root 2019-04-06 16:51:55 +02:00
Marco Hinz c758d2a79a
Changing to dir and VCS root is not mutually exclusive
If these two options are set..

  g:startify_change_to_vcs_root (0 by default)
  g:startify_change_to_dir      (1 by default)

..try changing to the VCS root first and, if that fails, to the directory of the
current file afterwards.

Fixes https://github.com/mhinz/vim-startify/issues/364
2019-04-06 16:14:58 +02:00
Marco Hinz e4d35cc913
Indicate current session with (*)
References https://github.com/mhinz/vim-startify/issues/361
2019-03-22 17:48:49 +01:00
bid0uille 22de49a64c Disable sign and fold columns (#360)
Added:

setlocal foldcolumn=0
setlocal signcolumn=no
2019-03-21 17:57:24 +01:00
Marco Hinz 9c5680cd0b
Win: correct session dir for Nvim 2019-02-15 19:38:39 +01:00
Marco Hinz bb16fe8d10
Nvim: old versions don't have stdpath() yet
Fixes https://github.com/mhinz/vim-startify/issues/356
2019-02-15 19:17:07 +01:00
Marco Hinz 4d885829f6
Skip earlier to prevent I/O on slow file systems
Fixes https://github.com/mhinz/vim-startify/issues/353
2019-02-06 12:27:29 +01:00
Marco Hinz 56745d99ca
Fix some vanities 2019-02-06 12:26:38 +01:00
Marco Hinz 69e835d1f7
Nvim: use stdpath() for all OS 2019-01-30 11:50:24 +01:00
Marco Hinz b98f7a5a93
Move variables to the bottom 2019-01-30 11:50:24 +01:00
Tae Sandoval e1be54148e
Nvim: use XDG data directory
Closes https://github.com/mhinz/vim-startify/pull/351
2019-01-30 11:50:24 +01:00
Marco Hinz 0459cd0952
Make :SLoad! source last used session on Unix
Closes https://github.com/mhinz/vim-startify/issues/352
2019-01-29 23:30:24 +01:00
Marco Hinz 888290d39a
Handle vim -y and vim -M better 2019-01-12 22:13:35 +01:00
Daniel Hahler 9c26c7e8dc Only run :Startify on DirChanged for changed cwd
Ref: https://github.com/tpope/vim-fugitive/issues/1132
2018-12-16 17:41:24 +01:00
Marco Hinz 5cd4faf2c6
Windows: handle Vim cmdline special characters on Windows
Fixes   https://github.com/mhinz/vim-startify/issues/346
Reverts https://github.com/mhinz/vim-startify/issues/239
2018-12-08 21:41:15 +01:00
Sergey Vlasov e25fbe1c0d Check if savevars exists 2018-11-28 15:43:07 +01:00
Sergey Vlasov 7ce625aa26 Evaluate savevars early 2018-11-28 14:57:54 +01:00
Marco Hinz 53c8799ad0
Emit user events on opened buffers
Closes #334
2018-11-05 21:22:44 +01:00
Marco Hinz 79fc09f6d7
Rename user event Startified to StartifyReady
For backward compatability "Startified" still works as well.
2018-11-05 21:05:17 +01:00
Marco Hinz 8721af3cea
Assume at least Vim 7.4
7.4 was released at 10 Aug 2013.
2018-11-05 20:20:15 +01:00
Marco Hinz 3565622706 Refactor s:get_index_as_string() 2018-10-31 13:32:33 +01:00
Marco Hinz 0bc6e863d6 Allow custom indices per list
Implements #338
2018-10-31 13:32:33 +01:00
devlinzed 556bf1d507 Avoid extra spaces added to custom quotes (#336)
Without copying the array returned from `s:set_custom_section()`, repeated
invocations may lead to accidental mutation of its arguments, such as
adding extra spaces to custom header and footer quotes.
2018-10-02 21:45:05 +02:00
Marco Hinz 187e46aea3
Do not use a named readonly buffer anymore
Using a readonly buffer causes more problems than it solves.
2018-08-02 22:26:42 +02:00
Vladimir 81bbc69581 Unlet s:last_message with no error in show_list (#329)
If entries is empty, it will try to unlet of non-existing variable and throw the error.

References #328
2018-06-25 13:18:44 +02:00
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 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 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