Commit graph

309 commits

Author SHA1 Message Date
Marco Hinz b92a8f1b51 Extend example configuration 2014-09-09 13:57:15 +02:00
Marco Hinz 00e9af20b3 Use sane defaults instead of an empty skiplist 2014-09-09 13:46:44 +02:00
Marco Hinz fc9a305bd9 Merge branch 'pers-sessions' 2014-09-08 11:18:42 +02:00
Marco Hinz 67e9147b51 Reset list of section lines properly 2014-09-07 19:12:18 +02:00
Marco Hinz 4a788df9b4 Don't save the startify buffer in a session
References #106.
2014-09-07 18:49:49 +02:00
Marco Hinz d4eb81e5f2 Saner cursor starting position 2014-09-05 21:46:43 +02:00
Marco Hinz 1765f6b6bb Prune arglist before saving sessions
:mksession saves opened buffers and files listed in the arglist.

Assuming you would do:

    $ vim foo bar
    :SS session
    :x
    $ vim
    :SL session
    :bwipeout bar
    :x

In that case the only file left in the session should be 'foo'. But
that's not the case, since :mksession! also saves the argument list,
which still consists of 'foo' and 'bar'. Next time you load the session,
both buffers would be opened again.

But since the argument list is seldomly used, or at least not with the
arguments that were given to Vim, it will be pruned from now on.

References #106.
2014-09-05 19:38:01 +02:00
Marco Hinz 4558912d0c Save sessions before loading another one
References #106.
2014-09-05 19:15:34 +02:00
Marco Hinz 8fdcc8c964 README: switch to asciidoc 2014-09-03 17:21:18 +02:00
Marco Hinz 9296df32f1 Update screenshot 2014-09-03 13:52:18 +02:00
Marco Hinz 1b7ca2ed7c Fix regex for properly selecting several entries 2014-09-02 23:12:52 +02:00
Marco Hinz eca7c84c41 Don't ignore file extensions of sessions 2014-09-02 22:46:48 +02:00
Marco Hinz 4b9e87cdda Fix Number/Select highlighting for corner cases 2014-09-02 17:56:15 +02:00
Marco Hinz 9102978c7b Fix filenames with spaces - again #2
Vim automagically does some globbing, if a path to :edit contains
special characters.

Works:        :edit /tmp/foo [bar]
Doesn't work: :edit /tmp/foo bar

This reverts 03de6ee but fixes the actual problem in another place by
throwing escape(xxx, ' ') at the path.

References #102.
2014-09-02 17:08:49 +02:00
Marco Hinz 236e3e9ea2 Add StartifySelect highlight group 2014-09-02 16:28:10 +02:00
Marco Hinz 03de6ee94d Fix filenames with spaces - again
References #102.
2014-09-02 15:06:56 +02:00
Marco Hinz 2fe12144eb Respect g:startify_session_delete_buffers in all cases
Closes #104.
2014-09-01 19:09:52 +02:00
Marco Hinz bf85306c7f Fix syntax for the "~/[foo].txt" case
Thanks to my local regexp wizard, @Osse, for helping me coming up with
the proper regexp.

References #82.
2014-08-21 19:36:58 +02:00
Marco Hinz 90358248e3 Escape paths before globbing
References #82.
2014-08-21 18:56:41 +02:00
Marco Hinz ba1208c3f5 Doc: update wording of g:startify_skiplist 2014-08-21 15:20:30 +02:00
Marco Hinz aa17d6a7cb Refactor show_{dir,files}() 2014-08-21 15:08:15 +02:00
Marco Hinz 685f2546fd Update syntax to handle [ and ] in paths 2014-08-21 13:29:30 +02:00
Marco Hinz b37d42509b Fix change_to_dir option
Thanks for reporting, @Osse.
2014-08-21 10:31:04 +02:00
Marco Hinz ec869a589e Issue a warning if the viminfo file can't be read
Also add a typical solution to the FAQ.

Closes #89.
2014-08-20 19:00:58 +02:00
Weirong Xu cbc2b29575 Map: use silent nnoremap to open entries 2014-07-14 18:53:12 +02:00
Marco Hinz 7676944ad7 Doc: add another example for custom indices 2014-06-11 12:35:01 +02:00
Marco Hinz 3f8699c4ee Fix index order in certain corner case
Closes #93.
2014-06-11 12:24:51 +02:00
Marco Hinz 19da8f9ee8 Make persistence work with normal sessions 2014-06-11 12:14:21 +02:00
Benjamin Medicke a4eef8c086 Make startify work with Neovim 2014-06-11 11:41:58 +02:00
Alejandro Exojo fe5aa8f0ba Qt Vim deserves some startup love too 2014-05-07 13:01:10 +02:00
ZeroKnight 678df1e12c Fix pathname display on Windows
glob(fname) forces `fname` to abide by the 'shellslash' setting

fnamemodify(..., ':p:~') will shorten pathnames to '~/...' if possible
2014-04-24 08:32:59 +02:00
ZeroKnight 2872ab750b Fix "last modified" entries not showing with nossl
On Windows with 'noshellslash', the 'dir' section would never show up due to the
unescaped backslashes in `cwd`.

escape() backslashes (if they exist) so that match() will pass properly.
2014-04-24 08:32:59 +02:00
Making GitHub Delicious 376b2178f4 Add waffle.io badge 2014-04-24 08:08:13 +02:00
ZeroKnight c92b283b56 setlocal nocursorcolumn
For those who enjoy crosshairs :)
2014-04-24 01:08:06 -04:00
Marco Hinz 3698187c54 Merge pull request #81 from ZeroKnight/patch-1
Fix skiplist matching on Windows
2014-04-24 00:13:35 +02:00
Alex George 8954e92fa7 Fix skiplist matching on Windows
See issue #52

In order to enable platform-agnostic patterns in `g:startify_skiplist`, as long as `shellslash` is set in a user's `.vimrc` before loading the plugin, patterns in `g:startify_skiplist` will work even if they use forward slashes.
2014-04-20 12:19:53 -04:00
Marco Hinz abffc53f0b Make startify work for 'vi' too
..due to popular demand. :)

Closes #79.
2014-04-14 23:42:42 +02:00
Marco Hinz 95e8b9f95f Fix scope mistake
Closes #76.
2014-03-31 21:34:28 +02:00
Marco Hinz ac67377d52 Small refactoring 2014-03-31 18:40:37 +02:00
Marco Hinz 19870ae159 Proper use of User autocmd 2014-03-31 18:09:40 +02:00
Øystein Walle 5370a743f2 New option: show relative paths
Closes #72.
2014-03-31 10:30:52 +02:00
Marco Hinz 110af7a38a Prevent using filter() on invalid types of values
Closes #75.
2014-03-31 10:18:58 +02:00
Marco Hinz 0bc4aae6f4 Make dir listing recursive
Closes #63.
2014-03-21 00:28:25 +01:00
UncleBill 85a7168d71 Delete open buffers before loading a new session
Closes #70.
2014-03-18 11:34:53 +01:00
Daniel Hahler 69fa3cf9af Handle "swap file found" (E325) exception
The user has been warned and asked about how to proceed already.
Catching this exception removes the additional output afterwards:

  Error detected while processing function <SNR>237_open_buffers:
  line   38:
  E325: ATTENTION

Closes #67.
2014-02-15 21:51:59 +01:00
Marco Hinz 2c4113999d Also fnameescape() if opening multiple files 2014-01-30 18:30:15 +01:00
Marco Hinz ca6915e420 Handle encrypted files 2013-12-19 10:26:00 +01:00
Marco Hinz 515bcd48b4 Make section highlighting local to buffer 2013-12-02 21:45:34 +01:00
Marco Hinz e8c11b910d Merge pull request 60 from @shemerey 2013-11-12 17:46:09 +01:00
Anton Shemerey bed53e76e6 Doc: missing comma in g:startify_skiplist 2013-11-12 17:45:45 +01:00