Mahmoud Al-Qudsi
a8a9a823f2
Correct unescaped backslash in \n in string.txt
2018-10-14 16:40:27 -05:00
Dennis Schridde
e3643c610f
doc_src/set.txt: -U affects only the user running the command, not all users
2018-10-10 18:42:56 +02:00
Mahmoud Al-Qudsi
e212269ab1
Add status fish-path
...
Retrieves the fully resolved path to the currently executing fish binary
(regardless of PATH). Can be used to ensure that the same fish is
launched again from a script.
`get_executable_path()` moved from fish binary to libfish, also cleaned
up some duplicated (but differing!) definitions of PATH_MAX (which was
used by that function) in the process.
2018-10-09 22:34:41 -05:00
Adel Atallah
6a9f0fc0c1
Fix typo in the documentation
2018-10-09 16:52:27 +02:00
Jason
ca159ae4b8
Fix typo
2018-10-07 12:49:02 +02:00
ridiculousfish
0f0bb1e10f
Don't resolve symlinks with cd
...
This switches fish to a "virtual" PWD, where it no longer uses getcwd to
discover its PWD but instead synthesizes it based on normalizing cd against
the $PWD variable.
Both pwd and $PWD contain the virtual path. pwd is taught about -P to
return the physical path, and -L the logical path (which is the default).
Fixes #3350
2018-10-06 17:03:18 -07:00
Fabian Homborg
444f9f8715
Add separation of "preset" bindings
...
This allows for marking certain bindings as part of a preset, which allows us to
- only erase those when switching presets
- go back to the preset binding when erasing a user binding
- only show user customization if requested
- make bare bind statements in config.fish work (!!!11elf!!!)
Fixes #5191 .
Fixes #3699 .
2018-09-30 16:54:56 +02:00
David Adam
5cc92ffd70
Documentation for while: note new exit status changes
...
Work on #4982 .
2018-09-28 22:57:02 +08:00
Fabian Homborg
d44c21b580
Document/complete feature flags more
2018-09-16 10:39:15 +02:00
Fabian Homborg
bda147c7d3
Correct math docs
...
This was an oversight when math was changed to default to float output.
Also some more jokey stuff. Jokey stuff is nice.
2018-09-15 15:31:59 +02:00
Jason
5d59c6a1cd
Correct argument order for signal handler example
2018-09-10 19:05:06 +02:00
ridiculousfish
cbcabf6d00
Add support for fish_ambiguous_width
...
fish_ambiguous_width is a variable which controls the width of ambiguous CJK
characters.
Fixes #5149
2018-08-18 15:38:05 -07:00
David Adam
c5ec7daab4
Revert "license.hdr: add Apache2 license for wcwidth9"
...
This reverts commit 00f2099f29
. wcwidth9
has been removed.
2018-07-14 15:43:37 +08:00
ridiculousfish
87f646d84d
Correct spelling of 'consistently'
2018-07-09 20:55:55 -07:00
gkdoc
c04cb9c715
Update FORMATTING.md ( #5087 )
2018-07-09 20:54:56 -07:00
ridiculousfish
73c747d162
Add string join0
...
string join0 joins its arguments using NUL byte, which complements
string split0. For example it allows piping a variable through sort -z.
2018-07-01 15:56:34 -07:00
ridiculousfish
b1176323e7
Document string split0
2018-07-01 15:56:34 -07:00
David Adam
dc17869a84
commandline docs: add note that -b selects autosuggestion
...
Suggested in #5000 .
2018-06-29 21:28:46 +08:00
David Adam
00f2099f29
license.hdr: add Apache2 license for wcwidth9
...
The wcwidth code is derived entirely from neovim, not from vim.
2018-06-29 21:27:29 +08:00
Fabian Homborg
cbdd347ec6
Changelog range expansion change, expand docs
2018-06-25 17:57:06 +02:00
Fabian Homborg
81a987c39c
Fix range expansion with negative ends
...
If just one of the range ends is negative, this now forces direction away from it.
I.e. if the beginning is negative, we go in reverse.
If the end is negative, we go forwards.
This fixes cases like
$var[2..-1]
if $var only has one element.
2018-06-25 17:52:56 +02:00
ridiculousfish
e812b609f9
Update set man page to clarify scoping rules
...
"When an exported variable goes out of scope, it is unexported."
As requested in #5064
2018-06-23 15:18:38 -07:00
Sabine Maennel
b347b44d9e
added 2 sections to the tutorial
...
Added 2 sections to the tutorial:
- getting started
- switching to fish
This fixes issue #475
2018-06-04 20:39:08 -07:00
David Adam
8a6fe77f71
docs: remove unneeded dashes
2018-05-31 13:07:02 +08:00
David Adam
84f5d2082a
Mark arguments as optional in read docs synopsis
2018-05-31 13:07:02 +08:00
Fabian Homborg
ff47b2dad5
[docs] Some rewording to the builtins
...
Plus some additional examples.
2018-05-14 00:36:49 +02:00
Fabian Homborg
90023e6dfb
[docs] Reword abbr
...
Move the variable discussion to a section at the bottom.
2018-05-14 00:34:56 +02:00
Fabian Homborg
b3ce3e2b7c
[docs] Reword variable expansion and cartesian product
...
This should be a bit nicer to read.
2018-05-13 23:57:16 +02:00
Fabian Homborg
7c5297e785
Merge branch 'master' into issue_4848
2018-05-11 16:06:27 +02:00
Fabian Homborg
2c312d05df
[docs] Add more subsections
...
They are great!
2018-05-08 17:26:56 +02:00
Fabian Homborg
5b1731331e
[math] Add subsection headers to the docs
...
Otherwise this is printed as "math-syntax" in the man page.
2018-05-08 17:11:48 +02:00
David Adam
21890ccac7
function: restore '%self' functionality for --on-process-exit
...
One key use of process expansion, used in currently-shipped code, is for running a function on
current shell exit.
Restore the use of %self as a valid argument (and add `self`) and document this change.
(faho: Remove bare "self")
2018-05-08 11:17:07 +02:00
ridiculousfish
d623ac5040
Add future feature flags to the documentation
2018-05-06 12:06:06 -07:00
ridiculousfish
87eb073ff9
Remove some references to ^ redirection from the docs
...
Replace these with 2>
2018-05-06 11:53:14 -07:00
ridiculousfish
762c31be87
Feature flag support for ? wildcard
...
This partially reverts 6e56637cf0
and #4520
by bringing back the ? wildcard, guarded by the qmark-noglob feature flag.
2018-05-06 11:20:15 -07:00
ridiculousfish
7cbc0c371a
Remove a "common fish problems" section in the docs
...
This wasn't really that common.
2018-05-06 11:19:58 -07:00
Fabian Homborg
1a1ee352ff
[commandline] Change "--selection" to "--current-selection"
...
Plus documentation.
Work towards #4255 .
2018-05-05 21:41:03 +02:00
Mahmoud Al-Qudsi
bd8c8ceb59
Add line-delimited read presets with --line and --all-lines
...
Refer to changes in doc_src/read.txt for more info. Closes #4861 .
2018-04-17 21:34:22 -05:00
Fabian Homborg
701259d372
Remove ":" from argparse docs
...
Also improve some of the wording.
Fixes #4871 .
[ci skip]
2018-04-10 21:26:02 +02:00
Fabian Homborg
a89e9e7ba3
Improve read docs re splitting
...
Intentionally make no mention of $IFS, because it is deprecated.
Fixes #4861 .
2018-04-10 21:26:02 +02:00
Thom Chiovoloni
25169a44ed
Add alias -s/--save
, which saves the alias.
...
Also updates the `alias` documentation to mention the `-h`/`--help` option,
which was previously undocumented.
2018-04-09 01:08:56 +02:00
ridiculousfish
6e56637cf0
Remove support for the ? wildcard
...
Fixes #4520
2018-03-31 16:54:50 -07:00
slama
f93d1c963f
removed explanation of process expansion in doc
2018-03-31 12:12:27 -07:00
Mahmoud Al-Qudsi
04b8b35a56
Document new string split --no-empty
option
2018-03-29 08:23:29 -05:00
slama
3be3f2e6a2
Update doc of wait command to reflect changes in supporting process names to wait.
2018-03-25 11:24:43 +09:00
Mahmoud Al-Qudsi
515fc509ec
Deprecate $_ in favor of (status current-command)
...
Closes #813 .
2018-03-24 11:58:19 -05:00
Mahmoud Al-Qudsi
c51abd04ff
Clean up $__fish_*dir variable names
...
Closes #4429
2018-03-12 08:34:20 -05:00
Mahmoud Al-Qudsi
315439bacc
Address minor documentation issue
...
Closes #3458
2018-03-10 07:26:40 -06:00
ridiculousfish
9a5afe3913
Clean up and document functions --handlers
2018-03-10 02:27:25 -08:00
Mahmoud Al-Qudsi
8b9a13f6ca
Update read builtin documentation to reflect --shell and --silent opt changes
2018-03-09 12:03:45 -06:00