aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Add missing "Universal Variables" to tutorial.hdrGravatar Nyanpasu2016-03-22
|
* implement swap-selection-start-stop functionGravatar Federico Ferri2016-03-20
| | | | | | | | | The swap-selection-start-stop function goes to the other end of the highlighted text, the equivalent of `o' for vim visual mode. Add binding to the swap-selection-start-stop function, `o' when in visual mode. Document swap-selection-start-stop, begin-selection, end-selection, kill-selection.
* fix w, e (with a trick to cope with big-words)Gravatar Federico Ferri2016-03-20
|
* fix handling of non-ASCII chars in C localeGravatar Kurtis Rader2016-03-20
| | | | | | | | | | | | The relevant standards allow the mbtowc/mbrtowc functions to reject non-ASCII characters (i.e., chars with the high bit set) when the locale is C or POSIX. The BSD libraries (e.g., on OS X) don't do this but the GNU libraries (e.g., on Linux) do. Like most programs we need the C/POSIX locales to allow arbitrary bytes. So explicitly check if we're in a single-byte locale (which would also include ISO-8859 variants) and simply pass-thru the chars without encoding or decoding. Fixes #2802.
* add \r equivalent bindingGravatar Kurtis Rader2016-03-20
| | | | | | | Add a binding that was overlooked by commit d65c63322ef52443b372c3c49dbd3584596fed6b. Fixes #2834
* Add `--no-index` option completion for `git diff`Gravatar Cody Frazer2016-03-20
|
* Fix acpi check in nim promptGravatar Fabian Homborg2016-03-20
|
* robbyrussell prompt: Check for git/hg existenceGravatar Fabian Homborg2016-03-20
| | | | Fixes #2826
* Merge branch 'master' of github.com:fish-shell/fish-shellGravatar Kurtis Rader2016-03-18
|\
* | make alt-L output respect multi-line promptsGravatar Owen Richardson2016-03-18
| | | | | | | | Fixes #718
* | env_universal_common: use uid_t in geteuid checksGravatar David Adam2016-03-18
| | | | | | | | | | | | | | | | | | The u_int typedef fails to compile on all platforms (e.g. Windows). It is part of the code imported from tmux. Update it to the SUS-standard uid_t. Closes #2821.
| * env_universal_common: use uid_t in geteuid checksGravatar David Adam2016-03-18
|/ | | | | | | | | The u_int typedef fails to compile on all platforms (e.g. Windows). It is part of the code imported from tmux. Update it to the SUS-standard uid_t. Closes #2821.
* parse_execution.cpp: Remove line continuationsGravatar Andreas Nordal2016-03-17
| | | | My IDE (Kdevelop 4.7.3) didn't tackle them.
* Improve error handling around fchownGravatar Jeff Kowalski2016-03-12
| | | | | | | | | Address the feedback from the prior commit: - Change the sense of return value testing to match more common comparison idiom - Test result of fchmod as well as fchown - Change sense of return value testing around wrename as well - Include errno where possible in error message
* Handle return values from fchownGravatar Jeff Kowalski2016-03-12
| | | | | | | | | | | The function fchown is annotated with warn_unused_result. As formerly used in the code, it would emit a compiler warning ```warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result]``` This commit notes the return value and emits appropriate error/logging messages if the call fails, creating more traceable results and satisfying the compiler.
* date and uniq completions for OS X.Gravatar lordlycastle2016-03-12
|
* Move code in etc/config.fish to share/config.fishGravatar Fabian Homborg2016-03-09
| | | | | | | instead add a bit of information on how fish's configuration works for the admin to etc/config.fish. This means that fish is fully functional without /etc, which might be nice for "stateless" systems.
* assume getopt/getopt_long is availableGravatar Kurtis Rader2016-03-08
| | | | | | | | | | | There is no longer a good reason to detect whether or not getopt_long() is available. All UNIX implementations we're likely to run on have it. And if we ever find one that doesn't the right thing to do is not fallback to getopt() but to include the getopt_long() source in our package like we do with the pcre2 library. Since it's licensed under LGPL we can legally do so if it becomes necessary. This partially addresses issue #2790.
* Document more bind functionsGravatar Fabian Homborg2016-03-06
| | | | Fixes #2534 as backward-kill-path-component is now documented.
* Update dpkg completions to complete commonly used optionsGravatar David Adam2016-03-06
| | | | Closes #2798.
* Don't set locale to en_US.UTF-8 unconditionally.Gravatar David Adam2016-03-06
| | | | | This is an unwise assumption, both for en_US and UTF-8; the fallback C locale should be used instead.
* fish.spec: dependency on net-tools/hostname depending on platformGravatar David Adam2016-03-06
| | | | | | Closes #2190. [ci skip]
* expand_string should not return any results on errorGravatar ridiculousfish2016-03-05
| | | | Fixes #2796
* Save a few string allocations when importing environment variablesGravatar ridiculousfish2016-03-05
|
* Prefer the first, not last, of any env var duplicatesGravatar ridiculousfish2016-03-05
| | | | | If envp contains duplicate environment variables, use the first value, not the last value. Fixes #2784.
* A few fixes suggested by Coverity ScanGravatar ridiculousfish2016-03-03
|
* Fix stylistic nit in glob documentationGravatar Fabian Homborg2016-03-03
| | | | The test is unnecessary.
* Remove "w/o Background Color" text from Set Theme button in fish_configGravatar ridiculousfish2016-03-02
| | | | | This is important information but the Set button is the wrong place to put it.
* Tweak UTF8 decoding interfaceGravatar ridiculousfish2016-03-02
| | | | | | | | Previously, when decoding UTF-8, we would first run through the array to compute the correct size, then allocate a buffer of that size, then run through the array again to fill the buffer, and then copy it into a std::wstring. With this fix we can copy it into the string directly, reducing allocations and only requiring a single pass.
* Migrate abbrs from =-separated to space-separatedGravatar Fabian Homborg2016-03-02
| | | | | | | | | We silently upgrade existing abbreviations and change the separator when saving. This does not yet warn when the user is using the old syntax. Resolves #2051
* Check ssh's KnownhostsFiles in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | | | | | These are an additional source of information Thanks to @sysbot (#2313) for the inspiration. This also stringifies the ssh_config reading
* print_hostname: Avoid matches in fstab comments harderGravatar Fabian Homborg2016-03-02
|
* Stringify reading nfs in print_hostnamesGravatar Fabian Homborg2016-03-02
|
* Ignore zero-ips in print_hostnamesGravatar Fabian Homborg2016-03-02
| | | | This would be a lot of useless options for those who block via hosts.
* history.fish: Fix input handlingGravatar Jaime Marquínez Ferrándiz2016-03-02
| | | | Pass the input to 'string', it was accidentally removed in fcdc6a48c0bbdc796975db8d0b7f32434d86d249.
* reduce number of Unicode private-use charactersGravatar Kurtis Rader2016-02-28
| | | | | | | | | This narrows the range of Unicode codepoints fish reserves for its own use from U+E000 thru U+F8FE (6399 codepoints) to U+F600 thru U+F73F (320 codepoints). This is still not ideal since fish shouldn't be using any Unicode private-use codepoints but it's a step in the right direction. This partially addresses issue #2684.
* Clarify example in $PATH tutorialGravatar Fabian Homborg2016-02-29
| | | | See #2777
* Ditch __fish_sgrep in obnam completionsGravatar Fabian Homborg2016-02-28
|
* Try to clarify test documentation for newbiesGravatar Fabian Homborg2016-02-28
| | | | See #2773
* Use command which in typeGravatar Fabian Homborg2016-02-28
| | | | | | | | Turns out some shells will alias which to be something function-aware, but doing this on fish would blow up because it would call type which would then call which which would then call type.... Fixes #2775
* Eliminate narrow_string_rep_tGravatar ridiculousfish2016-02-28
| | | | | | | | | | This was used to cache a narrow string representation of commands, so that if certain system calls returned errors after fork, we could output error messages without allocating memory. But in practice these errors are very uncommon, as are commands that have wide characters. It is simpler to do a best-effort output of the wide string, instead of caching a narrow string unconditionally.
* Re-use the parse tree generated during error detection for executionGravatar ridiculousfish2016-02-28
| | | | | | | Prior to this fix, read_ni would use parse_util_detect_errors to lint the script to run, and then parser_t::eval() to execute it. Both functions would parse the script into a parse tree. This allows us to re-use the parse tree, improving perfomance.
* Allow parse_execution_context to take ownership of a parse treeGravatar ridiculousfish2016-02-28
| | | | | | Introduces a new template moved_ref which is like an rvalue reference. This allows passing around objects while being explicit that the receiver may acquire ownership. This will help reduce some allocations.
* Add missing #include guards in FISH_PAGER_HGravatar ridiculousfish2016-02-27
|
* Remove unused MESS_SIZE defineGravatar ridiculousfish2016-02-27
|
* Remove some unnecessary statics and a silly #define constGravatar ridiculousfish2016-02-27
|
* Mark a bunch of constructors as explicitGravatar ridiculousfish2016-02-27
| | | | This prevents undesired implicit conversions
* Make expand_argument_list a static functionGravatar ridiculousfish2016-02-27
| | | | It doesn't use any properties of parser_t
* Eliminate parser_t::show_errorsGravatar ridiculousfish2016-02-27
| | | | Errors are now unconditionally shown
* Eliminate parser_type_tGravatar ridiculousfish2016-02-27
| | | | It was never fully implemented and wasn't used for anything