Commit graph

17 commits

Author SHA1 Message Date
Oliver Blanthorn
9e2c21123f
Revert async history update and number of history items
The async history issue was too annoying, and the number of history
items being above 50 meant that it was too slow.
2017-11-25 23:26:16 +00:00
Oliver Blanthorn
bf8d65f14d
Only add visible items to HTML, make update more async
Introduces an issue where the commandline cannot be seen until a
character is typed on *open.
2017-11-25 13:00:15 +00:00
Oliver Blanthorn
ef3bb11654
Add shift-tab bind for completion 2017-11-24 19:17:51 +00:00
Oliver Blanthorn
56c7b0ceff
First working version of next 2017-11-24 18:46:49 +00:00
Oliver Blanthorn
a04c693e68
Start next/prev functions for completions 2017-11-23 21:48:48 +00:00
Oliver Blanthorn
7a747312ee
Start work on history completions 2017-11-23 19:55:46 +00:00
Colin Caine
2877934cc4 completions: use a table instead
Absolutely positioned elements are absolutely a pain in the arse.
2017-11-23 01:09:10 +00:00
Colin Caine
8a44732227 completions:
Done:
	Working completion for buffers
	Substitute values into command line
	Prepare for non-buffers completions
	Wrote too many classes and helper functions

Todo:
	Learn inferno and hopefully simplify
	If not, simplify the main functions so that people can actually
	build for it.
	Define an interface for tabbing through options
	Allow more than one CompletionSource per command
2017-11-22 21:43:29 +00:00
Colin Caine
8d771e578c completions 1 2017-11-22 21:30:37 +00:00
Koushien
f982233a49 completions: initial implementation
This commit squashes a load of work by @Koushien, a dozen hours from
@cmcaine and some CSS by @bovine3dom.

@cmcaine is writing this commit message, but the work was mostly by
Koushien so the author is set to them. Thanks Koushien!

The following issues need to be fixed:

 - The interface is over complicated (my fault)
 - commandline_frame is hard-coded to use BufferCompletionSource. This
   needs to be made more general
 - BufferCompletionSource should be generalised
 - completions.ts calls helper functions in commandline_frame. Should
   just use browser proxy. If that's too slow can define a
   completions_background.ts

After that's done, this should be fixed:

 - Completion hiding/unhiding is currently too messy.
2017-11-22 21:30:37 +00:00
Oliver Blanthorn
85d6eba2b5
Revert "Merge branch 'Koushien-completions'"
This reverts commit 0aa14bb754, reversing
changes made to eae9cd0dab.
2017-11-21 20:28:48 +00:00
Colin Caine
7bbe81f327 completions: works properly, but code expects only one completionsource 2017-11-21 09:14:22 +00:00
Colin Caine
8e48f69c27 completions: another WIP 2017-11-21 05:16:47 +00:00
Koushien
cf620959ec Do not merge: quick WIP
In case I get hit by a bus or something.
Reminder to myself to rebase next commit on
previous patch for some coherency.
2017-11-21 05:15:52 +00:00
Koushien
5bbb133c5c Begin transitioning completions refactor
Start laying groundwork for buffersall excmd
2017-11-21 05:15:52 +00:00
Colin Caine
1045eadc0e completions: WIP 2017-11-21 05:15:52 +00:00
Koushien
a389d6dde3 Move buffers to general completion system.
User shouldn't notice any difference besides:
* removing "buffer " from cli clears buffers
* retyping "buffer " repopulates buffers
* text after "buffer " filters with smartcase.

We no longer directly set completion's innerHTML.
2017-11-21 05:15:52 +00:00