-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because we might be wanting to change the behavior soon, it would be nice to be able to change in in _one_ place instead of three. Specifically, as per: - wincent/command-t#393 (comment) we might be putting something in the prompt window title to indicate what happened.
- Loading branch information
1 parent
be40c89
commit a4360e1
Showing
4 changed files
with
14 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors. | ||
-- SPDX-License-Identifier: BSD-2-Clause | ||
|
||
-- A lazy fallback wrapper (to avoid the cost of scanning until actually needed) | ||
-- around the built-in file finder. | ||
return function(finder, directory, options) | ||
return function() | ||
finder.fallback = require('wincent.commandt.private.finders.file')(directory ~= '' and directory or '.', options) | ||
return finder.fallback | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters