aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Complain less about "bogus" PATH entriesGravatar ridiculousfish2016-04-07
| | | | | | When determining the old path, get the existing value in any scope, not just the set scope. Also only complain about absolute paths: relative paths are expected to be invalid sometimes.
* Update Xcode project for latest XcodeGravatar ridiculousfish2016-04-07
|
* fix git command in lint.fish scriptGravatar Kurtis Rader2016-04-07
|
* Remove a dead function bool_from_env_varGravatar ridiculousfish2016-04-07
|
* Correct true-color statement in set_color docsGravatar Fabian Homborg2016-04-07
| | | | | | - OSX Terminal does not support it - We do some detection
* Update osx/config.h for removed ifdefsGravatar David Adam2016-04-07
|
* pcre2: add maintainer mode and disable by defaultGravatar David Adam2016-04-07
|
* configure: remove tiny leftover from xsel buildGravatar David Adam2016-04-07
|
* clarify documentation for the `source` commandGravatar Kurtis Rader2016-04-06
| | | | Make it clear that fish 2.3.0 changed how `$argv` is initialized.
* fix setting of $argv for `source` w/no argsGravatar Kurtis Rader2016-04-06
| | | | Fixes #139
* change how redirections are formattedGravatar Kurtis Rader2016-04-05
| | | | | | | | Modify `fish_indent` to emit redirections without a space before the target of the redirection; e.g., "2>&1" rather than "2>& 1" as the former is clearer to humans. Fixes #2899
* augment the guide for contributingGravatar Kurtis Rader2016-04-05
| | | | | | | | | | Include information about how to deal with lint warnings and suppress `clang-format` reformatting of blocks of code. Move information only relevant to developers from the README.md to the CONTRIBUTING.md document. Closes #2901
* Rename "snippets" to "conf" internally, and document them as snippetsGravatar David Adam2016-04-06
| | | | Discussed in #2896.
* Fix a couple of minor issues in string examplesGravatar Mark Griffiths2016-04-05
| | | | | | | Print correct return code in 2nd example Remove syntax colouring in \cg Signed-off-by: Mark Griffiths <mark@thebespokepixel.com>
* make the string man page more readableGravatar Kurtis Rader2016-04-04
| | | | | | | I didn't notice when I merged commit cb6d5d76c8232264f66c9a1db895d9dd69d77bc3 by thebespokepixel.com that it removed the explicit wrapping in the `string` man page. That makes `man string` harder to read so reinstate the explicit wrapping.
* support making fish code match the style guideGravatar Kurtis Rader2016-04-04
| | | | | | | | This changes implements two new make targets: `style` and `style-all`. These make it easy to ensure that a change conforms to the project style guides for C++ and fish code. Fixes #571
* don't try to use st_gen (inode generation) numberGravatar Aaron Gyes2016-04-04
| | | | | | | | | Per discussion in pull-request #2891, it's not available on Linux (we just fill it with zero), and unless run as root on OS X (or other BSD system) it will be zero. Remove it from file_id_t. Also fix the initialization of the file_id_t structure. Fixes #2891
* remove unused special color "ignore"Gravatar Kurtis Rader2016-04-04
| | | | | | Resolve lint warning about unused method "rgb_color_t::ignore()". Fixes #2893
* Customisable extra configuration, completion and function directoriesGravatar David Adam2016-04-04
| | | | | | | | | | | | | | | - Add options to the autotools build to set the path for the "vendor" or "extra" configuration snippets, functions and completions directories. - Remove the vendor_completions directory from the Xcode build, as these are relocatable and compiling the paths in does not make sense. This allows packaging tools like Homebrew and Nix to use a common directory outside of the main prefix for third-party completions, and to make these available for programmatic discovery through `pkg-config`. Closes #2113
* update lexicon for latest docsGravatar Mark Griffiths2016-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #2699 Fixes issues with: * 'string' function synopsis * Redirection display issues * Better file & path detection * Rendering of % & @ chars in both html and man * @ symbol in tutorial Improves robustness by implementing an @EOL marker to prevent hold buffer dumping extra chars after the end of an expression. Added new '{{' and '}}' meta-chars for when you want curly braces in a regexp that was previously tripping up the lexicon. Improve man/html presentation consistency for * string * printf * prompt_pwd * type Use cli-styling for 'practical' examples. Add <bs> tag for presenting content with preceding backslash. Signed-off-by: Mark Griffiths <mark@thebespokepixel.com>
* fixes for cppcheck lint warningsGravatar Kurtis Rader2016-04-04
| | | | | | Refine the linting behavior. Fix several of the, mostly trivial, lint errors.
* cd completion: No description for absolute pathsGravatar Fabian Homborg2016-04-04
| | | | | This also removes the "pushd/popd" dance and only executes the CDPATH stuff when we need to.
* convert atypical env_universal_common loggingGravatar Kurtis Rader2016-04-03
| | | | | | | | | | This is a quick and dirty conversion of the atypical, and undocumented, logging done by env_universal_common.cpp to the usual `debug()` pattern. I didn't want to drop the messages because they could be useful when debugging future issues. So I simply converted them to the lowest debug level using the normal debug() function. Fixes #2887
* lint: remove or comment out unused functionsGravatar Kurtis Rader2016-04-03
| | | | | | Cppcheck has identified a lot of unused functions. This removes funcs that are unlikely to ever be used. Others that might be useful for debugging I've commented out with "#if 0".
* remove unused wgetopt() method found by lintingGravatar Kurtis Rader2016-04-02
|
* remove create_wajig_completions.py scriptGravatar Kurtis Rader2016-04-01
| | | | | | | | This script is really old and no longer works correctly. This discussion, http://comments.gmane.org/gmane.comp.shells.fish.user/4062, from over two years ago concluded it should be removed. Resolves #2881
* add make targets to lint the codeGravatar Kurtis Rader2016-04-01
| | | | Fixes #2818
* travis: move to clang 3.8 for ASan buildsGravatar David Adam2016-04-01
|
* Correction to make rule for fish_versionGravatar Laurence McGlashan2016-03-31
|
* rename make target "user_doc" to "doc"Gravatar Jak Wings2016-03-31
| | | | Fixes #2875
* remove "doc" make target and rename "user_doc"Gravatar Kurtis Rader2016-03-30
| | | | Fixes #2874
* __fish_print_packages: use libzypp builtin cache for zypperGravatar Sam Yu2016-03-30
|
* Add history --helpGravatar Fabian Homborg2016-03-30
| | | | This was probably an oversight - the builtin supports it, the function doesn't.
* clarify behavior of ** globGravatar Kurtis Rader2016-03-29
| | | | Fixes #2680
* more fish_indent cleanup for prev commitGravatar Kurtis Rader2016-03-29
| | | | | Commit dfb23c4fce11d9d0577a2cb3c9e192bc24f64c8c was supposed to incude all the edits to make the code compliant with fish_indent.
* fix regression to vi-mode \cc bindingGravatar Kurtis Rader2016-03-29
| | | | | | | Commit c0e8ad6 on 2015-10-02 to "Make vi bindings inherit the defaults" inadvertently reverted commit b6b6de3. Fix that regression. And while I hate to make "git blame" say I changed the entire file make the function adhere to fish_indent style.
* Reword: Always call suggestions sugggestionsGravatar Fabian Homborg2016-03-29
| | | | Not completions.
* Document pager searchGravatar Fabian Homborg2016-03-29
| | | | Fixes #2866.
* Document more keybindingsGravatar Fabian Homborg2016-03-29
| | | | Fixes #2866.
* travis: enable leak detection in address sanitiserGravatar David Adam2016-03-28
| | | | | | | | Since #2849 was merged, there are no further leaks detected by the address sanitiser. This makes it a good target to enable for Travis, which will enable regression testing. Closes #2851.
* Make modprobe completion more preciseGravatar Josef Gajdusek2016-03-28
| | | | | | | | Only match loaded modules when -r is specified. Also adds /lib/modules/(uname -r)/misc to the search path. This directory is used by Gentoo for package-provided modules (such as the app-emulation/virtualbox-modules)
* Fix typos: ingnore->ignoreGravatar Josef Gajdusek2016-03-28
|
* Remove an unnecessary c_str()Gravatar ridiculousfish2016-03-27
|
* Fix memory leaks at exit found in testsGravatar Andreas Nordal2016-03-27
| | | | | | | | | | This fixes all memory leaks found by compiling with clang++ -g -fsanitize=address and running the tests. Method: Ensure that memory is freed by the destructor of its respective container, either by storing objects directly instead of by pointer, or implementing the required destructor.
* Only read .fish files in the snippets directoriesGravatar Fabian Homborg2016-03-26
| | | | | This would allow us to add a README and allows users to easily disable something temporarily.
* Update README.mdGravatar CharlonTank2016-03-25
| | | | Add a command that instantly add the fish path to /etc/shells
* add yaourt completionsGravatar Bogdan Sinitsyn2016-03-24
|
* limit size of cd history to 25 directoriesGravatar Kurtis Rader2016-03-23
| | | | | | | | | | | | | | | The existing implementation grows the $dirprev array without bounds. Besides causing what would appear to be a memory leak it also makes the nextd and prevd commands more expensive than they need to be. It also makes it harder to create a useful "menu" cd command. In addition to implementing a reasonable limit on the size of the $dirprev array I've reformatted the code using fish_indent. Update the documentation to include mentions of the $dirprev and $dirnext variables as well as the limit on how much directory history is kept. Fixes 2836
* `fish --version` should write to stdoutGravatar Kurtis Rader2016-03-23
| | | | | | | | | When explicitly asking for the fish version string the information should go to stdout rather than stderr. Also, there is no reason to use exit_without_destructors() rather than exit() in that code path. We actually want the side-effects of exit() such as flushing stdout and there aren't any threads or other things that could cause a normal exit to fail when that function is run.
* Fix memory leak, error message when failing to open input fileGravatar Andreas Nordal2016-03-22
| | | | | | | | | | | | | The early return skipped all cleanup. This problem is a case for the classic "goto fail" paradigm, but this change instead makes a few adjustments to take advantage of a previously unused level of indentation to conditionally execute the success path. The error message now prints the filename instead of "open", which should be more idiomatic. Tip: This patch makes sense if viewed with `git show --ignore-space-change`.