aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
Commit message (Collapse)AuthorAge
* Improve dangerous/undefined PID expansion behaviorGravatar Ryan Hileman2013-09-22
| | | | | | | | | | | | | | | | | | | | | | | | 1. Use Bash-like expansion for empty searches (when you just use a '%' by itself). '%' will now *only* match the last valid backgrounded process. If there are no such processes, an expansion error will be generated. '%' by itself would previously match either *all* backgrounded processes, or failing that, all processes owned by your user. If you ever tried to run `kill -9 %`, it would either kill all backgrounded processes or *all* of your processes. I'm not sure why anyone would ever want that to be a single keystroke away. You could almost typo it. As a result, `fg %`, `bg %`, `kill %`, etc will all operate on the last process touched by job control. 2. Don't run 'by-name' matches when the search term is numeric. This prevents you from running a command like `kill %1` and accidentally killing a process named something like "1Command". Overloaded behavior can be dangerous, and we probably shouldn't play fast and loose with expansion characters that generate process IDs.
* Don't do completions or autosuggestions for commands with wildcards.Gravatar ridiculousfish2013-09-11
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/785
* Adjust prefix completions to sort alphabetically instead of by length.Gravatar ridiculousfish2013-08-31
| | | | | Other completions are still sorted by length. https://github.com/fish-shell/fish-shell/issues/923
* Initial abbreviation work. Tests currently fail.Gravatar ridiculousfish2013-07-19
|
* Make parse_util_locate_cmdsubst return the innermost command substitution ↵Gravatar ridiculousfish2013-07-17
| | | | | | instead of the outermost. Fixes https://github.com/fish-shell/fish-shell/issues/913
* Conditionally include sys/sysctl.hGravatar Ian Ray2013-06-01
|
* Formatting and style updatesGravatar ridiculousfish2013-05-05
|
* Fix for issue where tab completing an empty string would produce no resultsGravatar ridiculousfish2013-04-21
|
* Teach case-insensitive completions about tildes. Fixes ↵Gravatar ridiculousfish2013-04-07
| | | | https://github.com/fish-shell/fish-shell/issues/647
* Add some headers to fix the build on OpenBSDGravatar ridiculousfish2013-03-11
| | | | https://github.com/fish-shell/fish-shell/issues/616
* Make subcommands modify $status, and make builtin_set not modify status ↵Gravatar ridiculousfish2013-01-31
| | | | | | | unless it fails https://github.com/fish-shell/fish-shell/issues/547 https://github.com/fish-shell/fish-shell/issues/214
* Fix spelling: s/circut/circuit/gGravatar Cheer Xiao2013-01-24
|
* Fix two clang warningsGravatar Cheer Xiao2013-01-17
|
* FormattingGravatar ridiculousfish2013-01-12
|
* Don't call expand_home_directory from within parser_t::test - it may hangGravatar ridiculousfish2013-01-12
| | | | https://github.com/fish-shell/fish-shell/issues/512
* Hack around xdm's dumb assumption that the login shell is POSIX compliant so ↵Gravatar ridiculousfish2013-01-04
| | | | | | | we no longer kill OpenSUSE https://github.com/fish-shell/fish-shell/issues/367 Also fix some formatting
* Attempt to fix process expansion on LinuxGravatar ridiculousfish2012-12-18
| | | | Hopefully addresses https://github.com/fish-shell/fish-shell/issues/455
* Fixed compilation error in expand.cppGravatar situ2012-11-22
| | | | Fixed https://github.com/fish-shell/fish-shell/issues/401
* Fixed recursive brace expansionGravatar ridiculousfish2012-11-20
| | | | https://github.com/fish-shell/fish-shell/issues/399
* Fix indentation of switch statementsGravatar ridiculousfish2012-11-19
|
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Fix bug where underlining was failing for paths prefixed with ~Gravatar ridiculousfish2012-08-23
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/292
* Added some limited support for autosuggesting processesGravatar ridiculousfish2012-08-07
|
* Fixed a bunch of clang analyzer warningsGravatar ridiculousfish2012-08-05
| | | | Simplified some memory allocations by migrating to std::string
* More warning fixes and switching from int to long or size_tGravatar ridiculousfish2012-08-04
|
* Additional warning cleanup and switching from int to size_t where appropriateGravatar ridiculousfish2012-08-04
|
* Fixed two small spelling mistakesGravatar Colin Woodbury2012-07-24
| | | | | | - Saw these during normal usage today. "parens" or "parenthesis" was spelled as "parans". Fixed two instances of this to "parenthesis".
* Renamed env_vars to env_vars_snapshot_tGravatar ridiculousfish2012-07-20
| | | | Cleanup of non-wcstring version of path_get_path
* Merge branch 'index_range'Gravatar ridiculousfish2012-07-19
|\
* | Various changes to reduce fish's compiled code sizeGravatar ridiculousfish2012-07-17
| | | | | | | | OS X release build executable size dropped from 672k to 511k
* | Fix for process completion on LinuxGravatar ridiculousfish2012-07-16
| |
* | Implemented process expansion on OS XGravatar ridiculousfish2012-07-16
| | | | | | | | | | Also fixed issue where process expansion would always fail for processes with spaces Fixes https://github.com/fish-shell/fish-shell/issues/56
* | Improve error message for $?Gravatar ridiculousfish2012-07-08
| |
* | Fix for https://github.com/fish-shell/fish-shell/issues/50Gravatar ridiculousfish2012-07-08
| | | | | | | | Unescape characters before calling parser.error
| * restore tabs instead of spacesGravatar maxfl2012-07-08
| |
| * Fix case when first index is command substitutionGravatar maxfl2012-07-08
| |
| * Fix case when second limit is a variable:Gravatar maxfl2012-07-08
| | | | | | | | echo $PATH[1..$n]
| * Add variable expand rangesGravatar maxfl2012-07-08
| | | | | | | | | | | | echo $PATH[-1..1] #now works Add tests for ranges
| * Implemented index ranges for command substitutionGravatar maxfl2012-07-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now the following code works: > echo (seq 10)[-1..1] With output: 10 9 8 7 6 5 4 3 2 1
| * miscGravatar maxfl2012-07-07
| |
| * Add index rangesGravatar maxfl2012-07-07
|/ | | | | | | | | | | | | | | Builtin 'set' now can set variable index ranges: set test[1..3] a b c #works set test[-1..-3] a b c #works if variable have enough elements set test[2..-2] a b c #works set test[1..3 -1..-2] a b c b b #works Expand now can parse index ranges. But not handle for now. TODO: * Add variable substitution index ranges: echo $PATH[-1..1] * Add command substitution index range: echo (seq 10)[-1..-4] * Add process substitution indexes and ranges: echo %vim[-1]
* Disable process expansion in autosuggestionsGravatar ridiculousfish2012-06-29
| | | | Addresses https://github.com/fish-shell/fish-shell/issues/39
* Signal handling cleanup and improved safetyGravatar ridiculousfish2012-06-04
| | | | | Fixes issue where you couldn't control-C out of a loop (https://github.com/ridiculousfish/fishfish/issues/13) Also stops doing memory allocation in the signal handler (oops) https://github.com/ridiculousfish/fishfish/issues/27
* Restore implicit cd for paths starting with ., .., or ~Gravatar ridiculousfish2012-06-02
|
* Fix to restore completions that use command substitution (like cd)Gravatar ridiculousfish2012-05-06
| | | | Fix to adopt the same escaping code for both completions and autosuggestions
* Fix lots of bugs related to the static analyzerGravatar ridiculousfish2012-03-26
| | | | Improved how screen.cpp interacts with output_set_writer()
* Remove some dead variables.Gravatar ridiculousfish2012-03-25
| | | | | Fix screwy output for invalid tilde expansion in expand.cpp Some cleanup per clang static analyzer
* A bunch of changes working towards eliminating all memory allocation after ↵Gravatar ridiculousfish2012-03-08
| | | | fork()
* Some initial work towards resolving nasty fork/pthread issues, and to having ↵Gravatar ridiculousfish2012-02-27
| | | | a per-parser job list