Fabian Boehm
f93a3e9e9b
fish_indent: Collapse successive newlines
...
This makes it so code like
```fish
echo foo
echo bar
```
is collapsed into
```fish
echo foo
echo bar
```
One empty line is allowed, more is overkill.
We could also allow more than one for e.g. function endings.
2024-02-27 16:25:01 +01:00
Fabian Boehm
b7cc7db93c
fish_key_reader: Remove unnecessary parser
...
I have no idea what this would be used for, it's instantiated, we set
is_interactive, and then we never use it.
2024-02-20 16:55:32 +01:00
Fabian Boehm
662fde7b71
Error out when share/config.fish can't be read
...
This file contains important configuration, so if we can't get it
something is broken.
We don't *exit*, but we will stop reading configuration.
2024-02-10 20:54:22 +01:00
Johannes Altmanninger
144df899f5
Remove some obsolete comments
2024-02-07 00:07:47 +01:00
Fabian Boehm
d50b614250
fish_key_reader: fix off-by-one crash
2024-02-01 21:42:55 +01:00
Fabian Boehm
d3fd815eb3
Use set_flog_file_fd via import
2024-02-01 19:41:13 +01:00
Fabian Boehm
caac869b6e
Use a normal File for debug-output
...
Like the TODO said, we no longer need this.
2024-02-01 19:06:27 +01:00
Fabian Boehm
d74519081e
fish_key_reader: Exit after "--version"
2024-01-22 17:18:11 +01:00
Fabian Boehm
89282fd9bc
Use CARGO_MANIFEST_DIR to see if we're running from build dir
...
This allows running a fish built from `cargo build` *and* built via
cmake.
In future, we should make this an optional thing that's removed from
installed builds.
2024-01-21 21:25:05 +01:00
Johannes Altmanninger
f356e2d82f
Remove redundant fallbacks for installation dir variables
...
They are redundant as of a5e35abeb
(build.rs: Default variables, 2024-01-15).
2024-01-20 10:26:54 +01:00
ridiculousfish
0f56db55a2
Correct "fire_exit" event back to "fish_exit"
...
This was causing fish_exit to not fire, which caused (among other things)
leaking tmux processes from the tests.
This was bisected to eacbd6156d
2024-01-13 15:20:59 -08:00
David Adam
ca972f6e0f
fix permissions on source file
2024-01-13 11:12:02 +08:00
Johannes Altmanninger
3ae20bdba0
Move fish-rust to project root
2024-01-13 03:58:33 +01:00