fish-shell/doc_src
Johannes Altmanninger e697add5b5 Feature flag to prevent executing off buffered keys
If I run "sleep 3", type a command and hit enter, then there is no
obvious way to cancel or edit the imminent command other than ctrl-c
but that also cancels sleep, and doesn't allow editing. (ctrl-z sort
of works, but also doesn't allow editing).

Let's try to limit ourselves to inserting the buffered command
(translating enter to a newline), and only execute once the user
actually presses enter after the previous command is done.
Hide it behind a new feature flag for now.

By making things less scary, this might be more user-friendly, at
the risk of breaking expectations in some cases.

This also fixes a class of security issues where a command like
`cat malicious-file.txt` might output escape sequences, causing
the terminal to echo back a malicious command; such files can still
insert into the command line but at least not execute it directly.
(Since it's only fixed partially I'm not really sure if the security
issue is a good enough motivation for this particular change.)

Note that bracketed paste probably has similar motivation as this feature.

Part of #10987
Closes #10991
2025-01-06 06:24:13 +01:00
..
cmds ctrl-l to scroll content instead of erasing screen 2024-12-30 10:50:38 +01:00
python_docs_theme docs: Distinguish documents in sidebar 2024-12-28 08:42:46 +01:00
commands.rst docs: add short documentation for export 2024-11-06 23:47:31 +08:00
completions.rst docs: Some rewording on completions 2024-05-10 17:40:18 +02:00
conf.py docs: Read version from the version file 2024-12-06 22:12:26 +01:00
contributing.rst Improve CONTRIBUTING and add it to the docs 2023-06-01 18:09:02 +02:00
design.rst docs: Fix typos 2022-09-17 21:31:06 +08:00
faq.rst docs/faq: Fix some broken keys 2024-11-21 18:28:43 +01:00
fish_for_bash_users.rst fish_for_bash_users: Put explanation on subshells first 2024-05-15 22:44:07 +02:00
fish_indent_lexer.py docs: restore default highlighting keywords and options in HTML 2022-01-16 14:07:19 +01:00
fish_synopsis.py Document the ! (not) and . (source) aliases more 2024-04-20 13:34:08 +02:00
index.rst docs: Some slight rewordings 2023-08-23 23:08:56 +02:00
interactive.rst docs/interactive: update key bindings added for 4.0 2025-01-05 22:27:00 +08:00
language.rst Feature flag to prevent executing off buffered keys 2025-01-06 06:24:13 +01:00
license.rst docs: Remove broken indents in license 2024-08-15 17:48:48 +02:00
prompt.rst docs/prompt: Add funcsave/funced 2024-09-15 09:39:13 +02:00
relnotes.rst docs: call the CHANGELOG "release notes" 2021-02-25 22:46:24 +08:00
tutorial.rst docs: Fix two links 2024-06-22 14:58:07 +02:00