Commits
- Commit:
12be77f9b5fb18bdd4f4b22ebc480c6b871d9659
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make forward_line() keep the same column
We should probably instead introduce the concept of ``target column''
but for now this brings back the behaviour pre-point_offset
introduction, even if it gets it wrong when tabulator characters
are involved.
- Commit:
9863381c8cac503847e844df9dcb38e0c73073a7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
update vline len after character delete
- 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:
a2212172a3a36a45b0bc2579c5cab217ddbb8ff2
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
cmd.c: add unistd.h for getpid()
- Commit:
0548291a79ee63a4ee88dab9574c1def724c3a01
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move exec routines to their own file
This leaves the room open to further improvements and tries to keep it
apart from the UI itself.
- Commit:
7e435604f2f764fd8c6d63f6240af21b82cd0e01
- From:
- Omar Polo <op@omarpolo.com>
- Date:
minibuffer: assume exit_minibuffer as abortfn
- 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:
057e7eb6f1bc703a5d90e6ca41a5506008b850e9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make yornp data be a void pointer instead of a tab
- 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:
e1bf3d6e8c8b52e910473d62f747176f22e206b1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add mini-edit-external
it's bound by default to C-x in the minibuffer keymap. It'll open
an external editor to edit the content of the minibuffer. When the
editor exits, we'll call the completion function with the content
of the file.
Stuff inputted with an external editor are not persisted to the
history thought. That would require the UI to handle multiline
strings which is currently impossible.
- 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:
4e32d3a6c187dd9646ba4aa80a69082adf3b3c46
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
ui: add capability to run external cmds
When telescope encounters a file type which it cannot display it prompts
the user whether they wish to save the file, or not.
This patch extends this idea -- if the file is saved, then the user is
prompted to run a command against that downloaded file.
This controllable via the 'external-cmd' setting. It defaults to
'xdg-open'.
This is based off work originally started by op@.
- Commit:
b9a64d45f6bf202e384c314e9e8b2b303e5d4f49
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
wip'n'crude: open downloads with xdg-open
- Commit:
232164c76d4045a189a21c870134ab1009104c4f
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
mini-kill-whole-line: recompute completions
When issuing the mini-kill-whole-line command, make sure we recompute
the completions in the minibuffer, otherwise completions don't work as
intended.
Noticed by op@ on IRC.
- Commit:
f350bc73eb44b726d2cfdfe499c168fb83c91bc4
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
cmd: introduce toggle-styling
This adds a new command `toggle-styling` which toggles the formatting
between the defaults (or anything specified in a configuration file),
and the "raw" prefixes as defined in the gemini file.
- 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:
50fd8b267750be705819a7036c7f08a8b4fc5432
- From:
- Omar Polo <op@omarpolo.com>
- Date:
support gopher urls for search; document 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:
71bc16365736f1cc3212d46f3947806c1e33867b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add client_cert_temp flag to the struct tab
This way we can improve unload-certificate prompt. While here,
move the cert handling in make_request().
- 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:
4fdc9933599cda6387d6c15f757faf4dda1bbd0a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add unload-certificate to stop using a certificate
- Commit:
d252d87ccdef3bf3619959f93601a9e74ffcc28f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include cmd.h only where it is really needed
- Commit:
4655add68bea2925dae643694004d6a3ac73c5d8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add client-certificate-info