-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added plainText and printSource keywords
- Loading branch information
Breck Yunits
authored and
Breck Yunits
committed
Apr 5, 2024
1 parent
57e67e8
commit c1aa539
Showing
7 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plainTextParser | ||
description Use for plain text one liners and/or blocks of plain text. | ||
cruxFromId | ||
extends abstractScrollParser | ||
catchAllParser plainTextLineParser | ||
catchAllCellType stringCell | ||
javascript | ||
compile() { | ||
return `${this.content ?? ""}${this.childrenToString()}` | ||
} | ||
plainTextLineParser | ||
catchAllCellType stringCell | ||
catchAllParser plainTextLineParser |
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,12 @@ | ||
printSourceParser | ||
description Prints out the source code for each file in a group. | ||
extends printFeedParser | ||
example | ||
printSource index | ||
permalink source.txt | ||
javascript | ||
compile() { | ||
const file = this.root.file | ||
const files = file.getFilesInGroupsForEmbedding(this.getWordsFrom(1)).map(file => file.file) | ||
return `${files.map(file => file.filePath + "\n " + file.originalScrollCode.replace(/\n/g, "\n ") ).join("\n")}` | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import settings.scroll | ||
permalink prompt.txt | ||
// Demonstrates a technique for building a big prompt to give to an LLM. | ||
|
||
plainText | ||
Instructions: | ||
Below are the files in a blog. I want you to read them, and then perform the following tasks, and give me your results in the format of a git patch so I can easily apply your changes on my local computer and commit them. | ||
|
||
Tasks: | ||
|
||
The Files: | ||
printSource index |