@@ -109,6 +109,46 @@ export default class StatusBar {
109109 : 0 ) ) ;
110110 break ;
111111 }
112+ } else if ( metric . counter === MetricCounter . footnotes ) {
113+ switch ( metric . type ) {
114+ case MetricType . file :
115+ display = display + getFootnoteCount ( text ) ;
116+ break ;
117+ case MetricType . daily :
118+ display =
119+ display +
120+ ( this . plugin . settings . collectStats
121+ ? this . plugin . statsManager . getDailyFootnotes ( )
122+ : 0 ) ;
123+ break ;
124+ case MetricType . total :
125+ display =
126+ display +
127+ ( await ( this . plugin . settings . collectStats
128+ ? this . plugin . statsManager . getTotalFootnotes ( )
129+ : 0 ) ) ;
130+ break ;
131+ }
132+ } else if ( metric . counter === MetricCounter . citations ) {
133+ switch ( metric . type ) {
134+ case MetricType . file :
135+ display = display + getCitationCount ( text ) ;
136+ break ;
137+ case MetricType . daily :
138+ display =
139+ display +
140+ ( this . plugin . settings . collectStats
141+ ? this . plugin . statsManager . getDailyCitations ( )
142+ : 0 ) ;
143+ break ;
144+ case MetricType . total :
145+ display =
146+ display +
147+ ( await ( this . plugin . settings . collectStats
148+ ? this . plugin . statsManager . getTotalCitations ( )
149+ : 0 ) ) ;
150+ break ;
151+ }
112152 } else if ( metric . counter === MetricCounter . files ) {
113153 switch ( metric . type ) {
114154 case MetricType . file :
@@ -211,6 +251,46 @@ export default class StatusBar {
211251 : 0 ) ) ;
212252 break ;
213253 }
254+ } else if ( metric . counter === MetricCounter . footnotes ) {
255+ switch ( metric . type ) {
256+ case MetricType . file :
257+ display = display + 0 ;
258+ break ;
259+ case MetricType . daily :
260+ display =
261+ display +
262+ ( this . plugin . settings . collectStats
263+ ? this . plugin . statsManager . getDailyFootnotes ( )
264+ : 0 ) ;
265+ break ;
266+ case MetricType . total :
267+ display =
268+ display +
269+ ( await ( this . plugin . settings . collectStats
270+ ? this . plugin . statsManager . getTotalFootnotes ( )
271+ : 0 ) ) ;
272+ break ;
273+ }
274+ } else if ( metric . counter === MetricCounter . citations ) {
275+ switch ( metric . type ) {
276+ case MetricType . file :
277+ display = display + 0 ;
278+ break ;
279+ case MetricType . daily :
280+ display =
281+ display +
282+ ( this . plugin . settings . collectStats
283+ ? this . plugin . statsManager . getDailyCitations ( )
284+ : 0 ) ;
285+ break ;
286+ case MetricType . total :
287+ display =
288+ display +
289+ ( await ( this . plugin . settings . collectStats
290+ ? this . plugin . statsManager . getTotalCitations ( )
291+ : 0 ) ) ;
292+ break ;
293+ }
214294 } else if ( metric . counter === MetricCounter . files ) {
215295 switch ( metric . type ) {
216296 case MetricType . file :
0 commit comments