Commits
- Commit:
7a7f8f400c9b3846ce2acf12abc6c3f800747e65
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix display of certificate selection prompt
- Commit:
f853ec6f0c0569cf5bae15ce3e9d8bfc533b358b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle tab characters
tab characters have their width depending on the column they're in,
since they extend to the next multiple of 8. (citation needed?)
So, keep track of the column when considering the length (in columns)
of the text, so that we can render them properly.
In the future we might want to turn them into spaces (either at read
or render time) just to stay on the safe side in case not all
terminals/ncurses implementations use 8 columns.
- Commit:
dcbfbf59b89f824c58843aadab7038108bf4a2a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use grapheme_encode_utf8 instead of our home-grown utf8_encode
libgrapheme does a few more checks than we do
- Commit:
1dc96d88793508394f21675b6084a3092d1c4dcf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use grapheme instead of utf8_next_cp
- 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:
2815e3a0bd30fa577f03de5af1a60086ee286e4a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typos; courtesy of codespell
- 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:
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:
a06892e4e1613b45d17667de6c48ed0526306ef7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ui: explain why we're not calling minibuffer_confirm
- 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:
2f0ffab47b34449e9e24a05e408e9d6983b24ba8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
prompt before opening the downloads
- Commit:
057e7eb6f1bc703a5d90e6ca41a5506008b850e9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make yornp data be a void pointer instead of a tab
- Commit:
329cd624ab8a6f91ae66a4b8d554a418950926af
- From:
- Omar Polo <op@omarpolo.com>
- Date:
teach exec_external_cmd how to run programs in the background
- Commit:
f5c33c313c5227101bded81f03ce4820005472fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor exec_external_cmd so that can be used in ui_edit_externally
- Commit:
73a23d22ecf6a2dd7bd7e2f6bdc029826d20cb1f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve error message for failed execve
- 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:
7b7a69f2aeeffb5436fd490f2020335b5bf9a121
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
update telescope to make use of mailcap
Change telescope to make use of mailcap entries.
Commands are no longer prompted for how to handle an unknown mime-type.
Commands are now executed via execvp(), and the mailcap handling assumes
this as part of its interface.
- Commit:
7e346d82461441d5461dd82322e24f0e79905197
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
configure: add a --with-default-editor option
Ths is useful for Linux distributions which might not solely rely on
EDITOR/VISUAL being set in the environment, but would rather use a
wrapper command.
Debian prefers sensible-editor(1), for example.
Rather than make hard-coded assumptions in telescope for each
distribution, this will make it easier for packagers of telescope to
set this if needed.
Defaults to ed(1) if not set.
- Commit:
aecdde273e74130898dd4bb95ee6eef8ec212aa9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ui_edit_externally: add a prompt in case the editor failed
while here sprinkle also a fflush() to stay on the safer side.
- Commit:
8ef77ce4c8eca6504bdfc5f7661e285fa44cedd4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix logic error in editor selection
use ed only when both VISUAL and EDITOR are undefined, not with one
is defined and the other don't.
- 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:
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.