aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* document the escape timeoutGravatar Kurtis Rader2016-01-21
|
* make bind unit tests more robust on travis-ciGravatar Kurtis Rader2016-01-17
| | | | | | | My previous commit failed in the travis-ci environment despite passing on my local computer. This appears to be due to expect timing out looking for the expected input. See if increasing the expect timeout slightly fixes the problem.
* allow configuring the escape delay timeoutGravatar Kurtis Rader2016-01-17
| | | | | | | | Introduce a "fish_escape_delay_ms" variable to allow the user to configure the delay used when seeing a bare escape before assuming no other characters will be received that might match a bound character sequence. This is primarily useful for vi mode so that a bare escape character (i.e., keystroke) can switch to vi "insert" to "normal" mode in a timely fashion.
* fix unit tests related to the escape timeoutGravatar Kurtis Rader2015-12-23
|
* improve handling of the escape characterGravatar Kurtis Rader2015-12-22
| | | | | | | | | | | | | | | Increase the delay between seeing an escape character and giving up on whether additional characters that match a key binding are seen. I'm setting the value to 500 ms to match the readline library. We don't need such a large window for sequences transmitted by a terminal (even over ssh where network delays can be a problem). However, we can't expect humans to reliably press the escape key followed by another key with an inter-char delay of less than ~250 ms based on my testing and research. A value of 500 ms provides a nice experience even for people using "fish_vi_mode" bindings as a half second to switch from insert to normal mode is still fast enough that most people won't even notice. Resolves #1356
* Update Xcode project settingsGravatar ridiculousfish2015-12-19
|
* Shave 4 bytes from parse_node_tGravatar ridiculousfish2015-12-19
| | | | Bitfields ftw
* Don't define a function if there's an error in function's argsGravatar ridiculousfish2015-12-19
| | | | Fixes #2519
* Allow and/or statements to attach to the if/while headerGravatar ridiculousfish2015-12-19
| | | | | | | | | | For example: if false; or true; echo hello; end will output 'hello' now. Fixes #1428
* Write tests for new if/and/or behavior (#1428)Gravatar ridiculousfish2015-12-19
| | | | They fail for now.
* Simplify parser implementationGravatar ridiculousfish2015-12-19
| | | | | | | | Rather than returning a list of productions and an index, return the relevant production directly from the rule function. Also introduce a tag value (replacing production_idx) which tracks information like command decorations, etc. with more clarity.
* Update osx/config.h for new ifdefsGravatar ridiculousfish2015-12-18
|
* git completions: Add commit hashes for `show`Gravatar Fabian Homborg2015-12-18
| | | | | | | | | | That's probably the part where commit hashes are most used, we can add the other subcommands later. This generates a _lot_ of options, so hooking it up everywhere would be unwise, though our pager helps quite nicely with filtering - typing "Branch" will filter out the commits, and typing other things will filter the subjects, which is quite cool.
* Document prompt_pwdGravatar Fabian Homborg2015-12-17
| | | | Fixes #253
* detect and provide fallback for backtrace_symbols_fdGravatar David Adam2015-12-17
| | | | Closes #2615 to fix includes on FreeBSD and provide fallback on Cygwin.
* mount completions: Support spaces in mountpointsGravatar Fabian Homborg2015-12-17
| | | | | | This turns '\040' into a space. /etc/mtab also supports other escapes ("\\" for backslash, "\011" for tab), but I can't find documentation for those in fstab.
* Port linux __fish_print_mounted to `string`Gravatar Fabian Homborg2015-12-17
| | | | | This adds a few escape sequences, but two out of the three are theoretical and will fail a bit later.
* Make informative_git prompt use vcs_prompt -> Rename it to "Informative Vcs"Gravatar Fabian Homborg2015-12-16
|
* Switch classic + git prompt to all vcsen -> Rename it to Classic + VcsGravatar Fabian Homborg2015-12-16
| | | | Keep the variable names for now.
* Make lonetwin prompt use __fish_vcs_promptGravatar Fabian Homborg2015-12-16
|
* Add __fish_vcs_prompt helper functionGravatar Fabian Homborg2015-12-16
| | | | | | | This is supposed to be used by prompts so they'll get all known vcsen integrated. For now, there's no distinction between the different vcsen.
* Merge pull request #2607 from jakwings/docGravatar Fabian Homborg2015-12-16
|\ | | | | Improve documentations (see #354)
* | restore the terminal modes before an "exec"Gravatar Kurtis Rader2015-12-15
| | | | | | | | | | | | | | | | | | When replacing the existing fish process with a new process it is important to restore the temrinal modes to what they were when fish started running. We don't want any tweaks done for the benefit of fish (e.g., disabling ICRNL mode) to bleed thru to an "exec"ed command. Resolves #2609
* | configure/docs: update sf.net to sourceforge.netGravatar David Adam2015-12-15
| | | | | | | | | | | | Closes fish-shell/fish-site#29 [ci skip]
* | Improve mount completion (now with blockdevices!)Gravatar Fabian Homborg2015-12-13
| | | | | | | | | | | | | | | | | | | | This adds blockdevices (and directories) and fixes the regexes to no longer include comments but include UUID= and LABEL=, which at least util-linux mount understands. It also shouldn't fail on systems without fstab any longer (like default OSX). Fixes #2606.
| * Doc: Link Cartesian Product in tutorial to main documentaion.Gravatar Jak Wings2015-12-14
| |
| * Doc: Introduce Cartesian Products on the main documentaion page.Gravatar Jak Wings2015-12-14
| |
| * Doc: Introduce another simple way to separate variable names from text.Gravatar Jak Wings2015-12-14
| | | | | | | | | | This can avoid the confusion between brace expansion and the cartesian product behavior of arrays, even if braces can help to do some hacks.
* | Update vte cwd on launchGravatar Fabian Homborg2015-12-12
| | | | | | | | Fixes #2418
* | Delete upstreamed docker completionsGravatar Fabian Homborg2015-12-12
|/ | | | | A better version of these has been in an upstream release, so there's no need to keep this around.
* Update makepkg completionGravatar Fabian Homborg2015-12-11
| | | | A few options were missing and --asroot has been removed
* Check that $XDG_RUNTIME_DIR is valid and accessibleGravatar Tanner Bruce2015-12-11
| | | | Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
* git completions: add missing description flagsGravatar David Adam2015-12-11
| | | | Fixes syntax error introduced in 4280df3aa2dab.
* Add __fish_svn_prompt functionGravatar Samantha Marshall2015-12-10
| | | | This refactors __fish_print_svn_rev to not depend on english locale
* Merge pull request #2595 from lordlycastle/masterGravatar Fabian Homborg2015-12-10
|\ | | | | Added OS X completions for open, and seq.
| * Added OS X completions for open, and seq. Added missing stdout redirection ↵Gravatar lordlycastle2015-12-10
| | | | | | | | to /dev/null when checking command's version.
* | Mention /etc/shells in README.mdGravatar Fabian Homborg2015-12-10
| |
* | git: Add missing options to `git clone`Gravatar mr.Shu2015-12-10
| | | | | | | | | | | | | | | | * Add missing options to `git clone` in order to make the suggestions as similar to the manual (https://git-scm.com/docs/git-clone) as possible. Signed-off-by: mr.Shu <mr@shu.io>
* | Enable 24-bit mode for selected terminalsGravatar Fabian Homborg2015-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, there's no standard way to detect support (importantly, terminfo doesn't encode it), but there's a variety of terminals that support it that we can detect. It's better than letting this functionality go to waste. Check KONSOLE_PROFILE_NAME instead of DBUS_SESSION because Konsole can be compiled without dbus support. Check ITERM_SESSION_ID's format for 24bit support This has changed since the last release, just like 24bit support. So if we check one, we get the other.
* | Remove a stale comment regarding fishdGravatar ridiculousfish2015-12-10
| |
* | Switch show_stackframe to backtrace_symbols_fdGravatar Andy Lutomirski2015-12-10
| | | | | | | | | | It's simpler and avoids calling into fprintf in contexts in which it might crash or deadlock.
* | Don't complain if do_builtin_io fails due to EPIPEGravatar Andy Lutomirski2015-12-10
| | | | | | | | | | | | | | If stdio is dead due to EPIPE, there's no great reason to spew a stack dump. This will still write an error to stderr if stdout dies. This might be undesirable, but changing that should be considered separately.
* | Merge pull request #2586 from mrshu/mrshu/add-git-cherry-pick-optionsGravatar Fabian Homborg2015-12-09
|\ \ | | | | | | git: Add more options to `git cherry-pick`
* | | Ensure interactive tty modes are set ASAPGravatar Kurtis Rader2015-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | It is critical that we ensure our interactive tty modes are in effect at the earliest possible moment. This achieves that goal and is harmless if stdin is not tied to a tty. The reason for doing this is to ensure that \r characters are not converted to \n if we're running on the slave side of a pty controlled by a program like tmux that is stuffing keystrokes into the pty before we issue our first prompt.
* | | allow \cJ (\n) to be bound separate from \cM (\r)Gravatar Kurtis Rader2015-12-08
| | | | | | | | | | | | | | | | | | | | | This makes it possible (on UNIX systems, don't know about MS Windows) to bind \cJ (\n) independently of \cM (\r, aka [enter]). Resolves #217
* | | named_color_names to reserve the right amountGravatar ridiculousfish2015-12-08
| | |
* | | "normal" should appear in set_color --print-colorsGravatar Kurtis Rader2015-12-08
| | |
* | | remove "normal" from the basic color name tableGravatar Kurtis Rader2015-12-08
| | | | | | | | | | | | | | | | | | The special token "normal" should not be in the basic sixteen color table because a) it is not a color, and b) it is special cased with the result of resetting the terminal colors (usually via a ANSI X3.64 CSI [0m sequence).
* | | add support for ANSI "bright" colorsGravatar Kurtis Rader2015-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the ANSI x3.64 "bright" colors in the basic sixteen color palette. This is especially useful when trying to use the base colors as a background color. The "bright" variants tend to be more useful as background colors compared to the non-bright variants. This also fixes a bug in so far as palette number 7 is actually grey and not white whereas palette number 15 is white. At least on the terminal emulators on which I've tested this change (Ubuntu xterm & uxterm, Mac OS X Terminal & iTerm2). Resolves issue #1464.
| * | git: Add more options to `git cherry-pick`Gravatar mr.Shu2015-12-08
|/ / | | | | | | | | | | | | * Add more options to `git cherry-pick` so that the suggested options mimic the man page (https://www.git-scm.com/docs/git-cherry-pick/). Signed-off-by: mr.Shu <mr@shu.io>