ladybird/Userland/Shell
Ali Mohammad Pur a76730823a Shell: Be more smart with pasted stuff
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)
2022-03-06 13:20:41 +01:00
..
Tests Shell: Remove sigpipe.sh.out artefact after failure 2021-12-13 16:20:29 +03:30
AST.cpp Shell: Implement leftmost_trivial_literal() for Sequence nodes 2022-03-06 13:20:41 +01:00
AST.h Shell: Implement leftmost_trivial_literal() for Sequence nodes 2022-03-06 13:20:41 +01:00
Builtin.cpp Shell: Start history counter from 1 2022-02-22 21:26:25 +03:30
CMakeLists.txt Shell: Port to LibMain 2022-01-09 03:22:10 +03:30
Execution.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Formatter.cpp Shell: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:09 +02:00
Formatter.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Forward.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
ImmediateFunctions.cpp Shell: Allow completing StringLiterals as paths 2022-03-06 13:20:41 +01:00
Job.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
Job.h Shell: Hide job times behind SHELL_JOB_DEBUG flag 2021-05-21 12:05:34 +04:30
main.cpp Shell: Be more smart with pasted stuff 2022-03-06 13:20:41 +01:00
NodeVisitor.cpp Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
NodeVisitor.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
Parser.cpp Shell: Allow completing StringLiterals as paths 2022-03-06 13:20:41 +01:00
Parser.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Shell.cpp Shell: Be more smart with pasted stuff 2022-03-06 13:20:41 +01:00
Shell.h Shell: Be more smart with pasted stuff 2022-03-06 13:20:41 +01:00
SyntaxHighlighter.cpp Shell: Use an opaque color for SyntaxError 2022-02-23 21:56:16 +00:00
SyntaxHighlighter.h LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30