Commits
- Commit:
307e9acc7f8c71bc44762e639f8a477e3f89f269
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ensure vline len is correctly accounted for
- Commit:
757c5ccf1b2b61a7ca780f14fac95b3562289662
- From:
- Omar Polo <op@omarpolo.com>
- Date:
clean up utf8.h includes that are no longer needed
- Commit:
6d24bfb3ca185665e8a7fa4e5f88434690f4272d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use a byte offset to track the point in the line
Instead of using a code-point offset, use a raw byte offset and
navigate backward and forward by means of graphemes. This gives a
correct "visual" backward/forward navigation through characters.
- Commit:
187eb2bac384268766bd53c86b3584d5effeee0c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: fix text accounting in minibuffer_taint_hist()
- Commit:
479b240af68737bc8d545a0e5419252571c4bedd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: augment minibuffer_read with the initial input
fixes a regression where the text inputted via ui_read() can't be edited.
- Commit:
7e435604f2f764fd8c6d63f6240af21b82cd0e01
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: assume exit_minibuffer as abortfn
- Commit:
c58259f814c52c53765149e7fa6be42248f66c74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include stdarg.h for va_start
- Commit:
dfd1efcc0cf22803275753d2e0b80b9a4ef8b3b0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: redesign enter_minibuffer and fix regression
use a struct to pass the arguments to enter_minibuffer since they're
so many. While here, also allow to pass a printf(3)-like format string
for the prompt and specify the initial input.
Also, fix a regression: if we don't set vline.cplen we can't properly
handle the input, so do that in enter_minibuffer to avoid having to fix
all the callers.
- Commit:
0d82c695b43613c6508e266c083e619188143d6d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: fix insertion of candidate
we missed to update the vline.cplen field when inserting a candidate in
the minibuffer.
- Commit:
057e7eb6f1bc703a5d90e6ca41a5506008b850e9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make yornp data be a void pointer instead of a tab
- Commit:
3d89457cdeba5041aa6f0c1f8640b91bcbb6ec51
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
code: add wrappers for common failure cases
Certain calls to well-known functions sometimes result in similar
error handling across the code base. Sometimes there's a need to
centralise the failure case.
Achieve this for common wrappers to often-used functions.
The transformation is achieved via coccinelle, commited with this patch.
Note that coccinelle can be told to ignore code blocks with comment
delimiters.
This transformation applies just to telescope's code, and not any of the
bundled depdencies in telescope (libgrapheme).
- Commit:
c1d27b0e114e6a65f7979971940df212f00bb2ae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
untangle a bit buffers and parsers
Now buffers have a nicer interface, taking explicitly the buffer
where they push stuff, and the code that deals with buffers doesn't
need to peek into the parsers. The parsers now are 'pure' structs
without state attached to them, the state was moved to the buffer.
- Commit:
0fceedb5fedbf154222ba2e675ee20bd5651008f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: pass the string to the donefn()
This avoids the callback to have to use the (private)
minibuffer_compl_text() to get the string. It'll simplifies a
follow-up changes, too.
- Commit:
7ddea6c5284750e02983e76f44f19c65e51c638a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use snprintf(3) instead of a strlcpy/cat dance
- Commit:
a3054746d2d2a6efa84f5a425c977ca47857273d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move unicode_isgraph in minibuffer.c (codepoint_isgraph)
- Commit:
a74e6b4d71a264f0ca2fd27e25b1acfb811508fc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reset timer id after cancelling it
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
07a751ac2365bdee6d0002632efa996d1dfcfb12
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typofix
- Commit:
4e74baf8b1d5cee7981909776791860b436fa33c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
guard against malformed default-search-engine
- Commit:
fd6c540b6faa6c802c92c9e209e2122ca3ddfa92
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add cmd_search to search using a search engine
This adds a new command `search', bound by default to `s', that
prompts for a query and loads and consult the ``oracle'' (the search
engine) using default_search_engine (which will be made customizable.)
It also temporarly supports only gemini URLs.
Feature requested by -fab-, thanks!
- Commit:
3c56c523c37b8b505cafdd3e5d62d3d72b76ae29
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove half-bake idea
turns out telescope is not ready to generate certificate in the ui
process, a separate helper will be added for it, so remove this
option for now.
- Commit:
f7db6d139bba0fb56f0560533b77af219958ecc0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
some headers cleanup
try to not include headers from headers, and remove some redundant
include.
This helps in modularizing the codebase and also helps during
incremental compilations.
- Commit:
cbe2da3279946cae9bb365a672e6600268de9cce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move struct cmd and cmds declaration in cmd.h
- Commit:
c171304b1ea3f9decda9c0bfdbbcba6cf399ba26
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tweak use-certificate yornp question
- Commit:
5a39f5931f4b5be1d57d75c7f25cff8adae5f235
- From:
- Omar Polo <op@omarpolo.com>
- Date:
load and optionally remember client certificates
This adds use-certificate, a user function to start using a certificate
or switch to a different one. It asks whether to persist the
certificate, if not it will only be used for the current session.
use-certificate is implicitly called when the server replies with
a 6x status code.