aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Document that abbrs should be added onceGravatar Fabian Homborg2016-01-24
| | | | | While abbrs are still stored in a universal variable, it's much quicker to just add them once and not just put `abbr --add key value` in config.fish.
* Add support for brew's `desc` subcommandGravatar Dan Martinez2016-01-21
|
* Skip greeting on empty variableGravatar Fabian Homborg2016-01-18
| | | | | | It used to be that way and we recommend `set fish_greeting` (i.e. set to empty) in the docs - possibly since we check if the variable is defined on upgrade.
* Clean up completion removalGravatar ridiculousfish2016-01-16
| | | | | Rather than passing a triple of short, long, is_old, pass an option as a string and then a type
* Mark a bit of code as unreachableGravatar ridiculousfish2016-01-16
|
* Simplify locking in complete.cppGravatar ridiculousfish2016-01-16
|
* Clean up complete_entry_opt_tGravatar ridiculousfish2016-01-16
| | | | | | | Rather than storing short and long options separately, using a complicated set of invariants, store them in a single string and use an explicit type complete_option_type_t to track how they are interpreted.
* Remove short_opt_str from completion_entry_tGravatar ridiculousfish2016-01-15
| | | | | | | | | This was a "cache" of dubious value that was also very confusing. The idea was to express in one place all of the short options that were allowed for a command, in a big string. But it's simpler to just construct that on-demand by walking the list of complete_entry_opt_t. Also remove some other dead code as part of cleanup.
* Clean up short_ok in completionsGravatar ridiculousfish2016-01-15
| | | | Preparing to remove short_opt_string
* Tweak language and styling of background color text in fish_configGravatar ridiculousfish2016-01-14
|
* respond to feedbackGravatar Kurtis Rader2016-01-14
|
* improve set_color and theme color documentationGravatar Kurtis Rader2016-01-14
| | | | | | | | | This is meant to make it clear that fish cannot control the terminal window background color. It also augments the set_color documentation to describe how it decides which color the terminal can display. Resolves #2421. Resolves #2184.
* Add all boolean values to pacmd completionGravatar Fabian Homborg2016-01-14
| | | | PA accepts "0", "false" and "off" (among others) for false also for suspend-*.
* Add completions for Pulseaudio's pacmdGravatar Fabian Homborg2016-01-14
| | | | | | | To implement this mostly as a wrapper around pactl, we add the list of commands for this to that. It's 90% the same anyway. (This means that `pactl suspend ` will complete files instead of commands like `pactl banana ` would, but neither is correct)
* Only complete unloaded modules for pactl load-moduleGravatar Fabian Homborg2016-01-14
| | | | This now officially does more than the official bash completion!
* Add profiles and ports completion to pactlGravatar Fabian Homborg2016-01-14
| | | | This is now on par with the official bash completions.
* Add completion for pulseaudio's pactlGravatar Fabian Homborg2016-01-14
|
* abbr: Ensure we don't split on "=" if the given separator is " "Gravatar Fabian Homborg2016-01-14
| | | | | | | This fails on e.g. an abbr that uses `env a=b`, like the included test demonstrates. Unfortunately it decreases the speed again (2s vs 2.2s vs 4s original), but correctness is more important.
* abbr tests: Don't expect quoted "--*"Gravatar Fabian Homborg2016-01-14
| | | | | | This doesn't seem necessary given we already prefix it with "--". If this is backed out, the part about using string escape also needs to be removed.
* Optimize and modernize abbrGravatar Fabian Homborg2016-01-14
| | | | | | | | | | - Replace __fish_abbr_escape with `string escape` - Don't double-parse the key - Replace IFS magic with string Together, this seems to speed it up by a factor of about 2.
* Disable 24bit-color on neovim's terminalGravatar Fabian Homborg2016-01-14
| | | | | | | | | | | | | | | Unfortunately, nvim will, even when running in a terminal that supports it, swallow the sequences whole, rendering the displayed text _white_. This means falling back to 256 colors is the lesser evil as at least a blue-ish color will display as blue while a red-ish will be red, instead of both showing white. nvim's behavior does _not_ change depending on $NVIM_TUI_ENABLE_TRUE_COLOR or any other option I could find and neovim-qt exhibits the same behavior. Fixes #2600.
* Fix typosGravatar Fabian Homborg2016-01-12
| | | | Fixes #2673.
* Stop unescaping strings with `commandline -b`Gravatar Kevin Ballard2016-01-10
| | | | | | | | The fix for #2075 inadvertently started unescaping the strings emitted from `commandline -b`. Only strings emitted with the `-o` flag are supposed to be unescaped. Fixes #2210.
* Add missing newline to swedish translationGravatar Fabian Homborg2016-01-10
| | | | Jäg alskar sverige!
* Fix typos in indexGravatar Fabian Homborg2016-01-10
| | | | Fixes fish-site#30.
* Updated some Swedish translationsGravatar Max Nordlund2016-01-09
|
* Add completions for kcmshell5Gravatar Fabian Homborg2016-01-09
| | | | A tool to open KDE Plasma settings menus.
* Add completions for aspGravatar Fabian Homborg2016-01-09
| | | | | A package information and build tool for archlinux, replacement for the ageing "abs".
* Simplify and stringify valgrind completionsGravatar Fabian Homborg2016-01-09
| | | | These used _eval_ when a simple variable capturing would have sufficed.
* Prevent line-full-of-spaces in s_resetGravatar Tom Smeding2016-01-08
| | | If you have a prompt preceded by a new line, you'll get a line full of spaces instead of an empty line above your prompt. This doesn't make a difference in normal usage, but copying and pasting your terminal log becomes a pain. This commit clears that line, making it an actual empty line.
* Add completions for the haskell 'stack' build toolGravatar Aurélien Deharbe2016-01-08
|
* hg_prompt: Use string match -q instead of redirectionGravatar Fabian Homborg2016-01-08
|
* Add new named colors to webconfigGravatar Fabian Homborg2016-01-08
| | | | | | | The 'br' variants were added in 0a0acc8, but not to named_colors in webconfig.py. Fix this oversight.
* Shorten some of the language in random docsGravatar ridiculousfish2016-01-07
|
* clarify the documentation of builtin randomGravatar Kurtis Rader2016-01-07
| | | | | | | | | The random builtin command may or may not produce values with a truly random distribution. So make the documentation reflect that reality. Also, make the command consistent with similar shells (e.g., bash, zsh) which produce a range of [0..32767]. Resolves issue #1272.
* Don't resolve paths for files run from argvGravatar ridiculousfish2016-01-03
| | | | | | | | | Before this change, `fish ./test.fish` would fully resolve the relative paths and symlinks of test.fish, as reported by `status -f`. However `source` would not. With this change, both cases return relative paths. `realpath` may be used by scripts to resolve them. Fixes #2643
* Pass a struct stat by const reference instead of by valueGravatar ridiculousfish2016-01-03
|
* Pass the full argv to the NixOS command-not-found handlerGravatar Nathan Zadoks2016-01-03
| | | | | | | This patch is currently floated from the NixOS side as part of https://github.com/NixOS/nixpkgs/pull/12000, but prior versions of the hook ignore anything but the first argument anyway, so this is backwards-compatible.
* Tweak `complete` docs againGravatar Kevin Ballard2016-01-01
| | | | | | * Add a note to the `--wrap` docs saying that wrapping only works when specifying completions for commands, not for paths. * Add more info about how `--arguments` is handled.
* Update the docs for `complete`Gravatar Kevin Ballard2016-01-01
| | | | | | | | | | | | | | * Indicate which options can be repeated in the usage lines. * Reorder the options in usage slightly to group better. * Reorder the option descriptions to match the order as seen in usage. * Update some of the option descriptions. * Fix the documentation for -C to show that it must be `-CSTRING` instead of `-C STRING`. * Document the behavior of `-C` with no argument. * Tweak some of the explanatory text after the option list. * Delete `--authoritative` and `--unauthoritative` from the documentation entirely. Those options appear to not actually do anything in the new parser.
* hg prompt: Throw away `string match` inputGravatar Fabian Homborg2015-12-31
| | | | This would print redundant characters
* hg prompt: Fix indentationGravatar Fabian Homborg2015-12-31
|
* hg prompt: Make display slightly nicerGravatar Fabian Homborg2015-12-31
| | | | | | The "/" between branch and bookmark might be mistaken for a path. Parens (like the git prompt) make it look a bit more like a unit.
* Optimize hg promptGravatar Fabian Homborg2015-12-31
| | | | Mainly replace hg calls since python is slow to start.
* Include mount helpers in filesystem completionGravatar Fabian Homborg2015-12-30
| | | | | | Probably not a thing on OSX, but this should print nothing then. On linux, it helps detect e.g. ntfs-3g.
* Immediately define command-not-found handlerGravatar Fabian Homborg2015-12-30
| | | | | | | | | | | This skips the weird dance where we'd define a simple handler and then later overwrite with a fancier one, once the first event came in. It turns out that isn't necessary, as it doesn't actually improve startup speed because the checks needed to define fancier handlers are fast. In case we are non-interactive, still define the simple handler, and keep the default handler for users to switch to.
* git completion: Complete commits for all branchesGravatar Fabian Homborg2015-12-30
|
* Use \$ and \^ instead of their unicode codesGravatar Maxim Gonchar2015-12-30
|
* Update visual vi key bindingsGravatar Maxim Gonchar2015-12-30
| | | | | | * Add home/end, $/0 keys * Add (c)hange key * Add j/k keys for up/down
* Remove temporary set_default functionGravatar Fabian Homborg2015-12-30
| | | | | | This could potentially delete a user-defined set_default on first start. It's also trivially done with set -q var; or set -U var val.