Commits
- 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:
2b1f89306cb04bce40fc6f8ece381ba535e30754
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
feature: remove external-cmd
Now that telescope understands mailcap, there's no need for the use of
external-cmd any longer.
- 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:
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:
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:
a287e9ff39300887b67cd7ab0578ae0f7affcf04
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Via:
- Omar Polo <op@noreply.codeberg.org>
- Date:
search: update links to new gemcap
According to gemini://geminispace.info, the search engine ha been shut
down:
The search provider geminispace.info has been shut down on 1st June 2024.
Indeed, this seems to have happened prematurely but it is no longer
serving requests.
Therefore, switch to a different one.
- Commit:
9312e7a2a5b1b102c8713336eded822d0d001a2e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
change default patch/diff colours to magenta and cyan
red/green is not a great choice for diff colours: it's a bad combo
for (some) colour-blind people, and they may also carry an implicit
meaning of 'good' and 'bad', or 'ok' and 'not ok'. Instead, just
like tog and gotwebd, use a combo of purple and cyan, which was
choosen by a colour-blind user (I'm told).
- 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:
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:
d252d87ccdef3bf3619959f93601a9e74ffcc28f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include cmd.h only where it is really needed
- Commit:
cfcbc23cf9c18cbc9964064ce954c05cde9fd473
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add default-protocol knob
So that now one can decide to assume a finger:// or gopher:// protocol
instead of gemini:// for load-url.
- Commit:
2116f17d9692b4032c4a2534c4831f92a31f671e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify if/elseif/else
- Commit:
2513365f084c0d27d326cdcf878ecfbf087ea76c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add boolean variables
The 'if zero/nonzero then...' is a bit annoying. Add proper booleans
to the grammar of the config and use them when appropriate. Makes the
description and the review of configuration files easier.
This means that the old
set olivetti-mode = 1
can now be written as
set olivetti-mode = true
Compatibility with the previous integer values will be kept for a
while.
- Commit:
1ca15d53d75afef7d91e74a425a0757d27cac0f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort vars
- Commit:
a36bb43a3e7eb5156105479fe02f05639d5f1d89
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add the up, root and home commands
These navigates respectively one level up in the path hierarchy, to
the root directory and to the "home".
The home is considered to be the first path component in the form of
~username.
`home' is yet to be implemented.
- 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:
2c05b26da3a2b21a6804583e47f984ec4b1f898c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
d89eb764fd5d3a5ec0b5b30d85ecdc14789bb7cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
replace has_prefix with strncmp
- Commit:
7b2095782b396e59e93729ca8e503fa0e04869fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
067b7ffd71d21659ed7149faf77ba312e91d6faa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add mini-kill-whole-line
- Commit:
8c58230cb3e2a745d238609b230cd3bcea2d6cab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bind write-buffer to C-x C-w and add `w' alias
- Commit:
ed504b9e1a0307a13e869cb3296f07ec072dae42
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reply-last-input: reply input requests on demand
Telescope now remebers the last URL (per tab!) that replied with
1X (input request.) The new command reply-last-input allows to
resend a query to that URL.
It's particularly useful with capsules that make a heavy uses of
10 replies (search engines or similar, interactive pages, etc)
because it both saves a network roundtrip and the user from looking
for the "search" link all across the page ;-)
idea from a conversation with thfr@, thanks!
- Commit:
9d65b1d9ae3209a8a2bc8e8c376dede4f71290ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move util.c declarations in utils.h
it's not spelled `util.h' because otherwise it'd get included instead
of /usr/include/util.h
- Commit:
17e293f06c6d18b952a5746a9f911a083e32c81c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify the fringe vline
print_vline can handle a NULL .line, so I can avoid the long comment
and the ugly cast.