Commits
- 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.
- Commit:
d2e2bebcbe7fa3d2d6f9ee84f479d6d0241da8ca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bp_select: call exit_minibuffer() when done
Currently it is still fine to access ministate after
exit_minibuffer(). In the future, if we ever support recursive
minibuffers it won't.
So, defer the exit_minibuffer() call and use minibuffer_compl_text()
instead of peeking into ministate.
While here, also add the "Bookmarked" message when it successfully
bookmarked the page.
- Commit:
ba8a119df2b3646ede6415168bd7f56bde6d090a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix bookmark_page() failure check
it returns -1/0 not 0/1
- Commit:
65c4966563d067115fc09f5e5c8c43a917b1cf03
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework the history management
It was a huge pile of spaghetti with useless utility functions and
lots of code reaching into the "data structure" (if you can call it
so) to do stuff.
Instead, provide a "module" with a clean interface and noone reaching
in the insides.
- Commit:
449ea6fe32441d2fd3875c5eee5d0c77800cfa7d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
apply load-url-use-heuristic for command line arguments too
This semplifies a bit the handling. humanify_url() now takes the base
URL which we can then use when not using the heuristics.
Command-line arguments now take an implicit base of <file://$PWD/>
when the heuristics are disabled, so that foo.gmi resolves to the
local file even without <./>.
See github issue #10.
- Commit:
cc71f6cb128ea70d8fd676c4cac46c3f25c0f7a5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert ir_select_reply() to iri
- Commit:
4bb6a4fa12277e60cec320dacf7968754b26db7d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add load-url-use-heuristic knob
This is still WIP and may change before the next release.
It could be worthwile to resolve the URLs in load-url using the
current page as base, so that while browsing <gemini://a.org/b/c>,
using load-url to go to "/" would load <gemini://a.org/> instead of
<file:///>. The new option `load-url-use-heuristic', if unset,
provides exactly this behaviour.
It is still a bit rough to use, as for e.g. loading <d.net> would now
yield <gemini://a.org/b/d.net> instead of <gemini://d.net>.
Will need more work in-tree, but for now add it so we can reason about
it.
See github issue #10
- Commit:
36f94f06b08270ab5d4465aa61ae025c98e24c2c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use the new iri parser in ir_select_gemini
While here also add some error checking.
- Commit:
bd4a08a74023593128f1f6fac9e0f4a093a8441f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
start to refactor the rendering
Previously each vline (visual line) had a full copy of its associated
string, this changes it so it only slices a part of the parent line.
Reduces significantly the memory usage.
This actually worsen the emojify-link glitch reported by Freezr after
the some recent refactoring in the wrapping code. Not a big deal since
I'm about to restructure the whole rendering bit by bit (hopefully!)
- Commit:
8115fd4a99b30c65da4fa4e88552b7aa36b71165
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reset all the state functions regardless of MB_READ vs. MB_COMPLREAD
must_select otherwise is set when MB_COMPREAD but not cleared on
MB_READ, yielding funny errors. While here, move also the other parts
of the state out of the if (MB_COMPLREAD) to avoid this kind of issues
in the future.