aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.c
Commit message (Collapse)AuthorAge
* Make fish avoid iterating through user list when completing file part of ↵Gravatar axel2009-02-03
| | | | | | directory starting with tilde. Also add a timeout to the directory iteration, to protect against humongously large user databases. darcs-hash:20090202224645-ac50b-353047a73e4d6f494f470fe2ea6c4a34b486d302.gz
* Handle case insensitive completions of variables betterGravatar liljencrantz2008-01-14
| | | | darcs-hash:20080114010032-75c98-6e570c2b095baeb2ed2ee4d09e32f4e7d6ae47de.gz
* Add canse insensitive tilde completionGravatar liljencrantz2008-01-14
| | | | darcs-hash:20080113193221-75c98-169804fe128001f73eaee6fab28bfb99dca7c93e.gz
* Fix completion bug - case insensitive competions of command names sometimes ↵Gravatar liljencrantz2007-10-28
| | | | | | got the path prepended to them darcs-hash:20071028090605-75c98-b623c6bf3f5a5144cdecaf0c005d4acb980e33f1.gz
* Use wcscmp instead ofGravatar James Vega2007-10-14
| | | | darcs-hash:20071013212606-35ec8-ba25df01017fb1c272ea9dae059fb4245e4c02da.gz
* Replace variadic functions like sb_append and contains_str with variadic ↵Gravatar liljencrantz2007-09-29
| | | | | | macros without a sentinel. darcs-hash:20070928213227-75c98-2e7b06242acfd5fd0bf02ce77c41d52374f2363a.gz
* Spelling fixes from Chris RebertGravatar axel2007-08-02
| | | | darcs-hash:20070801173524-ac50b-760d9ddf0e68aa24cd570b542824a7f2b3248ff5.gz
* Move keyword detection code to separate fileGravatar axel2007-04-22
| | | | darcs-hash:20070422095026-ac50b-77a840e2830370f46b7a48fd8863095d2cd7a5f0.gz
* Change output format of complete -C to make writing case insensitive command ↵Gravatar axel2007-04-21
| | | | | | specific completions more transparent darcs-hash:20070420195506-ac50b-b5f56bb2964e65d13abfb9281ce26db2b8c341b7.gz
* Fix bug where case insensitive file completions would get directory ↵Gravatar axel2007-03-25
| | | | | | components removed darcs-hash:20070324190738-ac50b-2f94de910083eae1fe563284b9953071df706072.gz
* Do not flag a lone '-' as an error. Many commands accept it.Gravatar axel2007-03-24
| | | | darcs-hash:20070324111455-ac50b-aaee0e9c80c3e57b1f0b5f421c80ed599d5c1e1b.gz
* Fix performance bug in command description lookup - it was performed once ↵Gravatar axel2007-03-18
| | | | | | for every element in PATH. Thanks to Tassilo Horn for the bug report. darcs-hash:20070317225611-ac50b-5df5227ddd88747781c981ed34a80844391573d1.gz
* Initial checkin of code for using case insensitive completion as a fallback ↵Gravatar axel2007-03-01
| | | | | | for regular completion. Some types of completions don't yet support the feature. darcs-hash:20070228214327-ac50b-9b5c69a1c3e0c11b560f8c61be0441d2ee9d6404.gz
* Various minor codee updates. Dead code removal, comment tweaking. Spelling ↵Gravatar axel2007-02-25
| | | | | | fixes, etc. darcs-hash:20070225111738-ac50b-9656f807d2e41ebb06a43e10925834420740e20d.gz
* Second round of bug fixes and minor code improvements after the completions ↵Gravatar axel2007-02-25
| | | | | | struct update. Fix space insertion issues on command specific completions. darcs-hash:20070225103715-ac50b-5aaaa1c1c6ed1084ba68841fb70cc23c84f19806.gz
* Round of bug fixes and minor code improvements after the completions struct ↵Gravatar axel2007-02-25
| | | | | | update. Moves the file description code to wildcard.c, where it was actually used. Simplifies the memory allocations in that code significantly. Makes sure directoriy names don't get a space inserted after the completion. darcs-hash:20070225090524-ac50b-4d095bf8da7c788a7828e707556edbdc0bbf5000.gz
* Fifth phase of using a real struct for passing around completions - make ↵Gravatar axel2007-02-24
| | | | | | expand.c and wildcard.c use the struct internally. This makes all completion code use the new struct. darcs-hash:20070224081131-ac50b-aba4ff255c6dc1ce9ad375d6cd1acde919c7cbd6.gz
* Fourth phase of using a real struct for passing around completions - make ↵Gravatar axel2007-02-19
| | | | | | expand_string return a completion_t struct. Also make the reader sort and remove duplicates again darcs-hash:20070218232520-ac50b-e23339ec5bba673681eced110e1b0b344eb5d976.gz
* Third phase of using a real struct for passing around completions - make all ↵Gravatar axel2007-02-18
| | | | | | of complete.c use the completion_t struct darcs-hash:20070218120841-ac50b-ae97122e9c9922271e93f9b7dd8808072820e873.gz
* Second phase of using a real struct for passing around completions - make ↵Gravatar axel2007-02-17
| | | | | | variable, user and command completion use the completion_t struct darcs-hash:20070217110555-ac50b-8f08ade57885bc2ee17a07f5e789368e7dad9421.gz
* First phase of using a real struct for passing around completions - only use ↵Gravatar axel2007-02-09
| | | | | | it on things returned by complete(), e.g. use it in the reader darcs-hash:20070209093350-ac50b-d91fe87be4612a56bff2139349cefa28a504cbb7.gz
* Fix bug where fish would randomly assume completions are authorativeGravatar axel2007-02-09
| | | | darcs-hash:20070209093237-ac50b-d6ccbddf652a8307c8fd43406fc0ad059a2ba834.gz
* Make parsing of --authorative switch for complete builtin more logical. Fix ↵Gravatar axel2007-01-28
| | | | | | bug with previous approach causing some completions to be ignored. darcs-hash:20070128134059-ac50b-de53eb223939fbdf0d247dfbe343c62fc31cce11.gz
* Make it possible to specify the -u switch tom complete without actually ↵Gravatar axel2007-01-28
| | | | | | specifying any new completions, since it affects all previous completions darcs-hash:20070128032416-ac50b-93b943d712ac072f1bdb7f568e8064f73ffb85e0.gz
* Make get_desc_buff variable functions local static instead of globalGravatar axel2007-01-27
| | | | darcs-hash:20070127020924-ac50b-0dfd72f6c30a82adc9500020df4b7bafb8d6dd56.gz
* Drop unneeded generic descriptions for completion of functions and builtins. ↵Gravatar axel2007-01-27
| | | | | | Add description for count. darcs-hash:20070127020752-ac50b-62dba47967cac04cd242894bfaa03116461883f3.gz
* Fix crash in tab completion code when completing an imcomplete backsalsh escapeGravatar axel2007-01-27
| | | | darcs-hash:20070126171413-ac50b-a9338dc73863381f2b22e09fb8b5e711f64b8f29.gz
* Correctly unescape tokens when performing switch completionGravatar axel2007-01-19
| | | | darcs-hash:20070118164528-ac50b-fcaa59d247c4c6b430ab47b293d5eb173a97e9fc.gz
* Fix completion bug where fish would refuse to provide completion strings for ↵Gravatar axel2007-01-16
| | | | | | '--' darcs-hash:20070116015938-ac50b-353566d9fd8984cabd56127a9088d57695e2b7ba.gz
* Minor code edits - show user name when completing home directories and minor ↵Gravatar axel2007-01-11
| | | | | | code simplifications darcs-hash:20070110173445-ac50b-40fd22ba766239dcfe6797155a852591b76f9253.gz
* Do not complete using switches after a '--' has been encounteredGravatar axel2007-01-10
| | | | darcs-hash:20070110124528-ac50b-111f01af0701f2fcc2bd22a7666b74497835356a.gz
* Two very minor code touch upsGravatar axel2007-01-08
| | | | darcs-hash:20070107142430-ac50b-20cd4fe96c03c052bb6fb5c07ce207a534e86498.gz
* Only complelete valid command types as subcommands for 'command' or ↵Gravatar axel2006-12-14
| | | | | | 'builtin' builtins. Also make sure that the '--' switch is understood by the completions darcs-hash:20061214000326-ac50b-3ee9130ebb3fcc9b2723686945cfca055c4f44a4.gz
* Minor code tweaks. Move a few deeple nested pieces of code to their own ↵Gravatar axel2006-12-14
| | | | | | functions. There are lots of other places where this should be done as well. darcs-hash:20061213235838-ac50b-c3bedea3017910cc4f0d257ad6ee1da6b76efd12.gz
* Minor documentation, indentation tweaksGravatar axel2006-11-30
| | | | darcs-hash:20061129142102-ac50b-0ae69ec0878a54092f16261b314b34ef4eeeb5ba.gz
* Add --without-gettext switch to optionally disable gettext supportGravatar axel2006-11-30
| | | | darcs-hash:20061129141822-ac50b-64a78e7a3594827abe5024fdbf7d4c79ac21162c.gz
* Make completion descriptions on symlinks to directories have their own ↵Gravatar axel2006-11-23
| | | | | | description darcs-hash:20061123104145-ac50b-6b48de9c46593312d9c65368d17a45999d197e4a.gz
* Fix bug where tab completions for implicit 'cd' would ignore symbolic links ↵Gravatar axel2006-11-23
| | | | | | to directories darcs-hash:20061123104023-ac50b-7245f70e0f6fbbc97358e32c6dc7ca5258f24a53.gz
* Don't intern as much completion data - this helps reduce memory usage when ↵Gravatar axel2006-11-16
| | | | | | autounloading darcs-hash:20061116130833-ac50b-b19887dc36b16476bb3b2a1593b23dd3325187ee.gz
* Only do command description lookup if we have non-directory commandsGravatar axel2006-11-16
| | | | darcs-hash:20061116130400-ac50b-47b7159276d607aab8c4a8d52a9c8a60a3f77819.gz
* Try to avoid the 'Gravatar axel2006-11-08
| | | | darcs-hash:20061107181911-ac50b-fda6044a81b3a09707f17d4017c2c3dacf4e1801.gz
* Use the _t suffix for typedef:ed structs in complete.cGravatar axel2006-10-24
| | | | darcs-hash:20061024110352-ac50b-30768be6a11d9a5935be479fbdb430a42b0a95b9.gz
* Fix a number of bugs found using the warnings generated by earlier patchGravatar axel2006-10-20
| | | | darcs-hash:20061019153603-ac50b-4efb1ad1fe2cbe693a921648a0616a3d258d7933.gz
* First stab at directory transition. Test with care...Gravatar axel2006-10-19
| | | | darcs-hash:20061019115023-ac50b-30c3fd51d8af8a616d63dfcac39370d7fe6d144e.gz
* Skip command description lookup when no commands where foundGravatar axel2006-10-19
| | | | darcs-hash:20061018155151-ac50b-5562479da23b89571f91ae1e2ed15e640ef0a094.gz
* Fix bug in command description lookup code causing missing descriptions when ↵Gravatar axel2006-10-19
| | | | | | command is given with a path darcs-hash:20061018155059-ac50b-40936e573c07deb6b159a16d843f02ed60e79b49.gz
* Fix a few places where uncasted 0 was used as a null pointer in vararg ↵Gravatar axel2006-10-08
| | | | | | functions, causing potential crashes on 64-bit platforms darcs-hash:20061008132759-ac50b-23fe4f70a5143b8b187780403d8d21fb69c3e83f.gz
* Minor code cleanupGravatar axel2006-10-05
| | | | darcs-hash:20061004214204-ac50b-e1529fcedb1665f9871a95eba293a4a3c1150464.gz
* If no completions have been found, use file completion even if command ↵Gravatar axel2006-08-27
| | | | | | specific completions have disabled file completions. Suggested by MArtin Bähr. darcs-hash:20060827005740-ac50b-41c3bf2bb91bcfc0122c317bcc2aca2061cd019e.gz
* Fix minor memory leak in completion codeGravatar axel2006-08-26
| | | | darcs-hash:20060826021948-ac50b-6fecba2056e47cb7c4e8499f2a51e1c0c23d0757.gz