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
9d1129f14c
docs/tutorial: Fix duplicate sentence
...
Fixes #7024 .
2020-05-20 19:20:12 +02:00
Charles Gould
b673f32b93
Add fish debugging examples
2020-05-19 21:07:33 +02:00
Fabian Homborg
e3c4692031
docs/bind: Overhaul
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
Johannes Altmanninger
27f9920c7f
docs: sort some electric variables
2020-05-16 12:18:21 +02:00
Johannes Altmanninger
e03c375ee3
Purge remnants of process expansion, document {fish,last}_pid
2020-05-16 11:58:12 +02:00
Johannes Altmanninger
67531acc25
fish --help: remove outdated information about exit status
2020-05-16 10:33:13 +02:00
Moritz Reiter
f318da436e
Remove text duplicate in tutorial
2020-05-15 20:09:07 +08:00
LawAbidingCactus
f71737e58a
Add $fish_force_vi_cursor variable to allow cursor setting on unsupported terminals
2020-05-14 22:25:20 +02:00
Fabian Homborg
389c5e7ece
Update set --show
docs
...
See #6944
2020-04-26 17:55:17 +02:00
Fabian Homborg
1f459622cb
docs: Add fish_posterror
...
Also remove the "event will be emitted even if the command is invalid"
because it's not the case anymore, AFAICT.
See #6880 .
2020-04-25 09:25:03 +02:00
Jason Nader
18efd7dd48
Fix string split docs
2020-04-21 18:36:56 +02:00
Jason Nader
ea65db9421
string split: update docs
2020-04-20 22:39:48 +02:00
Charles Gould
2421eb6180
docs: Add completions for fish_key_reader
2020-04-19 07:06:31 +02:00
Weisi Dai
6ab2d78936
Doc: Fix dead link to POSIX man page "test".
2020-04-19 04:25:04 +02:00
Delapouite
8d20748f4a
doc: add section about directory history / stack
...
This PR also adds "See Also" section in the related commands.
2020-04-18 10:40:48 +02:00
Charles Gould
d3e720a045
docs: Use underscore in argument placeholder
2020-04-17 22:29:12 +02:00
Charles Gould
44976a5d31
docs: Remove extra colon to fix formatting
2020-04-17 22:29:12 +02:00
Johannes Altmanninger
1634a3b15c
docs: don't quote code snippets
...
The added single quotes don't look great in HTML, and it's already clear
that the monospaced text is to be interpreted literally.
2020-04-13 22:56:22 +02:00
exploide
8025e80fdb
new function __fish_preview_current_file to open file at the cursor in pager
...
bound to Alt+O by shared key bindings
created with help from @krobelus
fixes #6838
2020-04-07 22:30:05 +02:00
Soumya
639ea3caa0
Update docs for fish_kill_signal
, use "job" rather than "command"
2020-04-04 19:23:44 +02:00
Johannes Altmanninger
89c4ff9eae
Fix some inconsistencies in docs
2020-04-04 19:19:50 +02:00
Jason Nader
7cb1d3a646
Add string split --fields
2020-04-04 15:30:08 +02:00
Fabian Homborg
5bc3ec846e
docs: Reword variable scope section
...
Should be a bit easier to read.
[ci skip]
2020-04-04 13:17:12 +02:00
Delapouite
6c3732b99f
doc: add kbd markup to Tab Completion section
2020-04-04 10:45:13 +02:00
Delapouite
b8281f1284
doc: homogenize commands titles
2020-04-04 10:44:53 +02:00
Soumya
61a9cdaa74
Add $fish_kill_signal
to track the signal that terminated a command.
...
Set to `0` if the command exited normally.
2020-04-02 09:32:32 +02:00
jneem
3cf1de1b7f
Suggest string split -n for separating on spaces.
...
At least on some versions/systems, pkg-config outputs a trailing
space. Since the usually-desired behavior isn't to have a blank argument,
recommend using `string split -n` instead of `string split`.
Fixes #6836 .
[ci skip]
2020-03-30 20:42:39 +02:00
fcd
3246f736b8
docs: Fix repeated word in argparse documentation
2020-03-25 18:23:19 +01:00
Johannes Altmanninger
1547a22659
docs: remove some spurious backslashes
2020-03-23 21:02:15 +01:00
George Christou
a3436110c1
Add string sub --end
( #6765 )
2020-03-22 15:53:09 +01:00
Fabian Homborg
b61913ee74
docs: Add FAQ about unicode issues
...
This is an actual Frequently Asked Question.
[ci skip]
2020-03-21 18:01:17 +01:00
Fabian Homborg
638a66c8ff
pwd: Add "--physical" and "--logical" long options
...
These were already mentioned in the completions, and we don't
typically add short-only options.
Fixes #6787 .
2020-03-21 16:21:15 +01:00
Fabian Homborg
fd45877848
docs: Link builtins
...
When we say "the XYZ command/builtin", we should typically include a
link. The exceptions are
- In the documentation for that command - no need to link to ulimit in
the ulimit page
- When we've already linked before - not every thing needs to be
clickable, or clicking it will cause the browser to mark fifty words
as visited. This is roughly what wikipedia does for crosslinks.
[ci skip]
2020-03-21 15:31:25 +01:00
Fabian Homborg
8ddd512fba
Refine when we expand abbreviations
...
- ctrl-space will insert a space without expanding abbrs
- ")" or alt-enter will expand abbrs
Fixes #6658
2020-03-21 13:55:15 +01:00
Delapouite
401e5d1f6b
doc: add links to 'source' command from 'eval' and 'functions'
2020-03-21 13:21:38 +01:00
Charles Gould
54da5b82ba
docs: Fix spacing on key combinations
2020-03-21 13:20:34 +01:00
Charles Gould
90b46c72c8
docs: Use arrow symbols consistently
2020-03-21 13:20:34 +01:00
Charles Gould
fb6257ebc3
docs: Capitalize all keystroke characters
2020-03-21 13:20:34 +01:00
Fabian Homborg
0bb923dcec
docs: Make a fish-completions manpage
...
[ci skip]
2020-03-21 12:07:30 +01:00
Fabian Homborg
469e81e01d
docs: Remove weird ", Left"
...
This was meant as an alternative key name or something, but it's just
rendered. It seems clear what the glyph refers to and we explain it
where we explain the left/right bindings anyway.
[ci skip]
2020-03-19 19:48:24 +01:00
Fabian Homborg
ffd930e35b
docs: Format keychords as two :kbd: entries
...
Looks better in the html - see #6752 .
Also this converts the "ctrl-something" instances I could find to
proper markup.
[ci skip]
2020-03-19 19:43:49 +01:00
Delapouite
0152ba87c8
doc: make <kbd> style more prominent
2020-03-19 18:22:40 +01:00
Fabian Homborg
06b317c07f
Document funced/funcsave harder
...
[ci skip]
2020-03-19 18:02:16 +01:00
Fabian Homborg
65d277a581
docs: Move left/right arrow to shared bindings
...
This is a shared binding, so documenting it in emacs was wrong.
2020-03-15 13:24:45 +01:00
Fabian Homborg
463b9b99c6
Move ctrl-left/right forward-word to shared bindings
...
These also work in vim.
Fixes #6755 .
2020-03-15 13:24:45 +01:00
Delapouite
71243ffbdc
chore: bump copyright year 2019 → 2020
2020-03-14 14:03:09 -07:00
Delapouite
84c95324e1
doc: add links to count and contains commands in list section
2020-03-14 12:57:51 +01:00
Delapouite
8320467bb0
doc: add links between the string-split and read commands
2020-03-10 18:25:40 +01:00
Delapouite
a9eeca0d14
doc: add interlinks between break
and continue
commands
2020-03-09 19:24:38 +01:00
ridiculousfish
2e4cb15880
Add self-insert-notfirst readline command
...
This adds a new readline command self-insert-notfirst, which is
analogous to self-insert, except that it does nothing if the cursor
is at the beginning. This will serve as a higher-performance implementation
for stripping leading spaces on paste.
2020-03-07 13:31:55 -08:00
ridiculousfish
73a2097f63
Place bind.rst readline function docs in more alphabetical order
2020-03-07 13:31:55 -08:00
Johannes Altmanninger
0bb3efb1ad
Docs: add missing backticks
2020-03-07 18:33:39 +01:00
Johannes Altmanninger
da7b762f4a
Make default hg prompt leaner
...
The default hg prompt is slow on large repositories (hg status takes
2-3 seconds on mozilla-central) which is unacceptable as a default.
Mimick our git prompt: by default, only show the current branch.
If the new variable $fish_prompt_hg_show_informative_status is set,
then use the old behavior.
[ci skip]
2020-03-07 13:02:58 +01:00
Delapouite
5e3328ef1f
doc(end): mention the 'function' command and add links to all block starters
2020-03-06 22:14:53 +01:00
Fabian Homborg
17f989edf4
docs: Move completion tutorial out into its own document
...
This is useful, but it's a rather large thing that's uninteresting to
many users. So we put it into its own (top-level, for now) document.
2020-03-06 22:14:30 +01:00
Delapouite
fba6da983b
doc: add section about abbreviations in the index
...
Fix : #3861
2020-03-04 11:13:59 -08:00
Jason Nader
19e43a5df7
docs: remove undefined label
2020-03-04 10:39:55 -08:00
Delapouite
8530a4bd9e
doc: add interlinks between echo
←→ printf
commands
2020-03-03 20:01:48 +01:00
Fabian Homborg
bfc1de9ef4
argparse: Pass validation variables as exported
...
This was written before local-exported variables did anything useful.
Passing these vars as local-exports removes the need to define the
validation function with `--no-scope-shadowing` which is quite the
hack.
2020-03-01 19:28:51 +01:00
Fabian Homborg
0f34459fce
Disable svn prompt by default
...
This is apparently quite slow on large svn repos (like 40 seconds
slow), and we don't have a good thing to display other than the full
file information.
So we'll have to disable it for now.
Fixes #6681 .
[ci skip]
2020-03-01 17:04:02 +01:00
Delapouite
c0271a71d1
doc: fix 404 error for set_color command
2020-02-26 19:30:46 +01:00
Delapouite
a53405a7be
doc(ulimit): add missing backquotes around -H, -S and -a options
2020-02-26 16:33:56 +01:00
Fabian Homborg
866df1ac86
docs: Rewrite variable expansion section
...
Was a bit stuffy.
Hopefully now it should flow a bit better.
[ci skip]
2020-02-24 19:36:37 +01:00
Delapouite
dce0fda2cc
doc: add interlinks between true
←→ false
and and
←→ or
cmds
2020-02-23 23:41:16 -08:00
Delapouite
4fba8022a9
doc(abbr): adjust token names
2020-02-23 21:36:55 +08:00
Collin Styles
b7f9d9a229
Fix link in documentation
2020-02-23 09:37:40 +01:00
Fabian Homborg
1934e867f2
docs/tutorial: Fix <
typo
...
See #6640
2020-02-23 09:27:33 +01:00
Fabian Homborg
b5cbdc623d
docs/tutorial: Replace coloring markup
...
This used to use doxygen's html blocks, which don't have a *direct*
equivalent in sphinx in code blocks.
Instead of adding this to the pygments highlighter, let's just use
some roles.
It's a teensy bit awkward as we then use block styling, but we want to
add more of our own styling anyway, so we can presumably get this
somehow, and these html tags look awkward and confuse people.
Fix #6640
[ci skip]
2020-02-22 18:01:05 +01:00
Fabian Homborg
b28b14b67c
docs: Correct bind docs on escape delay
...
We never updated that after we changed the default.
[ci skip]
2020-02-22 15:00:01 +01:00
Fabian Homborg
4f4c9aac34
FAQ: Reword history substitution entry
...
[ci skip]
2020-02-21 19:52:42 +01:00
Fabian Homborg
fdfb8f67d9
FAQ: Remove non-frequently asked questions
...
I don't think I've ever had anyone ask about our usage of unicode
private use characters.
2020-02-21 19:48:20 +01:00
Fabian Homborg
415cbb9e0b
FAQ: Add question about mode prompt
...
This is actually a frequently asked question.
2020-02-21 19:45:14 +01:00
Aaron Gyes
85a0ca66e0
We no longer have two doc systems, move sphinx_doc_src back to doc_src
2020-02-19 17:00:35 -08:00
ridiculousfish
a8120359c7
Remove all of doc_src
...
See the last_doxygen tag for the last supported Doxygen build.
2019-02-24 19:40:27 -08:00
Fabian Homborg
8a93c7d0ea
abbr: Add "-q"/"--query" option
...
[ci skip]
2019-02-19 11:02:58 +01:00
Jonathan Revah
8e41e3337c
small typo in the tutorial. stderr is redirected using 2> rather than >2
2019-02-18 22:08:58 +01:00
Sabine Maennel
20c51b7da9
changes according to feedback
...
Changes according to the feedback have been made:
- What is a shell section has been moved before Installation and Start section
- Content changes have been made as suggested in both of the above sections.
2019-02-16 13:40:18 -08:00
Sabine Maennel
f6974e5a76
documentation
...
Start issue 740
- changed introduction section
- added installation section
- added what is a shell section
2019-02-16 13:40:18 -08:00
Fabian Homborg
ca5b7c0ec4
math: Allow --scale=max
2019-02-13 12:54:58 +01:00
Fabian Homborg
dc0746bc45
Let command -q
work
...
This required "-sq" to be used and errored if just "-q" was given.
Instead, if only "-q" is given, we behave just as if "-sq" was.
2019-02-12 20:34:19 +01:00
Fabian Homborg
fb7a6e5f34
Add builtin -q
...
Used to query for a builtin's existence, like `type -q` and `functions
-q` can be used to query for a things and a functions existence respectively.
2019-02-12 20:34:19 +01:00
Fabian Homborg
3382a2145f
doc_src/math: Document needed escaping harder
...
Fixes #5650 .
[ci skip]
2019-02-12 18:14:33 +01:00
Andrew Childs
fe73fbdb9a
Document that snippets are run before system config
2019-02-10 18:25:44 +01:00
Fabian Homborg
8c6ae4612b
Document fish_svn_prompt
2019-02-10 14:44:50 +01:00
Fabian Homborg
b19b1ee23a
Document fish_hg_prompt
2019-02-10 14:44:50 +01:00
Fabian Homborg
f7c981af63
Document vcs prompt
2019-02-10 14:44:50 +01:00
Fabian Homborg
c771334924
Rename __fish_vcs_prompt -> fish_vcs_prompt
...
Still keep a stub under the old name for compatibility.
2019-02-10 14:44:50 +01:00
Fabian Homborg
f2b08ec592
Document fish_git_prompt
...
Shows how convoluted the thing is, really.
2019-02-10 14:44:50 +01:00
Fabian Homborg
965fef739c
docs/tutorial: Remove mention of caret (^)
...
While this is still technically included, the tutorial should not
steer people towards it.
[ci skip]
2019-02-09 18:48:38 +01:00
Aaron Gyes
0abcf9265e
{forward,backward}-bigword on Shift-Left/Right
...
There was no way to do this at all without vi keybindings,
and it turns out shift-left/shift-right was available.
Fixes #1605
2019-02-07 13:11:34 -08:00
Fabian Homborg
7c8b444927
Reduce default escape delay
...
300ms was waaay too long, and even 100ms wasn't necessary.
Emacs' evil mode uses 10ms (0.01s), so let's stay a tad higher in case
some terminals are slow.
If anyone really wants to be able to type alt+h with escape, let them
raise the timeout.
Fixes #3904 .
2019-02-07 12:19:36 +01:00
Fabian Homborg
b03c62bd29
docs: Fix status is-command-substitution
...
The docs spoke of a short "is-command-sub" variant, which does not
exist.
Fixes #5624 .
[ci skip]
2019-02-07 08:56:30 +01:00
David Adam
4cc168ae11
Documentation for while: note updated exit status
...
From updates in #4982 .
2019-02-04 22:26:59 +08:00
Ashe Connor
c7635ed2c0
***.fish* ->
**.fish`
2019-01-31 22:03:12 +08:00
Ashe Connor
09ca268d50
fix "are equivalent" with same example
...
This was introduced in 87eb073
when ^ redirection was removed from the
docs.
2019-01-30 10:51:56 +01:00
Ashe Connor
d9d2ad1cd6
pcre2 -> regex
2019-01-30 10:47:07 +01:00