Dmitry Maluka
9593c2a720
Add HistorySearchUp and HistorySearchDown actions ( #1829 )
...
Add HistorySearchUp and HistorySearchDown actions which are similar to
HistoryUp and HistoryDown but search for the prev/next history item
whose beginning matches the currently entered text in the infobuffer
(more precisely, the text before cursor).
Also fixed the following issue: if we scrolled to an older history item
and then edit the infobuffer, this older item gets modified.
We should not edit old history entries. So in this case set HistoryNum
to the last (newly added) item and modify the last item.
2023-07-08 14:00:22 -07:00
Zachary Yedidia
7df04a58eb
Clear prompt before callback
...
Ref #1913
2020-11-16 14:07:22 -05:00
Sourya Vatsyayan
fc3dd9a62f
Fix quality issues ( #1856 )
...
* Add .deepsource.toml
* Remove unnecessary comparison with bool
* Remove unnecessary use of slice
* Replace multiple `append`s with one
* Remove unnecessary wrapping of function call
* Fix check for empty string
* Simplify error creation with `fmt.Errorf`
* Fix defers before error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove untrappable `os.Kill` signal
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove empty else branch
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Add missing error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Merge variable declaration and assignment
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove unnecessary `nil` check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Revert changes to generated files
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove .deepsource.toml
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
Co-authored-by: DeepSource Bot <bot@deepsource.io>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-09-16 00:08:01 -04:00
Dmitry Maluka
7e19b68426
Avoid duplicate entries in history ( #1822 )
2020-08-13 01:38:50 -04:00
Zachary Yedidia
a915cf9283
Fix '> save' command
2020-05-28 13:02:09 -04:00
Zachary Yedidia
eff89a98a7
Fix v2 import path for go mod
2020-05-04 10:16:15 -04:00
Zachary Yedidia
8a907956d1
Use actual lua functions for callbacks instead of strings
2020-02-08 15:49:41 -05:00
Zachary Yedidia
94ff79e7b2
Lua prompt support and plugin improvements
2019-12-25 17:05:11 -05:00
Zachary Yedidia
fc706bc404
No backups for no name files
2019-12-25 17:05:11 -05:00
Zachary Yedidia
adfeaf52ba
Fix serialization
2019-12-25 17:05:10 -05:00
Zachary Yedidia
0612af1590
Change project layout and use go.mod
2019-12-25 17:05:10 -05:00