mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 00:41:00 +00:00
Shell can now use LibLine's `on_paste` hook to more intelligently escape pasted data, with the following heuristics: - If the current command is invalid, just pile the pasted string on top - If the cursor is *after* a command node, escape the pasted data, whichever way yields a smaller encoding - If the cursor is at the start of or in the middle of a command name, paste the data as-is, assuming that the user wants to paste code - If the cursor is otherwise in some argument, escape the pasted data according to which kind of string the cursor is in the middle of (double-quoted, single-quoted or a simple bareword) |
||
|---|---|---|
| .. | ||
| Tests | ||
| AST.cpp | ||
| AST.h | ||
| Builtin.cpp | ||
| CMakeLists.txt | ||
| Execution.h | ||
| Formatter.cpp | ||
| Formatter.h | ||
| Forward.h | ||
| ImmediateFunctions.cpp | ||
| Job.cpp | ||
| Job.h | ||
| main.cpp | ||
| NodeVisitor.cpp | ||
| NodeVisitor.h | ||
| Parser.cpp | ||
| Parser.h | ||
| Shell.cpp | ||
| Shell.h | ||
| SyntaxHighlighter.cpp | ||
| SyntaxHighlighter.h | ||