Mahmoud Al-Qudsi
2d52335fed
Don't fire fish_prompt when read
is used
...
Apart from being semantically incorrect, this was causing `fish_prompt`
to fire twice after commands that used `read` (e.g. `cdh`).
Closes #7039 .
2020-05-26 15:24:31 -05:00
Johannes Altmanninger
e885a65754
fish_greeting: highlight "help" in in green, like it used to be
...
This was changed in b9d2e4d
with no obvious motivation, and the
translation strings still have the old version.
2020-05-25 23:50:30 +02:00
Cherichy
f32777a0cc
check for both wsl1 and wsl2
2020-05-25 13:05:13 +08:00
Cherichy
b34d9bcc97
fix is_wsl() on wsl2
...
on wsl2 the /proc/version contains no Microsoft as wsl1 do.
2020-05-25 13:05:13 +08:00
Fabian Homborg
38a6f34dd5
CHANGELOG Showing suggestions more
...
See #6948
[ci skip]
2020-05-24 22:27:03 +02:00
ksralgp
f55f98b064
Show autosuggestions when (left prompt + command) exceed right prompt ( #7035 )
...
* Show autosuggestions when (left prompt + command) exceed right prompt
* Fix indentation whitespace and run build_tools/fish.style on src/screen.cpp
2020-05-24 21:54:00 +02:00
Fabian Homborg
1879b4e697
docs: Some rewording in Special Variables
2020-05-24 20:23:31 +02:00
Fabian Homborg
420f68b1e3
docs: Some rewording in the variable scope section
2020-05-24 20:23:31 +02:00
Fabian Homborg
82d720ca2a
docs: Rewrite variables section
2020-05-24 20:23:31 +02:00
Fabian Homborg
87660d3d87
docs: Rewrite identifiers and move it down
...
Weird to mention it before even explaining variables.
2020-05-24 20:23:31 +02:00
Jason Nader
65dde5b55a
Fallback to the slower --list-devices if device not immediately available
2020-05-24 20:19:19 +02:00
Jason Nader
68a1f2b20a
completions: speed up kdeconnect-cli device discovery
2020-05-24 20:19:19 +02:00
Jason
7b9119cc9a
fish_vcs_prompt: allow argv passthrough
...
fish_git_prompt encloses its output in brackets, however this can be changed by supplying a format string to it, i.e. `fish_git_prompt %s`.
However when using `fish_vcs_prompt` there's no way to pass on the arg to fish_git_prompt, so you need to manually remove it.
fish_hg_prompt doesn't have the same format string support as fish_git_prompt, but I suppose it could be added later if needed.
2020-05-24 20:18:06 +02:00
David Adam
b9ea880535
CHANGELOG: minor work on 3.2.0
...
[ci skip]
2020-05-24 16:26:01 +08:00
David Adam
b6eb95abad
docs: minor spelling/style corrections
...
[ci skip]
2020-05-24 16:14:23 +08:00
Fabian Homborg
07e6ccd444
docs: Rewrite index range section
2020-05-24 09:33:24 +02:00
Fabian Homborg
2522249145
docs: Rewrite cartesian product section
2020-05-24 09:33:20 +02:00
Fabian Homborg
18a4ae3fd1
fish_greeting: Add second line unconditionally
...
For some reason we checked __fish_initialized *after confirming* that
$fish_greeting was empty?
See #7016 .
2020-05-23 18:54:43 +02:00
Fabian Homborg
c2a8557c38
docs: Reword brace expansion
2020-05-23 18:31:33 +02:00
Fabian Homborg
255ab2f140
docs: Reword command substitution
2020-05-23 18:31:33 +02:00
Fabian Homborg
85c970187b
docs: Reword parameter expansion/globbing
...
Why it said "Parameter expansion ("globbing")" no idea.
2020-05-23 18:31:07 +02:00
Fabian Homborg
1eb2bd13ca
docs: Reword autoloading
...
This is hard to understand, so it needs polish polish polish.
2020-05-23 18:24:43 +02:00
Fabian Homborg
25d51bf093
docs: Reword redirection/piping
...
Less emphasis on the file descriptors
2020-05-23 18:24:43 +02:00
Fabian Homborg
840663bc0b
docs: Reword quotes section
2020-05-23 18:24:37 +02:00
Fabian Homborg
814efb5569
docs: More on variable scoping
...
Specifically more examples, and more *real* examples. Some of it is
copied straight from my config.fish.
2020-05-23 16:42:54 +02:00
Fabian Homborg
a40a35cc52
Put all the ls logic into the function
...
Doing it when sourcing isn't necessary or all that great.
Just make it an actual normal function file.
2020-05-23 14:30:00 +02:00
Fabian Homborg
928e80ad6a
Extract setting $LS_COLORS to its own function
...
Makes it easier to override ls while keeping $LS_COLORS.
2020-05-23 14:30:00 +02:00
ridiculousfish
a9bfe7f164
Remove find_program(sed) from CMake
...
We no longer use sed.
2020-05-22 13:44:55 -07:00
ridiculousfish
84e0c8d32e
Guard thread_local
...
Mac OS X 10.9 supports __thread but not C++11 thread_local.
Teach CMake to detect support for thread_local and use the proper
define guard.
Fixes #7023
2020-05-22 13:41:05 -07:00
ridiculousfish
1fd0cd5510
Avoid forming owning_lock of incomplete type in history
...
Older libstdc++ will error on this.
Partially addresses #7023
2020-05-22 13:36:46 -07:00
Johannes Altmanninger
285861d346
Do notify about jobs that were continued outside fish
...
When sending SIGCONT to a stopped job, this behaves now
a bit more like a job that was continued by the bg builtin;
bg uses job_t::continue_job which seems overkill here.
2020-05-22 21:28:54 +02:00
Johannes Altmanninger
a9b60d2493
Call fish_prompt after background job finishes
...
We don't need to call it if a job was stopped, because in that case
read_i() will fire fish_prompt already, because the newly stopped job
was probably a foreground job.
Fixes #1018
2020-05-22 21:24:59 +02:00
David Adam
cbf53623b4
README: refer to Linux instructions for WSL to get newest version
...
As suggested in #6941 .
[ci skip]
2020-05-21 22:48:07 +08:00
Fabian Homborg
e51f4e5fc9
Don't print a warning about tcgetattr if stdin is not a tty
...
I don't know why this doesn't happen more often, but if stdin is not a
tty not being able to get terminal attributes from it is *expected*?
2020-05-21 10:31:32 +02:00
Fabian Homborg
3af715d36f
test_helper: Limit signal numbers more
...
This just produced a spurious "Unknown signal" error on NetBSD and OpenBSD, and
the number picked was arbitrary. So let's just use the maximum that
appears to work everywhere.
(I will hate this if I test it elsewhere and need to reduce it to 62)
(This is a squashed commit, I did indeed hate it when I moved from
NetBSD to OpenBSD)
2020-05-21 10:30:54 +02:00
Fabian Homborg
9d1129f14c
docs/tutorial: Fix duplicate sentence
...
Fixes #7024 .
2020-05-20 19:20:12 +02:00
Johannes Altmanninger
6746060c14
Run fish_indent on all fish files in share/
2020-05-19 21:15:39 +02:00
Johannes Altmanninger
91ccaae5bf
fish_indent: fix error message on ENOENT
2020-05-19 21:15:11 +02:00
Johannes Altmanninger
c54ee22c46
Refactor: remove unnecessary exports
2020-05-19 21:15:11 +02:00
Johannes Altmanninger
3819696091
Fix Kakoune completions
2020-05-19 21:15:11 +02:00
Charles Gould
b673f32b93
Add fish debugging examples
2020-05-19 21:07:33 +02:00
Charles Gould
a0faac400d
Print warning on failure to match debug category
2020-05-19 21:07:33 +02:00
Charles Gould
a7aca37f9b
Print enabled debug categories
2020-05-19 21:07:33 +02:00
Shun Sakai
cc039e29ce
Add completions for Docutils
2020-05-19 21:02:55 +02:00
Soumya
518170b299
Also call fish_job_summary
for foreground sigint
...
The default implementation will not print any output in that case, but this provides users with additional flexibility when it comes to customising the shell's behaviour.
2020-05-19 20:39:10 +02:00
Soumya
324fa64114
Add fish_job_summary
, called whenever a job ends, stops, or is signalled
...
This allows users to customise the behaviour of the shell by redefining the function. This is similar to how fish_title or fish_greeting behave, where the default implementation can be easily overridden.
The function receives as arguments the job id, command line, signal name and signal description.
2020-05-19 20:39:10 +02:00
Fabian Homborg
e3c4692031
docs/bind: Overhaul
2020-05-18 20:48:36 +02:00
Fabian Homborg
43df5ba828
completions: Stop checking for command existence
...
Since 4414d5c888
(in fish 3.0.0) we
don't autoload completions if the command doesn't exist.
So there is no need to check inside the scripts anymore.
Whats more, a few (like pip and cabal) checked `command -q` instead of
`type -q`, meaning they'd fail if someone used a function instead of a
command of that name.
If the *command* actually needs to exist, checks like that are still
warranted, like in `npm` where aliasing it to `nvm` is popular.
A teensy additional bit: Make `sysctl -w` the same as `sysctl
--write`. That description was bogus.
2020-05-18 20:48:36 +02:00
Fabian Homborg
ec759fb45e
printf: Overhaul docs
2020-05-18 20:48:36 +02:00
Fabian Homborg
56f24f08d7
printf: Don't print an error if not given an argument
2020-05-18 20:48:36 +02:00