Johannes Altmanninger
3c12864436
docs: fix double space in example fish_greeting
...
Closes #10176
2024-01-06 15:26:20 +01:00
David Adam
094f10874b
bump copyright year to 2024
2024-01-06 22:24:55 +08:00
Johannes Altmanninger
cfd1e760a4
Update sourcehut FreeBSD config
2024-01-06 14:28:09 +01:00
Johannes Altmanninger
f42b7d30b3
completions/ant: don't look at tokens from adjacent commands
2024-01-06 08:44:23 +01:00
Fabian Boehm
06de374ffd
Log original exit code used when a builtin returns a negative exit code
...
Port of b91723dab6888d25f6b959859289f2aed719992c
2024-01-05 16:52:18 +01:00
Fabian Boehm
4286b049ca
docs: Fix two formatting errors
...
sphinx *really* needs an empty line after a `::` code block starter
2024-01-05 16:49:49 +01:00
Fabian Boehm
3213883510
Add error messages where the errors are generated
...
This removes an awkward hack from ParseError::describe_with_prefix,
where it added errors for two error codes.
andor_in_pipeline was already there, so we just need bare_variable_assignment.
2024-01-04 18:07:40 +01:00
Asger Hautop Drewsen
b91723dab6
Log original exit code used when a builtin returns a negative exit code
2024-01-04 16:13:41 +01:00
Josef Litoš
ee837f254b
feat: adb completion cleared of awk
2024-01-04 16:13:03 +01:00
Damien Picard
4f3e7ddef0
Completions: fix Blender completions when it prints to stderr
...
Some of the completions recently introduced called Blender itself to query some
arguments, and Blender sometimes prints messages to stderr. This output was not
filtered, resulting in the shell printing irrelevant messages during completion.
2024-01-04 16:11:51 +01:00
Nethum Lamahewage
a36ff7d143
history: fix deleting last entry
2024-01-04 16:10:08 +01:00
David Adam
c10d00599b
completions/ninja: add --verbose option
2024-01-03 23:17:55 +08:00
Fabian Boehm
1fdbac3320
tests: Lengthen a timeout
...
This fails on ASAN a bunch now, let's see if it's just slower
2024-01-02 22:42:19 +01:00
Fabian Boehm
ff8563cfdb
docs/set: Fix typo
...
Fixes #10185
2024-01-02 21:54:07 +01:00
Fabian Boehm
5a77db8353
fish_key_reader: Only name keys if they match the entire sequence
...
This would misname `\e\x7F` as "backspace":
bind -k backspace 'do something'
bind \e\x7F 'do something'
because it would check if there was any key *in there*.
This was probably meant for continuous mode, but it simply doesn't
work right. It's preferable to not give a key when one would work over
giving one when it's not correct.
2024-01-02 17:27:20 +01:00
Abdo Omar
744fa72d9c
Update README.rst
...
windows 10 -> windows 10/11
2024-01-02 22:24:58 +08:00
David Adam
365027d55d
drop obsolete headers
2024-01-02 01:59:02 +08:00
David Adam
3cdca4738a
drop unused wildcard module
...
Some of the definitions in wildcard.h are still used in C++.
2024-01-02 01:59:02 +08:00
David Adam
118dfe776a
drop unused path functions
2024-01-02 01:59:02 +08:00
Johannes Altmanninger
d8feb0bcd1
builtin bind: remove unused parameter
...
This file uses the questionable "self.somemethod(self.somefield)" pattern.
We should either set the functions free or stop passing redundant parameters.
Not sure.
For now fix one of them to avoid a string clone.
2024-01-01 18:40:34 +01:00
Johannes Altmanninger
971359876d
Work in clippy lint
2024-01-01 18:40:34 +01:00
Johannes Altmanninger
69881f4251
Merge pull request #10180 from ridiculousfish/riir-input
...
Rewrite input machinery in Rust
2024-01-01 18:38:32 +01:00
David Adam
1b6374d2ce
Merge branch 'Integration_3.7.0'
2024-01-02 00:08:49 +08:00
Fabian Boehm
6618ca17f2
set: Fix set -e
without arguments
...
This didn't actually error out because we passed all of args.
It *might* be cleaner to pass a slice?
2024-01-01 16:21:08 +01:00
David Adam
0e4d088b11
Release 3.7.0
3.7.0
2024-01-01 23:15:17 +08:00
Fabian Boehm
20d36cd9a2
set: Remove a broken array read
...
Hardcode "--erase" as a hack, because "argv[-1]" is *not* a thing.
Introduced in aacc71e58520309027fd39e30038e6c42bdc9a2f.
Fixed in master by no longer being C++.
2024-01-01 15:13:23 +01:00
David Adam
be0ea9862c
CHANGELOG: work on 3.7.0
2024-01-01 22:01:45 +08:00
ridiculousfish
8190e3419d
Add remaining input FFI bits and port builtin_bind
...
This implements input and input_common FFI pieces in input_ffi.rs, and
simultaneously ports bind.rs. This was done as a single commit because
builtin_bind would have required a substantial amount of work to use the input
ffi.
2023-12-31 17:17:43 -08:00
ridiculousfish
7ffb62d1d9
Port input.cpp to input.rs
...
This is not yet adopted.
2023-12-31 15:45:08 -08:00
ridiculousfish
01b04c802e
Port input_common.cpp to input_common.rs
2023-12-31 15:45:08 -08:00
ridiculousfish
55054a4bae
Add keys to our curses Term structure
...
This will support rewriting the input machinery in Rust.
Note that while there are a lot of keys here, in practice this is very fast -
taking on the order of microseconds to populate.
2023-12-31 15:44:50 -08:00
Fabian Boehm
d6833edf54
CHANGELOG
2024-01-01 00:14:26 +01:00
Fabian Boehm
5c532ace5a
CHANGELOG umask fix
2023-12-31 19:40:18 +01:00
Fabian Boehm
3b9b84101a
umask: Correctly handle empty symbolic value
...
Simple return/echo confusion.
Fixes #10177
(cherry picked from commit b895cf49ca91329d8903e0f9aa2b0f64437c2608)
2023-12-31 19:39:38 +01:00
Fabian Boehm
b895cf49ca
umask: Correctly handle empty symbolic value
...
Simple return/echo confusion.
Fixes #10177
2023-12-31 19:39:23 +01:00
David Adam
850c57bbb3
completions/funced: clarify -i description
...
Work on #10053 .
2023-12-31 23:04:19 +08:00
jydeng
4c616c56b2
add more subcommands for apt ( #10100 )
...
(cherry picked from commit b9b850f2868f9df2fde809c2b8bc2c854de15a46)
2023-12-31 23:01:03 +08:00
jydeng
b9b850f286
add more subcommands for apt ( #10100 )
2023-12-31 23:00:15 +08:00
David Adam
8a447355a2
CHANGELOG: work on 3.7.0
2023-12-31 22:37:18 +08:00
David Adam
6c599d8f22
docs/license: tidy up formatting
2023-12-31 21:49:38 +08:00
David Adam
413ba192a0
drop unused code:
...
fish_tests.cpp:
* comma_join
env.cpp:
* env_get_inherited
* env_get_runtime_path
* check_runtime_path (from tmux)
2023-12-31 21:14:40 +08:00
Johannes Altmanninger
efa37b6a2e
Add back poll of change signaller after adding starting fd monitor
...
This was missed in ce559bc20 (Port fd_monitor (and its needed components),
2023-02-17).
Fixes the wrong color in
echo (set_color yellow; date +%T; set_color blue)
as reported in https://github.com/fish-shell/fish-shell/issues/10176#issuecomment-1872658589
2023-12-31 11:07:18 +01:00
Johannes Stölp
58d1467fb7
[doc]: fix --path description of set cmd
...
(cherry picked from commit 1cba28c120854edbb926138b5b99c28d7db38737)
2023-12-31 13:30:10 +08:00
David Adam
8508cc50b0
CHANGELOG: work on 3.7.0
2023-12-31 13:07:02 +08:00
David Adam
1b3f7cf2e5
themes/Nord: include license tag
...
(cherry picked from commit 31eb429add1f4c498eaead55be637f52944227cd)
2023-12-31 13:03:01 +08:00
David Adam
6d9c32728e
docs/license: note Nord theme license
...
(cherry picked from commit ea34f71e1c6305d1ba948a37c9a591200c96cd24)
2023-12-31 13:03:00 +08:00
David Adam
e0282d0174
docs/license: remove duplication
2023-12-31 12:58:39 +08:00
David Adam
31eb429add
themes/Nord: include license tag
2023-12-31 12:54:31 +08:00
David Adam
ea34f71e1c
docs/license: note Nord theme license
2023-12-31 12:44:29 +08:00
Johannes Altmanninger
dc90093f8b
completions: use POSIX character classes with sed
...
\s and \S are not supported BSD sed.
Fixes #10163
(cherry picked from commit 81c8cd1b6150c974b05d73f6a31beb7344f93984)
2023-12-31 12:32:52 +08:00