File tree Expand file tree Collapse file tree 3 files changed +21
-75
lines changed Expand file tree Collapse file tree 3 files changed +21
-75
lines changed Original file line number Diff line number Diff line change
1
+
2
+ --- @class MatchEntry
3
+ --- @field value OrgHeadlineEntry | OrgFileEntry
4
+ --- @field ordinal string
5
+ --- @field filename string
6
+ --- @field lnum number
7
+ --- @field display function
8
+ --- @field location string ,
9
+ --- @field line string ,
10
+ --- @field tags string ,
11
+
12
+ --- @class OrgHeadlineEntry
13
+ --- @field file OrgApiFile
14
+ --- @field filename string
15
+ --- @field headline OrgApiHeadline
16
+
17
+ --- @class OrgFileEntry
18
+ --- @field file OrgApiFile
19
+ --- @field filename string
20
+ --- @field title string ?
Original file line number Diff line number Diff line change 1
- require (' telescope-orgmode.typehints' )
2
-
3
- local OrgApiHeadline = require (' orgmode.api.headline' )
4
- local OrgApiFile = require (' orgmode.api.file' )
5
1
local OrgApi = require (' orgmode.api' )
6
2
7
3
local M = {}
8
4
9
5
function M .load_files (opts )
10
6
--- @type { file : OrgApiFile , filename : string , last_used : number } []
11
7
local file_results = vim .tbl_map (function (file )
12
- local file_stat = vim .loop .fs_stat (file .filename ) or 0
8
+ local file_stat = vim .uv .fs_stat (file .filename ) or 0
13
9
return { file = file , filename = file .filename , last_used = file_stat .mtime .sec }
14
10
end , OrgApi .load ())
15
11
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments