Rename list module to files module

Renamed to 'files.lua' since it is the only module actively working on
the underlying filesystem so far -- gathering existing files and zettel
in the directories.
This commit is contained in:
Marty Oehme 2021-04-30 15:30:43 +02:00
parent e31630a8c4
commit 9dcd2556ba
Signed by: Marty
GPG key ID: B7538B8F50A1C800
5 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ local A = {}
local o = require 'zettelkasten.options' local o = require 'zettelkasten.options'
local link = require 'zettelkasten.link' local link = require 'zettelkasten.link'
local list = require 'zettelkasten.list' local list = require 'zettelkasten.files'
local BIGNUMBER = 10000000 local BIGNUMBER = 10000000

View file

@ -19,7 +19,7 @@ describe("open", function()
end) end)
it("should use the anchor to open the corresponding zettel", function() it("should use the anchor to open the corresponding zettel", function()
vim.api = {nvim_command = mock(function() end)} vim.api = {nvim_command = mock(function() end)}
local ls = stub(require 'zettelkasten.list', "get_zettel") local ls = stub(require 'zettelkasten.files', "get_zettel")
action.open({ action.open({
ref = "1910271456_link-to-my-file.md", ref = "1910271456_link-to-my-file.md",

View file

@ -1,4 +1,4 @@
local ls = require 'zettelkasten.list' local ls = require 'zettelkasten.files'
-- these tests, I suppose, only work on unix due to the file structure -- these tests, I suppose, only work on unix due to the file structure
local function simple_api_mock(files) local function simple_api_mock(files)

View file

@ -1,6 +1,6 @@
local ZK = {} local ZK = {}
local ls = require 'zettelkasten.list' local ls = require 'zettelkasten.files'
local o = require 'zettelkasten.options' local o = require 'zettelkasten.options'
local anchor = require 'zettelkasten.anchor' local anchor = require 'zettelkasten.anchor'
local action = require 'zettelkasten.action' local action = require 'zettelkasten.action'