ridiculousfish
f5442bdd4a
Fixed cd autosuggestion for absolute paths
...
Removed some unnecessary path cleanup that is_potential_path now handles
2012-05-13 20:49:14 -07:00
ridiculousfish
129525af21
Fix for https://github.com/ridiculousfish/fishfish/issues/3
...
cd's special autosuggestion was broken, now fixed. Also, there's some tests for it now.
2012-05-13 20:19:02 -07:00
ridiculousfish
9bcc7df96f
Lots of modernization changed
...
Removed wcsdupcat
2012-05-09 02:33:42 -07:00
ridiculousfish
4885842ae8
Fix to do really nice syntax highlighting of cd command where it colors paths that cannot match any directory with error color
2012-05-07 17:52:02 -07:00
ridiculousfish
4df6b599b8
Eliminate the silly autosuggest_parsed_command_t class; make it just a function
2012-05-07 17:43:05 -07:00
ridiculousfish
0c79bb6e7c
Factor is_potential_path to properly handle CDPATH
...
This will let us color cd commands better
2012-05-07 17:31:24 -07:00
ridiculousfish
1a264ab7c2
Made tests compile again
...
Renamed autosuggest_handle_special to autosuggest_special_validate_from_history
Began work to factor autosuggest_special_validate_from_history together with autosuggest_suggest_special
2012-05-07 12:55:13 -07:00
ridiculousfish
0e3eb38f11
Improved fork reporting
...
Made autosuggestion work properly for tilde expansion
2012-04-21 20:08:44 -07:00
ridiculousfish
ab536e5199
Fix for incorrectly highlighted parameters
2012-03-31 14:05:14 -07:00
ridiculousfish
c10b3017d6
Improve autosuggesting of cd command
2012-03-30 11:16:24 -07:00
ridiculousfish
3bb537c183
Fix for failing to highlight last quote (or quoted string contents)
2012-03-30 09:58:25 -07:00
ridiculousfish
0bc644abf0
Fix lots of bugs related to the static analyzer
...
Improved how screen.cpp interacts with output_set_writer()
2012-03-26 01:21:10 -07:00
ridiculousfish
5ae77b4317
For for crash when typing backslash c
2012-03-03 20:38:16 -08:00
ridiculousfish
3ead99b088
Put fish on a diet. Tracked down the biggest memory hogs and fixed them. Total allocations down by a factor of 3 or so, live allocations a few KB.
2012-03-03 15:22:03 -08:00
ridiculousfish
b17dfff3fd
Fix for out-of-bounds write in highlight_param
2012-02-29 16:14:03 -08:00
ridiculousfish
f74a82776f
Some more changes in preparation for turning on complete-based autosuggestions
2012-02-26 20:11:34 -08:00
ridiculousfish
917b4ff8bc
Fix for crash on redirections
2012-02-21 19:39:29 -08:00
ridiculousfish
4ccc197451
Fix to change highlighting functions to take wcstring& instead of const wchar_t *
2012-02-21 17:55:56 -08:00
ridiculousfish
237cf19a77
Switch to using std::vector instead of int* for colors in highlight.cpp, for better range bounds checking
2012-02-21 11:45:13 -08:00
ridiculousfish
d5c382bb1a
Piling on more code to make autosuggestion try to guess directories even when they're not in the history
2012-02-20 02:13:31 -08:00
Siteshwar Vashisht
74a7303c23
Modified functions in function.h/.cpp to use wcstring instead wchar_t*, other files also modified to use wcstring.
2012-02-19 22:55:15 +05:30
ridiculousfish
d8a9991738
Fix to avoid calling signal_block off of hte main thread
2012-02-18 23:26:39 -08:00
ridiculousfish
ca1c8243c8
Fix to prevent autosuggesting cd'ing to the current working directory
2012-02-18 21:56:30 -08:00
ridiculousfish
14b3a5be56
Changes to make autosuggestion even smarter by specially recognizing the cd command.
2012-02-18 18:54:36 -08:00
ridiculousfish
1bedc16544
Enhanced directory detection in a way we don't actually need yet
2012-02-18 18:51:11 -08:00
Siteshwar Vashisht
c9f4e91df8
Modified most functions in wutil.h/.cpp to use wcstring instead of wchar_t*, removing calls to c_str() while calling these functions in other files.
2012-02-18 22:41:22 +05:30
ridiculousfish
8f1423946f
Fix a crash when using quotes due to wgettext thread safety issues.
2012-02-17 15:55:54 -08:00
ridiculousfish
fcea723aa7
Fixed parenthesis causing a crash or bizarre layout.
2012-02-13 17:15:41 -08:00
ridiculousfish
faf80588ab
Fix for busted directory check
2012-02-13 16:38:35 -08:00
ridiculousfish
dce189fc6d
Support for setting both RGB and named colors on the same line, so the same config can work for multiple term types
2012-02-13 09:52:17 -08:00
ridiculousfish
0a4c72e78b
Added color.h, color.cpp. Got term256 colors working.
2012-02-12 18:05:59 -08:00
ridiculousfish
d66700a0e4
Color work
2012-02-11 17:07:56 -08:00
ridiculousfish
9b1930588f
Migrate errors from array_list_t to wcstring_list_t
2012-02-10 17:54:38 -08:00
Siteshwar Vashisht
bc8a288386
Got rid of multiple cd paths, only current directory will be searched while changing directories, implicit cd (entering directory just by typing it's name) is removed.
2012-02-09 01:18:51 +05:30
ridiculousfish
b2e5809180
Removed halloc from highlight.cpp
2012-02-08 02:13:39 -08:00
ridiculousfish
063fc0c48b
Cleanup al_list from builtin_complete.cpp
2012-02-08 00:45:07 -08:00
ridiculousfish
382ffe9b6a
Added autosuggestion color variable fish_color_autosuggestion
...
Fixed that nasty bug where fish would apply a color to both the foreground and background (yuck)
2012-02-06 20:14:19 -08:00
ridiculousfish
a534c397f5
Const correctness changes
2012-02-06 00:57:43 -08:00
ridiculousfish
0b4b6c498d
Migrated off of old variant of expand_one that used halloc
2012-01-31 21:30:09 -08:00
ridiculousfish
eef1e3e77e
More cleanup of static string buffers in favor of wcstring
2012-01-31 20:22:25 -08:00
ridiculousfish
0c9e398bef
Change parser_t::parse_job's args array to be a local, rather than just leak it, which no longer seems to crash
2012-01-31 16:50:03 -08:00
Siteshwar Vashisht
48408b0a0b
Merge branch 'CPlusPlus' of gitorious.org:~ridiculousfish/fish-shell/fishfish into CPlusPlus
2012-01-31 00:04:15 +05:30
Siteshwar Vashisht
cd7d1f2bfe
Fix to not show thread debugging warning when entering characters like "~%". expand_string2() now uses it's own parser instead of principal_parser. Added PARSER_TYPE_ERRORS_ONLY in parser_type_t.
2012-01-30 23:58:30 +05:30
ridiculousfish
ed66a46113
Fix for is_potential_path that caused all strings to be reported as paths
2012-01-30 09:59:48 -08:00
ridiculousfish
8e4e30d266
Migrate functions like parser_keywords_is_block to wcstring
2012-01-30 09:46:33 -08:00
ridiculousfish
143091edad
More work to excise halloc
2012-01-30 02:45:55 -08:00
ridiculousfish
79e0405f6a
Yet more un-hallocing
2012-01-30 02:23:58 -08:00
ridiculousfish
4eea68b5a4
LRU work to load functions off of the main thread.
...
We'll have to reevaluate this after we fix function autocomplete
2012-01-28 14:56:13 -08:00
ridiculousfish
55091d9deb
Fix to prevent autoloading of completions on highlight thread
2012-01-15 14:24:58 -08:00
Peter Ammon
9b133a978d
Improve const and signed/unsigned correctness
2012-01-14 22:32:45 -08:00
Peter Ammon
a359f45df2
Redesign new environment variables to use env_var_t instead of wcstring
...
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
2012-01-14 02:42:17 -08:00
Siteshwar Vashisht
d0e18e3d20
Modified highlight.cpp to use env_get_string().
2012-01-12 23:19:05 +05:30
ridiculousfish
99000e68b7
Fix for crash when unescaping a string with unbalanced quotes
...
Add Mac OS X's default term name to terms for which we know how to set a title
2012-01-02 13:40:03 -08:00
ridiculousfish
8d2f107d61
Some changes to migrate towards C++ and a multithreaded model
2011-12-26 19:18:46 -08:00
ridiculousfish
3f16ace678
Initial C++ conversion
2011-12-26 19:11:54 -08:00