Skip to content

Commit 338c719

Browse files
authored
Merge pull request #374 from lambdalisue/drop-deprecated
🚿 Remove OBSOLETED/DEPRECATED features
2 parents 41197d2 + df9404e commit 338c719

File tree

8 files changed

+0
-118
lines changed

8 files changed

+0
-118
lines changed

autoload/fern.vim

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,3 @@ function! fern#version() abort
5858
let r = system(printf('git -C %s describe --tags --always --dirty', s:root))
5959
echo printf('[fern] %s', r)
6060
endfunction
61-
62-
" DEPRECATED:
63-
if exists('g:fern#disable_viewer_hide_cursor')
64-
" Now the cursor is NOT hidden by default thus just warn users
65-
call fern#util#deprecated('g:fern#disable_viewer_hide_cursor')
66-
endif
67-
if exists('g:fern#disable_drawer_auto_quit')
68-
call fern#util#deprecated(
69-
\ 'g:fern#disable_drawer_auto_quit',
70-
\ 'g:fern#disable_drawer_smart_quit',
71-
\)
72-
endif
73-
if exists('g:fern#smart_cursor')
74-
call fern#util#deprecated('g:fern#smart_cursor', 'g:fern#hide_cursor')
75-
endif
76-
if exists('g:fern#disable_viewer_smart_cursor')
77-
call fern#util#deprecated('g:fern#disable_viewer_smart_cursor')
78-
endif

autoload/fern/mapping/filter.vim

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ function! fern#mapping#filter#init(disable_default_mappings) abort
1515
nmap <buffer><nowait> fi <Plug>(fern-action-include)
1616
nmap <buffer><nowait> fe <Plug>(fern-action-exclude)
1717
endif
18-
19-
" DEPRECATED:
20-
nmap <buffer><silent><expr> <Plug>(fern-action-hidden-set)
21-
\ fern#mapping#deprecated('fern-action-hidden-set', 'fern-action-hidden:set')
22-
nmap <buffer><silent><expr> <Plug>(fern-action-hidden-unset)
23-
\ fern#mapping#deprecated('fern-action-hidden-unset', 'fern-action-hidden:unset')
24-
nmap <buffer><silent><expr> <Plug>(fern-action-hidden-toggle)
25-
\ fern#mapping#deprecated('fern-action-hidden-toggle', 'fern-action-hidden:toggle')
2618
endfunction
2719

2820
function! s:call(name, ...) abort

autoload/fern/mapping/mark.vim

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@ function! fern#mapping#mark#init(disable_default_mappings) abort
1919
nmap <buffer><nowait> - <Plug>(fern-action-mark)
2020
vmap <buffer><nowait> - <Plug>(fern-action-mark)
2121
endif
22-
23-
" DEPRECATED:
24-
nmap <buffer><silent><expr> <Plug>(fern-action-mark-clear)
25-
\ <SID>deprecated('fern-action-mark-clear', 'fern-action-mark:clear')
26-
nmap <buffer><silent><expr> <Plug>(fern-action-mark-set)
27-
\ <SID>deprecated('fern-action-mark-set', 'fern-action-mark:set')
28-
nmap <buffer><silent><expr> <Plug>(fern-action-mark-unset)
29-
\ <SID>deprecated('fern-action-mark-unset', 'fern-action-mark:unset')
30-
nmap <buffer><silent><expr> <Plug>(fern-action-mark-toggle)
31-
\ <SID>deprecated('fern-action-mark-toggle', 'fern-action-mark:toggle')
32-
vmap <buffer><silent><expr> <Plug>(fern-action-mark-clear)
33-
\ <SID>deprecated('fern-action-mark-clear', 'fern-action-mark:clear')
34-
vmap <buffer><silent><expr> <Plug>(fern-action-mark-set)
35-
\ <SID>deprecated('fern-action-mark-set', 'fern-action-mark:set')
36-
vmap <buffer><silent><expr> <Plug>(fern-action-mark-unset)
37-
\ <SID>deprecated('fern-action-mark-unset', 'fern-action-mark:unset')
38-
vmap <buffer><silent><expr> <Plug>(fern-action-mark-toggle)
39-
\ <SID>deprecated('fern-action-mark-toggle', 'fern-action-mark:toggle')
4022
endfunction
4123

4224
function! s:call(name, ...) abort

autoload/fern/mapping/open.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ function! fern#mapping#open#init(disable_default_mappings) abort
5151
nmap <buffer><nowait> E <Plug>(fern-action-open:side)
5252
nmap <buffer><nowait> t <Plug>(fern-action-open:tabedit)
5353
endif
54-
55-
" DEPRECATED:
56-
nmap <buffer><silent><expr> <Plug>(fern-open-or-enter)
57-
\ fern#mapping#deprecated('fern-open-or-enter', 'fern-action-open-or-enter')
58-
nmap <buffer><silent><expr> <Plug>(fern-open-or-expand)
59-
\ fern#mapping#deprecated('fern-open-or-expand', 'fern-action-open-or-expand')
6054
endfunction
6155

6256
function! s:call(name, ...) abort

autoload/fern/renderer/default.vim

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,3 @@ call s:Config.config(expand('<sfile>:p'), {
9595
\ 'collapsed_symbol': '|+ ',
9696
\ 'expanded_symbol': '|- ',
9797
\})
98-
99-
" OBSOLETE:
100-
if exists('g:fern#renderer#default#marked_symbol')
101-
call fern#util#obsolete(
102-
\ 'g:fern#renderer#default#marked_symbol',
103-
\ 'g:fern#mark_symbol',
104-
\)
105-
endif
106-
if exists('g:fern#renderer#default#unmarked_symbol')
107-
call fern#util#obsolete('g:fern#renderer#default#unmarked_symbol')
108-
endif

doc/fern-develop.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,6 @@ Following hook will be emitted by |fern#hook#emit()| from fern itself.
283283
all content has rendererd.
284284
The {helper} is a helper instance described in |fern-develop-helper|.
285285

286-
"renderer:syntax" ({helper})
287-
DEPRECATED:
288-
Use "viewer:syntax" instead.
289-
290-
"renderer:highlight" ({helper})
291-
DEPRECATED:
292-
Use "viewer:highlight" instead.
293-
294286

295287
=============================================================================
296288
HELPER *fern-develop-helper*

doc/fern.txt

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,6 @@ Users can customize above appearance by the following variables.
284284
A |String| used as a symbol of expanded branch node.
285285
Default: "|- "
286286

287-
*g:fern#renderer#default#marked_symbol*
288-
OBSOLETE(v1.6.0)~
289-
Use |g:fern#mark_symbol| instead.
290-
291-
*g:fern#renderer#default#unmarked_symbol*
292-
OBSOLETE(v1.6.0)~
293-
No alternative feature is provided.
294-
295287
See |FernHighlight| and |fern-highlight| to change pre-defeined |highlight|.
296288

297289
Or create user custom renderer to change the appearance completely.
@@ -338,9 +330,6 @@ VARIABLE *fern-variable*
338330
Note that Neovim prior to 0.5.0 cannot hide the cursor thus faint
339331
vertical bar is used instead.
340332

341-
*g:fern#smart_cursor*
342-
DEPRECATED: Use |g:fern#hide_cursor| instead.
343-
344333
*g:fern#keepalt_on_edit*
345334
Set 1 to apply |keepalt| on the "open:edit" action to keep an
346335
|alternate-file| in a split windows style like:
@@ -410,12 +399,6 @@ VARIABLE *fern-variable*
410399
The duplication is mainly occured when user execute |split| or
411400
|vsplit| command to duplicate window.
412401

413-
*g:fern#disable_viewer_hide_cursor*
414-
DEPRECATED: The cursor is not hidden any longer in default.
415-
416-
*g:fern#disable_viewer_smart_cursor*
417-
DEPRECATED: The smart cursor feature has obsoleted.
418-
419402
*g:fern#disable_drawer_auto_winfixwidth*
420403
Set 1 to disable automatically enable 'winfixwidth' to drawer on
421404
|BufEnter| autocmd.
@@ -430,9 +413,6 @@ VARIABLE *fern-variable*
430413

431414
Default: 0
432415

433-
*g:fern#disable_drawer_auto_quit*
434-
DEPRECATED: Use |g:fern#disable_drawer_smart_quit| instead.
435-
436416
*g:fern#disable_drawer_smart_quit*
437417
Set 1 to disable smart quit behavior when there are only two buffer
438418
remains (one is for the drawer styled fern window.)
@@ -614,13 +594,6 @@ COMMAND *fern-command*
614594
drawer style fern.
615595
If "-right" option is specified, the drawer on the right side is used.
616596
If "-stay" option is specified, it stay focus after execution.
617-
Note that the command can be followed by a '|' and another command.
618-
619-
*:FernFocus*
620-
:FernFocus [-drawer]
621-
DEPRECATED: Use |:FernDo| with ":" like ":FernDo :" instead.
622-
Focus a next fern viewer. If "-drawer" option is specified, it focus
623-
only a project drawer style fern.
624597
Note that the command can be followed by a '|' and another command.
625598

626599
*:FernReveal*
@@ -817,15 +790,6 @@ GLOBAL *fern-mapping-global*
817790
An alias to "hidden:toggle" action. Users can overwrite this mapping
818791
to change the default behavior of "hidden" action.
819792

820-
*<Plug>(fern-action-hidden-set)*
821-
DEPRECATED: Use |<Plug>(fern-action-hidden:set)| instead.
822-
823-
*<Plug>(fern-action-hidden-unset)*
824-
DEPRECATED: Use |<Plug>(fern-action-hidden:unset)| instead.
825-
826-
*<Plug>(fern-action-hidden-toggle)*
827-
DEPRECATED: Use |<Plug>(fern-action-hidden:toggle)| instead.
828-
829793
*<Plug>(fern-action-include)*
830794
*<Plug>(fern-action-include=)*
831795
Open a prompt to enter include filter. Users can type a |pattern| to
@@ -866,18 +830,6 @@ GLOBAL *fern-mapping-global*
866830
An alias to "mark:toggle" action. Users can overwrite this mapping to
867831
change the default behavior of "mark" action.
868832

869-
*<Plug>(fern-action-mark-clear)*
870-
DEPRECATED: Use |<Plug>(fern-action-mark:clear)| instead.
871-
872-
*<Plug>(fern-action-mark-set)*
873-
DEPRECATED: Use |<Plug>(fern-action-mark:set)| instead.
874-
875-
*<Plug>(fern-action-mark-unset)*
876-
DEPRECATED: Use |<Plug>(fern-action-mark:unset)| instead.
877-
878-
*<Plug>(fern-action-mark-toggle)*
879-
DEPRECATED: Use |<Plug>(fern-action-mark:toggle)| instead.
880-
881833
*<Plug>(fern-action-debug)*
882834
Echo debug information of a cursor node.
883835

plugin/fern.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ if exists('g:loaded_fern') || (!has('nvim') && !has('patch-8.1.0994'))
66
finish
77
endif
88
let g:loaded_fern = 1
9-
let g:fern_loaded = 1 " Obsolete: For backward compatibility
109

1110
command! -bar -nargs=*
1211
\ -complete=customlist,fern#internal#command#fern#complete

0 commit comments

Comments
 (0)