fish-shell/doc_src
ridiculousfish 5282d3e711 Add fish_emoji_width variable to control computed emoji width
This is part of an effort to improve fish's Unicode handling. This commit
attempts to grapple with the fact that, certain characters (principally
emoji) were considered to have a wcwidth of 1 in Unicode 8, but a width of
2 in Unicode 9.

The system wcwidth() here cannot be trusted; terminal emulators do not
respect it. iTerm2 even allows this to be set in preferences.

This commit introduces a new function is_width_2_in_Uni9_but_1_in_Uni8() to
detect characters of version-ambiguous width. For these characters, it
returns a width guessed based on the value of TERM_PROGRAM and
TERM_VERSION, defaulting to 1. This value can be overridden by setting the
value of a new variable fish_emoji_width (presumably either to 1 or 2).

Fixes #4539, #2652.
2018-02-25 23:38:10 -08:00
..
abbr.txt Fix typo in abbr 2017-11-03 14:09:22 +01:00
alias.txt Fix alias doc typo 2016-10-30 21:25:21 -07:00
and.txt Clarify docs on $status with and/or/begin/end 2017-08-14 18:18:10 -07:00
argparse.txt Fix typo that invalid options in argparse 2018-01-31 16:45:19 +11:00
ascii_fish.png Lossless recompress of images with pngcrush+zopfli 2016-06-18 10:03:26 -07:00
begin.txt Clarify docs on $status with and/or/begin/end 2017-08-14 18:18:10 -07:00
bg.txt Improve bg argument handling 2017-04-04 14:59:43 +02:00
bind.txt Add new pager-toggle-search input function 2018-01-30 09:58:08 -08:00
block.txt fix some documentation errors 2017-07-11 22:50:55 -07:00
break.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
breakpoint.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
builtin.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
case.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
cd.txt implement cdh command 2017-07-05 13:25:18 -07:00
cdh.txt implement cdh command 2017-07-05 13:25:18 -07:00
command.txt Include --quiet in command builtin summary 2017-10-04 12:02:52 +02:00
commandline.txt commandline docs: Add examples for the filters 2015-09-11 21:05:55 +02:00
commands.hdr.in Update menus for consistency 2014-09-07 17:35:19 +01:00
complete.txt Added option to use completion source order without re-sorting 2017-07-26 13:18:34 -07:00
contains.txt contains: add documentation regarding the use of -- 2014-10-26 19:02:03 +08:00
continue.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
count.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
design.hdr Fix typo 2017-07-18 23:37:14 +02:00
dirh.txt limit size of cd history to 25 directories 2016-03-23 13:36:00 -07:00
dirs.txt Document dirs -c 2015-09-11 11:33:04 +02:00
disown.txt implement disown builtin 2017-04-29 19:20:03 +08:00
echo.txt trivial fixes to make doxygen happy 2016-04-23 12:26:57 -07:00
else.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
emit.txt fix some documentation errors 2017-07-11 22:50:55 -07:00
end.txt Clarify docs on $status with and/or/begin/end 2017-08-14 18:18:10 -07:00
eval.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
exec.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
exit.txt Updated exit.txt reference to source 2015-03-18 16:22:29 -04:00
false.txt Make false/true into builtins 2014-09-29 13:39:35 -07:00
faq.hdr Make literal "{}" expand to itself 2018-01-07 15:00:44 +01:00
fg.txt Fix documentation 2016-07-16 20:22:41 -07:00
fish.txt Add '--init-command', '-C' to the command line switches. 2017-06-29 20:59:58 -07:00
fish_breakpoint_prompt.txt implement the fish_breakpoint_prompt function 2017-06-20 17:18:59 -07:00
fish_config.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
fish_indent.txt make fish_indent options consistent with fish 2016-07-05 20:22:44 -07:00
fish_key_reader.txt fish_key_reader: Add --version option 2017-07-04 22:55:47 +02:00
fish_mode_prompt.txt fix some documentation errors 2017-07-11 22:50:55 -07:00
fish_opt.txt implement fish_opt helper command 2017-07-12 22:38:32 -07:00
fish_prompt.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
fish_right_prompt.txt update lexicon for latest docs 2016-04-04 15:23:56 -07:00
fish_update_completions.txt Documentation update 2014-09-03 14:43:24 +01:00
fish_vi_mode.txt Deprecate fish_vi_mode 2016-04-26 15:21:15 +02:00
for.txt Hoist for loop control var to enclosing scope (#4376) 2017-09-08 21:14:26 -07:00
FORMATTING.md Improve document in FORMATTING 2017-11-06 18:46:57 +01:00
funced.txt Add ability to autosave functions at the end of funced 2018-01-18 18:03:52 +01:00
funcsave.txt docs: Improve autoloading/event documentation 2015-09-11 11:33:04 +02:00
function.txt Document fish_exit event 2018-02-19 20:21:02 +01:00
functions.txt rename --metadata to --details 2017-04-30 20:21:40 -07:00
help.txt Allow browser for help to be chosen indenpendent of $BROWSER. 2016-11-25 18:35:22 -08:00
history.txt Fix typo in history 2017-11-06 18:48:16 +01:00
if.txt Fix documentation links to or and and command 2016-05-24 17:16:30 -07:00
index.hdr.in Add fish_emoji_width variable to control computed emoji width 2018-02-25 23:38:10 -08:00
isatty.txt isatty: revert to previous behaviour 2015-02-01 18:18:34 +08:00
jobs.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
license.hdr cmake: update CheckIncludeFiles to enable C++ checks 2017-11-17 16:21:56 +08:00
math.txt [docs] Remove mention of cached variables from math 2018-02-04 23:26:21 +01:00
nextd.txt implement cdh command 2017-07-05 13:25:18 -07:00
not.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
open.txt Don't use open function if a command exists 2016-10-26 15:48:42 +02:00
or.txt Clarify docs on $status with and/or/begin/end 2017-08-14 18:18:10 -07:00
popd.txt implement cdh command 2017-07-05 13:25:18 -07:00
prevd.txt implement cdh command 2017-07-05 13:25:18 -07:00
printf.txt Fix imbalanced backticks 2016-07-16 20:22:41 -07:00
prompt_pwd.txt Fix documentation 2016-07-16 20:22:41 -07:00
psub.txt return to psub --file being the default 2017-07-17 14:33:51 -07:00
pushd.txt implement cdh command 2017-07-05 13:25:18 -07:00
pwd.txt Simplify styling 2014-09-03 14:43:25 +01:00
random.txt fix random.1 man page 2016-12-24 13:52:49 -08:00
read.txt Rename FISH_READ_BYTE_LIMIT to fish_read_limit 2017-10-14 08:33:02 -07:00
realpath.txt make fish's realpath compatible with GNU realpath 2016-10-04 20:19:44 -07:00
return.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
set.txt docs: tidy language in set notes 2017-08-09 23:25:00 +08:00
set_color.txt Add italics, dim, reverse video to set_color (#3650) 2016-12-30 11:33:25 -08:00
source.txt clarify documentation for the source command 2016-04-06 17:18:06 -07:00
status.txt Restore previous output of status current-{filename,function} 2017-10-31 18:10:46 +08:00
string.txt Remove the duplicate "(" (#4748) 2018-02-23 18:19:19 +01:00
suspend.txt Update suspend docs. When used, show how to resume 2016-07-01 01:18:07 -07:00
switch.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
test.txt Add more test examples, including expression negation 2017-10-08 02:06:48 +02:00
trap.txt document trap ... EXIT 2017-03-14 21:02:02 -07:00
true.txt Make false/true into builtins 2014-09-29 13:39:35 -07:00
tutorial.hdr [docs] PLURALIZE 2018-02-07 01:12:30 +01:00
type.txt update type to use argparse 2017-07-13 15:19:02 -07:00
ulimit.txt Various additions and fixes 2014-09-03 14:43:27 +01:00
umask.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
user_doc.css Make h1 distinguishable from h2 (#4522) 2017-11-07 00:55:20 -08:00
user_doc.footer.html Revert "Work around OS X issue with dropped #fragment in launched URLs" 2018-01-16 18:38:20 +01:00
user_doc.header.html Upgrade git:// and http:// URLs to https:// 2017-02-17 21:31:44 +08:00
vared.txt Make line length, wrapping and spacing consistent 2014-09-03 14:43:26 +01:00
wait.txt Add documentation for wait command 2017-11-16 11:28:32 -08:00
while.txt Fix documentation links to or and and command 2016-05-24 17:16:30 -07:00