aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
Commit message (Collapse)AuthorAge
* Solaris build fixes: pick the right curses more of the timeGravatar David Adam2014-12-21
|
* Fix to avoid shortening the command line on tab completions.Gravatar ridiculousfish2014-11-06
| | | | | | | | | | | | | | | | This prevents cases like `cd /usr/e` from tab-completing to `cd /usr/` (which is the shared prefix of the tab completions). Things are still sort of confusing with fuzzy matching, e.g. with files like this: foo1bar foo2bar Then ba<tab> will replace the token with foo. That's surprising, but not new to this fix. Fixes #1727
* Fix to swallow BOMs in sourced filesGravatar ridiculousfish2014-11-01
| | | | Fixes #1518
* Remove a bunch of dead code identified by cppcheckGravatar ridiculousfish2014-10-31
|
* Added fish_preexec and fish_postexec eventsGravatar Jan-Thorsten Peter2014-10-01
| | | | Fixes #1549.
* Make escape() return a wcstringGravatar Kevin Ballard2014-09-25
| | | | This avoids the potential for leaking the resulting string.
* Allow U+F8FF to be typedGravatar Kevin Ballard2014-09-21
| | | | | | U+F8FF is the last character in the private use area, but it's also the codepoint used for the Apple symbol (), which is typeable on US keyboards in OS X, and so should actually work.
* Make redirections and pipes expand abbreviations tooGravatar ridiculousfish2014-09-19
|
* Expand abbreviations on semicolon per #731Gravatar ridiculousfish2014-09-19
|
* Fix the fix for `commandline -i` in bindsGravatar Kevin Ballard2014-09-03
|
* New -n option for read builtinGravatar Joseph Tannhuber2014-09-03
| | | | | Usage: read -n nchars Reads maximum of nchars characters. If nchars <= 0, there's no limit.
* Fix `commandline` behavior in bind functionsGravatar Kevin Ballard2014-08-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a key is bound to a fish function, if that function invokes `commandline`, it gets a stale copy of the commandline. This is because any keys passed to `self-insert` (the default) don't actually get added to the commandline until a special character is processed, such as the R_NULL that gets returned after running a binding for a fish command. To fix this, don't allow fish commands to be run for bindings if we're processing more than one key. When a key wants to invoke a fish command, instead we push the invocation sequence back onto the input, followed by an R_NULL, and return. This causes the input loop to break out and update the commandline. When it starts up again, it will re-process the keys and invoke the fish command. This is primarily an issue with pasting text that includes bound keys in it. Typed text is slow enough that fish will update the commandline between each character. --- I don't know of any way to write a test for this, but the issue can be reproduced as follows: > bind _ 'commandline -i _' This binds _ to a command that inserts _. Typing the following works: > echo wat_is_it But if you copy that line and paste it instead of typing it, the end result looks like > _echo wat_isit With this fix in place, the pasted output correctly matches the typed output.
* Accepting an autosuggestion should clear the pagerGravatar ridiculousfish2014-08-11
|
* Set $CMD_DURATION to milliseconds. Fixes #1585Gravatar Gio d'Amelio2014-08-04
|
* Clean up reader_write_title to work with wcstringGravatar ridiculousfish2014-08-02
|
* add command line string as $argv[1] for fish_titleGravatar jianjun2014-08-02
|
* Make abbreviations work correctly with type-aheadGravatar ridiculousfish2014-07-25
| | | | Fixes #1434
* Allow parse_util_detect_errors to treat incomplete strings as errorsGravatar ridiculousfish2014-07-24
| | | | | Fixes bug where sourcing a file with an unclosed quote would not have a backtrace
* Fix for crash in kill-whole-lineGravatar ridiculousfish2014-07-13
| | | | Fixes #1548
* Run restyle.sh to enforce style rules.Gravatar ridiculousfish2014-03-31
|
* Merge branch 'master' of github.com:fish-shell/fish-shellGravatar ridiculousfish2014-03-30
|\
* | Changes to bind_mode implementation based on code review and mergeGravatar ridiculousfish2014-03-30
| | | | | | | | errors
* | Merge branch 'master' into 1218_rebaseGravatar ridiculousfish2014-03-29
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: builtin.cpp builtin_commandline.cpp highlight.cpp input.cpp input.h reader.cpp screen.cpp screen.h
| | * Allow appending path hints to history items after they have been added,Gravatar ridiculousfish2014-03-28
| |/ | | | | | | | | allowing us to avoid the delay before items appear in history. Should fix #984
| * Equip syntax highlighting with a variant that does no disk I/O. InvokeGravatar ridiculousfish2014-03-26
| | | | | | | | | | it after expanding an abbreviation, so that the expanded abbreviation appears with (some) syntax highlighting.
| * Fix for issue where pager contents may stay around if you executed aGravatar ridiculousfish2014-03-20
| | | | | | | | command with pager contents visible
| * Remove support for input IO_BUFFERs, which were only used by fish_pagerGravatar ridiculousfish2014-03-15
| |
| * Remove old fish_pager source and implementationGravatar ridiculousfish2014-03-15
| |
| * Remove support for invoking old pagerGravatar ridiculousfish2014-03-15
| |
| * Revert "Merge pull request #1317 from pullreq/cpp"Gravatar ridiculousfish2014-02-28
| | | | | | | | | | | | | | This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing changes made to 6d749789ce240a3e6f1447777db63fd8e7525560. See discussion in #1317
| * Fixes .c -> .cpp in comments. For doxygen.Gravatar Geoff Nixon2014-02-27
| |
| * Allow double-tapping tab to fully disclose pager, per #291Gravatar ridiculousfish2014-02-20
| |
| * Remove the reader_selected_completion_changed callback. Fix a hang whenGravatar ridiculousfish2014-02-16
| | | | | | | | the pager gets empty, as reported in 291
| * Make COMPLETE_AND_SEARCH always show the search field. Also end paging uponGravatar ridiculousfish2014-01-28
| | | | | | | | modifying the command line contents.
| * Make return not execute the selected completion in the pager, insteadGravatar ridiculousfish2014-01-27
| | | | | | | | just accept it
| * Make escape clear the current completionGravatar ridiculousfish2014-01-27
| |
| * Make arrow keys navigate completions instead of manipulate completionGravatar ridiculousfish2014-01-27
| | | | | | | | search field
| * Support escape or up-arrow to cancel the completion search field.Gravatar ridiculousfish2014-01-27
| |
| * Increased support for completion search field. Use btab (shift-tab) toGravatar ridiculousfish2014-01-27
| | | | | | | | complete-and-search.
| * Eliminate dangerous command_length() function. Use editable_line_t in aGravatar ridiculousfish2014-01-26
| | | | | | | | few places we missed.
| * Refactor reader to work on selectable 'editable_line_t' so that mostGravatar ridiculousfish2014-01-26
| | | | | | | | commands can operate on pager search field
| * Beginnings of work for search field feature of new pagerGravatar ridiculousfish2014-01-26
| |
| * Add fish_new_pager variable to enable new pager on request, disabled by default.Gravatar ridiculousfish2014-01-24
| |
| * Support for "merged completions" (multiple completions on the same line)Gravatar ridiculousfish2014-01-24
| | | | | | | | in new pager. Support for using up-arrow to end pager navigation.
* | Add 'and' input function; fixes a bug with t,TGravatar Julian Aron Prenner2014-01-23
| | | | | | | | | | | | 'and' will prevent later input functions from being executed if the previous one did not succeed (e.g. a jump to a char not on the command line)
| * Various tweaks and improvements to new pager, including disclosureGravatar ridiculousfish2014-01-22
| | | | | | | | feature
* | Experimental support for f,F,t,T vi commands.Gravatar Julian Aron Prenner2014-01-22
| | | | | | | | Input functions can now have arguments
| * Allow down arrow to enter pager. Clean up repainting withinGravatar ridiculousfish2014-01-21
| | | | | | | | reader_readline
| * Support for scrolling through the pagerGravatar ridiculousfish2014-01-21
| |
| * Correctly clear pager contents on ctrl-CGravatar ridiculousfish2014-01-20
| |