about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-windows.el
Commit message (Collapse)AuthorAgeFilesLines
* Fix frog-jump-buffer-filter-actionsDavid Morgan2022-10-251-8/+8
|
* Shorten docstring to fix warningDavid Morgan2022-10-251-1/+1
|
* Integrate buffer-ring and frog-jump-buffer with perspective.elDavid Morgan2022-10-241-11/+48
|
* cbm repeat bindingsDavid Morgan2022-10-241-2/+6
|
* Tweak frog-jump-buffer settingsDavid Morgan2022-10-241-0/+1
|
* Try out various packagesDavid Morgan2022-10-211-0/+46
|
* Change popper bindingsDavid Morgan2022-10-181-3/+3
|
* Add helpful windows to popper listDavid Morgan2022-10-121-10/+12
|
* Try out straightDavid Morgan2022-10-101-2/+1
|
* Remove un-needed bindingDavid Morgan2022-10-061-3/+0
|
* Fix fullframe configDavid Morgan2022-10-051-2/+2
|
* Treat restclient response buffers as popupsDavid Morgan2022-09-051-0/+1
|
* Remove leftover dashboard referenceDavid Morgan2022-09-051-1/+1
|
* Set use-package-always-deferDavid Morgan2022-08-301-0/+1
|
* Try popperDavid Morgan2022-08-261-0/+13
|
* Use repeat for winner-undo/redoDavid Morgan2022-08-181-1/+10
|
* Use repeat instead of smartrepDavid Morgan2022-08-131-7/+0
|
* Enable switch-to-buffer-obey-display-actionsDavid Morgan2022-08-111-0/+2
|
* Go back to fullframe for magitDavid Morgan2021-10-051-1/+1
|
* Use smartrep for previous/next-bufferDavid Morgan2021-09-091-1/+3
|
* Try magit built-in functionality instead of fullframeDavid Morgan2021-08-281-1/+1
|
* Move uniquifyDavid Morgan2021-08-231-0/+5
|
* Fix fullframe configDavid Morgan2021-08-191-1/+2
|
* Add vc-annotate to fullframe listDavid Morgan2021-08-191-1/+1
|
* Change/move some window and buffer key bindingsDavid Morgan2021-08-181-1/+8
|
* Add new .emacs.dDavid Morgan2021-08-171-0/+65
class="p">{ exline.Invalidate() }) return exline } func NewPrompt(conf *config.AercConfig, prompt string, commit func(text string), tabcomplete func(cmd string) []string) *ExLine { input := ui.NewTextInput("").Prompt(prompt) if conf.Ui.CompletionPopovers { input.TabComplete(tabcomplete, conf.Ui.CompletionDelay) } exline := &ExLine{ commit: commit, tabcomplete: tabcomplete, cmdHistory: &nullHistory{input: input}, input: input, } input.OnInvalidate(func(d ui.Drawable) { exline.Invalidate() }) return exline } func (ex *ExLine) Invalidate() { ex.DoInvalidate(ex) } func (ex *ExLine) Draw(ctx *ui.Context) { ex.input.Draw(ctx) } func (ex *ExLine) Focus(focus bool) { ex.input.Focus(focus) } func (ex *ExLine) Event(event tcell.Event) bool { switch event := event.(type) { case *tcell.EventKey: switch event.Key() { case tcell.KeyEnter, tcell.KeyCtrlJ: cmd := ex.input.String() ex.input.Focus(false) ex.commit(cmd) ex.finish() case tcell.KeyUp: ex.input.Set(ex.cmdHistory.Prev()) ex.Invalidate() case tcell.KeyDown: ex.input.Set(ex.cmdHistory.Next()) ex.Invalidate() case tcell.KeyEsc, tcell.KeyCtrlC: ex.input.Focus(false) ex.cmdHistory.Reset() ex.finish() default: return ex.input.Event(event) } } return true } type nullHistory struct { input *ui.TextInput } func (*nullHistory) Add(string) {} func (h *nullHistory) Next() string { return h.input.String() } func (h *nullHistory) Prev() string { return h.input.String() } func (*nullHistory) Reset() {}