-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scratchPad): provide
pathToFile
option (#332)
## 📃 Summary It's hard to compose a scratchpad file location today, it requires 3 props to determine the full `pathToFile` and the custom filetype doesn't work everytime. The idea is to propose a single property that does it all, which will deprecate all the other options in the next major before, in order to define custom buffers ```lua buffers = { left = { bo = { filetype = "custom" }, scratchPad = { enabled = true, fileName = "notes", location = "~/Documents" }, }, right = { bo = { filetype = "md" }, scratchPad = { enabled = true, fileName = "foo", location = "./bar/baz" }, }, }, ``` now ```lua buffers = { left = { bo = { filetype = "custom" }, scratchPad = { enabled = true, pathToFile = "~/Documents/notes.custom" }, }, right = { scratchPad = { enabled = true, pathToFile = "./bar/baz/foo.md" }, }, }, ```
- Loading branch information
Showing
11 changed files
with
267 additions
and
168 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
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
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
Oops, something went wrong.