aboutsummaryrefslogtreecommitdiffhomepage
path: root/wildcard.cpp
Commit message (Collapse)AuthorAge
* Fix wildcard expansion in directories without read permissionsGravatar ridiculousfish2015-06-20
| | | | | | | | | | | | When performing wildcard expansion with a literal path segment, instead of enumerating the files in the directory, simply apply the path segment as if we found the directory and continue on. This enables us to expand strings that contain unreadable directory components (common with $HOME) and also improves performance, since we don't waste time enumerating directories unnecessarily. Adds a test too. Fixes #2099
* Revert "Prepend ./ to "flag-like file" wildcard expansions and completions"Gravatar ridiculousfish2014-09-25
| | | | | | | | | This reverts commit 316d7004a3d4f6905f36301b6d5c9ebd934f11fa. Reverts fix for 1519 in light of #1713 Conflicts: fish_tests.cpp
* Make escape() return a wcstringGravatar Kevin Ballard2014-09-25
| | | | This avoids the potential for leaking the resulting string.
* Prepend ./ to "flag-like file" wildcard expansions and completionsGravatar ridiculousfish2014-09-24
| | | | | | | | If a wildcard or completion expands to a file that begins with one or more dashes, prepend a ./ to it so that it doesn't get parsed as an option. Fixes #1519
* Don't include child directories of $PATH in completionsGravatar Kevin Ballard2014-09-20
| | | | | | | | | Directories are completed like commands, because of implicit cd. However, directories found inside $PATH entries should not be completed, as implicit cd doesn't work there. Similarly, directories should not be completed after the `command` builtin. Fixes #1695.
* Clean up variable expansion, and properly handle embedded NULsGravatar ridiculousfish2014-08-24
|
* Enhance file_id_t to have richer information, to guard against inodeGravatar ridiculousfish2014-04-28
| | | | recycling on Linux filesystems
* Fix formattingGravatar ridiculousfish2013-10-26
|
* Fix certain wildcard tab completions -Gravatar ridiculousfish2013-09-11
| | | | https://github.com/fish-shell/fish-shell/issues/929
* FormattingGravatar ridiculousfish2013-06-02
|
* Support for fuzzy completionsGravatar ridiculousfish2013-05-25
| | | | | https://github.com/fish-shell/fish-shell/issues/568 https://github.com/fish-shell/fish-shell/issues/528
* Formatting and style updatesGravatar ridiculousfish2013-05-05
|
* Fix for reported "out of memory" for filesystems that return -1 as _PC_NAME_MAXGravatar ridiculousfish2013-04-26
|
* Don't block "hidden files" for wildcard expansions that aren't files (like case)Gravatar ridiculousfish2013-04-20
| | | | https://github.com/fish-shell/fish-shell/issues/667
* Teach case-insensitive completions about tildes. Fixes ↵Gravatar ridiculousfish2013-04-07
| | | | https://github.com/fish-shell/fish-shell/issues/647
* Break out COMPLETE_NO_CASE and COMPLETE_REPLACES_TOKEN into separate flags, ↵Gravatar ridiculousfish2013-03-05
| | | | in preparation for upcoming fuzzy completion work
* More cleanup based on static analysisGravatar ridiculousfish2013-02-16
| | | | https://github.com/fish-shell/fish-shell/issues/575
* merge branch 'bug-537' and branch 'bug-read-ctrlC'. This should fix both ↵Gravatar Jan Kanis2013-02-05
|\ | | | | | | #537 and #516
| * rename reader_cancel_thread to reader_thread_job_is_stale, update commentsGravatar Jan Kanis2013-02-05
| |
* | 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
| * implement reader_cancel_thread using __thread thread-local storageGravatar Jan Kanis2013-01-23
| |
| * reader_interrupted() should only be called on the main thread. fixes #537Gravatar Jan Kanis2013-01-22
|/
* More work towards incremental history. Added some tests.Gravatar ridiculousfish2012-12-02
|
* 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
|
* Make wildcards beginning with dots not match . and ..Gravatar ridiculousfish2012-10-15
| | | | https://github.com/fish-shell/fish-shell/issues/270
* Properly handle empty completions (e.g. tab-complete 'foo' with extant files ↵Gravatar ridiculousfish2012-08-20
| | | | | | 'foo' and 'foobar' should offer both) Fixes issue described in https://github.com/fish-shell/fish-shell/issues/290
* Disable file completion descriptions per ↵Gravatar ridiculousfish2012-08-15
| | | | https://github.com/fish-shell/fish-shell/issues/279
* Better handle symlink loops in recursive wildcards (**)Gravatar ridiculousfish2012-08-07
| | | | https://github.com/fish-shell/fish-shell/issues/268
* Warning cleanupGravatar ridiculousfish2012-08-04
|
* Various changes to reduce fish's compiled code sizeGravatar ridiculousfish2012-07-17
| | | | OS X release build executable size dropped from 672k to 511k
* Work towards getting function.h off of shared_ptrGravatar ridiculousfish2012-05-17
|
* Lots of modernization changedGravatar ridiculousfish2012-05-09
| | | | Removed wcsdupcat
* Fix lots of bugs related to the static analyzerGravatar ridiculousfish2012-03-26
| | | | Improved how screen.cpp interacts with output_set_writer()
* removed some string_bufferGravatar ridiculousfish2012-03-03
|
* Some work to allow completions to be evaluated off of the main threadGravatar ridiculousfish2012-02-24
|
* Removed array_list_t (!)Gravatar ridiculousfish2012-02-21
|
* Modified functions in function.h/.cpp to use wcstring instead wchar_t*, ↵Gravatar Siteshwar Vashisht2012-02-19
| | | | other files also modified to use wcstring.
* Removing some unnecessary calls to c_str(), and added ↵Gravatar Siteshwar Vashisht2012-02-18
| | | | str2wcstring(std::string) in common.cpp.
* Modified most functions in wutil.h/.cpp to use wcstring instead of wchar_t*, ↵Gravatar Siteshwar Vashisht2012-02-18
| | | | removing calls to c_str() while calling these functions in other files.
* Clean up make_path and some memory allocationsGravatar ridiculousfish2012-02-13
|
* Fix for busted completions (tab completion of directories was failing)Gravatar ridiculousfish2012-02-13
|
* Final removal of halloc. It's like Christmas Morning.Gravatar ridiculousfish2012-02-09
|
* Cleanup of wildcard.cpp, removing ad-hoc hash table and hallocGravatar ridiculousfish2012-02-09
|
* Get rid of some string bufferGravatar ridiculousfish2012-02-09
|
* Clean up exec_subshell, removing al_list from itGravatar ridiculousfish2012-02-07
|
* Removed discriminated union from block_t type, allowing us to store ↵Gravatar ridiculousfish2012-02-07
| | | | wcstrings in it
* Migrate some al_list to std::vectorGravatar ridiculousfish2012-02-02
|
* Fixed a crash doing completion of commandsGravatar ridiculousfish2012-02-02
|