waterhouse
b1545c5ce2
'seq' should return 1, not exit 1, on bad arglist
2014-02-16 01:17:12 -08:00
ridiculousfish
de8bae3f0f
Ignore SIGPIPE in fishd. Fixes #1084
2014-02-14 16:38:44 -08:00
ridiculousfish
1fbf633817
Reimplement exec parsing. Instead of special-casing exec as a command,
...
promote it to a decoration (like 'command' or 'builtin'). This makes tab
completion and syntax highlighting treat exec's first argument as a
command and is otherwise a nice simplification. Fixes #1300
2014-02-13 10:10:49 -08:00
ridiculousfish
f733dc5eae
Fix the build by including <algorithm> header
2014-02-12 21:08:22 -08:00
ridiculousfish
503bbd85b5
Test and fix issue where, if binding X is a prefix of binding Y, and X
...
is specified before Y, then Y will never be invoked because X will
always get there first. Now instead we order bindings in descending
order by length, so that we always test the binding before any others that
prefixes it. Fixes #1283 .
2014-02-12 12:52:31 -08:00
ridiculousfish
29ddb68da4
Tests and fix to allow return to work correctly within if statements. Closes #1297 .
2014-02-12 01:39:06 -08:00
David Adam
dd49399e45
.travis.yml: reduce verbosity of IRC notifications
2014-02-11 09:47:29 +08:00
David Adam
3678f134d9
document Alt-F as well for accepting part of autosuggestion
...
Closes #1290 .
2014-02-10 17:28:47 +08:00
ridiculousfish
bbd784a2e8
Clean up old syntax highlighting code now that the new parser seems to work
2014-02-09 21:21:59 -08:00
ridiculousfish
77dbaf3aef
Fix for Python out-of-range exception when accessing Bindings tab
2014-02-09 20:19:04 -08:00
ridiculousfish
9b9ee338c1
Fix for miscoloring quote following variable name
2014-02-09 15:33:34 -08:00
ridiculousfish
5ea7f52df2
Don't complete variables when single quoted. Fixes #1023
2014-02-09 15:27:04 -08:00
ridiculousfish
414530c9c2
Partially rework profiling. Fix profiling crash with new parser. Fixes
...
1295
2014-02-09 14:04:43 -08:00
ridiculousfish
e632d39b1f
Make if statements always return success at the end, matching other
...
shells. Fixes #1061 .
2014-02-07 17:57:53 -08:00
David Adam
09054a09fa
README.md: document build and runtime dependencies better.
2014-02-06 17:51:18 +08:00
David Adam
01ec55366d
README.md: update build status image
...
(oops!)
2014-02-06 17:09:31 +08:00
ridiculousfish
e2388344b2
Use type int instead of type short
2014-02-05 19:28:27 -08:00
ridiculousfish
fd10844c2b
Unbreak C++11 due to narrowing; use non-conflicting declaration FISH_COLORS instead of COLORS; remove deprecated register type.
2014-02-05 19:23:13 -08:00
ridiculousfish
35f2302352
Pass --always to git describe to ensure we always get a version
...
number. Hopefully fixes travis-ci. See #1287
2014-02-05 16:20:09 -08:00
David Adam
e908b731ab
.travis.yml: add https://travis-ci.org/ automatic builds
2014-02-05 11:25:59 -08:00
glennj
b475325b5e
math.fish: exit if no output (e.g. from syntax error)
...
Closes #1175
2014-02-05 17:26:34 +08:00
ridiculousfish
7e769252e7
Make builtin_complete output escaped completions. Fixes #1127
2014-02-04 11:55:56 -08:00
ridiculousfish
699d78bcfe
Make the test harness output file diffs on failure
2014-02-04 11:28:29 -08:00
ridiculousfish
7d345018af
Redirect stderr of initial call to __fish_reload_key_bindings. Fixes ##1155
2014-02-03 16:46:01 -08:00
ridiculousfish
bac3b39227
Highlight the entire variable name, not just the dollar sign. Fixes #1201
2014-02-03 14:16:00 -08:00
David Adam
c168e6f870
Documented Alt-Right to accept a single word of an autosuggestion
...
See https://github.com/fish-shell/fish-shell/issues/1262
2014-02-02 21:45:03 +08:00
David Adam
27b6fe682d
Squashed commit of the following:
...
commit d81ae2665f
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 16:22:18 2014 +0300
Check for command-not-found command on suse
commit 004b794c82
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 14:04:41 2014 +0300
Fix cnf handler for Suse and Fedora
fixes #1208
2014-02-02 21:42:24 +08:00
Siteshwar Vashisht
a1b43b7a09
Fix for opening bindings tab as initial tab
...
'fish_config bindings' command should open bindings tab as initially active tab
2014-01-30 23:53:49 +05:30
ridiculousfish
bfc78186f5
Correctly initialize search_field_shown to avoid phantom search field
...
after the prompt
2014-01-30 07:59:45 -08:00
ridiculousfish
20130d89dc
Support for escaped colons in makefile targets in __fish_print_make_targets, as part of #1259
2014-01-29 15:42:52 -08:00
David Adam
8490aac025
sshfs completions: use all directories as mount points
...
Closes #1268 .
2014-01-29 13:33:27 +08:00
David Adam
8fbffe250a
__fish_print_packages: correct syntax for yum, improve yum/rpm pipelines
...
Closes #1269 (output to cache file).
Reworks the editing pipeline for both yum and rpm completions down to a
single sed command.
2014-01-29 12:47:56 +08:00
Geoff Nixon
60808a4820
Enhance/fix isatty
using command test
.
...
Presently, `isatty` only works on a handful of keywords. Here it
is rewritten to be able to take any path, device or fd number as
an argument, and eliminates errors printed to stdout.
Per discussion in #1228 , using `builtin test -c` within a pipe to
test special file descriptors is not viable, so this implementation
specifcially uses `command test`. Additionally, a note has been
added to the documentation of `test` regarding this potential
aberration from the expected output of the test utility under the
'Standards' section.
2014-01-28 11:14:54 -08:00
ridiculousfish
d5cb16aa1f
NULL -> false
2014-01-28 08:19:24 -08:00
ridiculousfish
afd6ca314c
Make COMPLETE_AND_SEARCH always show the search field. Also end paging upon
...
modifying the command line contents.
2014-01-28 07:30:05 -08:00
ridiculousfish
441522f97b
Make return not execute the selected completion in the pager, instead
...
just accept it
2014-01-27 22:01:38 -08:00
ridiculousfish
369229ea71
Make escape clear the current completion
2014-01-27 02:28:19 -08:00
ridiculousfish
15a63805d9
Make arrow keys navigate completions instead of manipulate completion
...
search field
2014-01-27 02:22:34 -08:00
ridiculousfish
7d8766980b
Support escape or up-arrow to cancel the completion search field.
2014-01-27 02:17:31 -08:00
ridiculousfish
5be3606236
Increased support for completion search field. Use btab (shift-tab) to
...
complete-and-search.
2014-01-27 00:56:13 -08:00
ridiculousfish
ce4c145f1c
Eliminate dangerous command_length() function. Use editable_line_t in a
...
few places we missed.
2014-01-26 14:55:41 -08:00
ridiculousfish
b9372944f5
Refactor reader to work on selectable 'editable_line_t' so that most
...
commands can operate on pager search field
2014-01-26 14:47:15 -08:00
ridiculousfish
f58dff62c7
Beginnings of work for search field feature of new pager
2014-01-26 00:41:30 -08:00
ridiculousfish
6d13b8bbc0
Teach down-or-search how to use down-arrow to begin pager navigation
2014-01-25 15:32:13 -08:00
ridiculousfish
2139334c36
Fix for issue where wc on OS X would produce leading spaces, causing
...
down-or-search to fail to match the case statement and therefore do the wrong thing.
2014-01-25 15:22:28 -08:00
ridiculousfish
67bb12e569
Attempt to fix the Linux build by including stdint.h
2014-01-24 18:53:12 -08:00
ridiculousfish
2d43517914
Run 'make depend' to update header dependencies
2014-01-24 18:37:04 -08:00
ridiculousfish
df60c00d16
Experimental new "inline pager" implementation, reminiscent of zsh. Pager contents now appear below the prompt and disappear when no longer needed. They can also be navigated with arrow keys or tab.
...
New pager is disabled by default for now. It can be enabled by setting the fish_new_pager variable to 1.
Work and discussed is tracked in https://github.com/fish-shell/fish-shell/issues/1264
2014-01-24 18:12:46 -08:00
ridiculousfish
0fbddb0df1
Add fish_new_pager variable to enable new pager on request, disabled by default.
2014-01-24 18:10:42 -08:00
ridiculousfish
4c5c1fc9ef
Suppress the pager progress message if the listing fits onscreen
2014-01-24 18:10:42 -08:00