Blob


1 2022-04-15 Omar Polo <op@omarpolo.com>
3 * minibuffer.c: lots of small tweaks to the completion handling.
4 Now the selected item is consistently the one used upon RET.
6 * defaults.c (load_default_keys): bind mini-kill-whole-line to C-u
7 in the minibuffer
9 * cmd.c (cmd_mini_kill_whole_line): add mini-kill-whole-line
11 2022-04-13 Omar Polo <op@omarpolo.com>
13 * defaults.c (load_default_keys): bind C-x C-w to write-buffer
15 * include/cmd.h: add an alias for write-buffer: w
17 * cmd.c (cmd_write_buffer): add write-buffer: saves the current
18 buffer to the disk.
20 * downloads.c (enqueue_download): change downloads order: the new
21 one is always at the top.
23 2022-02-26 Omar Polo <op@omarpolo.com>
25 * minibuffer.c (recompute_completions): split the minibuffer input
26 into words and try to match every one of the independently from
27 the others.
29 * cmd.c (cmd_load_url): remember visited URLs and provide
30 completions during load-url.
32 2022-02-11 Omar Polo <op@omarpolo.com>
34 * session.c (new_tab): initialize each tab loadingev timer event,
35 fixes an error print by libevent 2 upon closing a tab.
36 * telescope.c (main): allow telescope to be ``comanded'' to open an URL
38 2022-02-09 Omar Polo <op@omarpolo.com>
40 * emoji.txt: update to emoji-data-14.0.0.txt
42 2022-02-07 Omar Polo <op@omarpolo.com>
44 * defaults.c (load_default_keys): bind M-r to reply-last-input
46 * cmd.c (cmd_reply_last_input): add reply-last-input, idea from thfr, thanks!
48 2022-01-18 Omar Polo <op@omarpolo.com>
50 * session.c (sendtab): persist scroll position on the session file
52 * ui.c (ui_on_tab_loaded): restore scroll position when loading a tab if possible
54 2022-01-17 Omar Polo <op@omarpolo.com>
56 * parser_gemtext.c (parse_link): don't crash on invalid link lines
58 2022-01-15 Omar Polo <op@omarpolo.com>
60 * cmd.h: Show aliases before the completions
61 add "open" as alias for load-url, suggested by Florian, thanks :)
63 * configure.ac: tag 0.7.1, bugfix release
65 * telescope.c (do_load_url): fix use after free when loading an about:* page from about:about. Reported by Brian Callahan, thanks!
67 2022-01-13 Omar Polo <op@omarpolo.com>
69 * configure.ac: tag 0.7, "Via Paolo Fabbri 43"
71 2022-01-11 Omar Polo <op@omarpolo.com>
73 * cmd.c (cmd_cache_info): add command `cache-info' to show cache stats.
75 * mcache.c (mcache_tab): add a caching mechanism for gemini and gopher pages.
77 2022-01-10 Omar Polo <op@omarpolo.com>
79 * defaults.c (fringe): add vi-like fringes customizable using `style line.fringe { ... }'
80 (config_setvari): allow to ignore olivetti-mode' offset for fringe: fringe-ignore-offset
82 2022-01-05 Omar Polo <op@omarpolo.com>
84 * defaults.c (load_default_keys): bind `u' to tab-undo-close.
85 (config_setvari): add "max-killed-tabs" to control the maximum number of killed tabs to keep.
87 * cmd.c (cmd_tab_undo_close): allow to re-open closed tabs.
89 * session.c (kill_tab): save killed tabs into a queue.
91 2022-01-02 Omar Polo <op@omarpolo.com>
93 * telescope.c (handle_imsg_session): implement persistent tab history
95 * session.c (switch_to_tab): fix an issue where the current url was pushed *twice* in the tab history at startup.
97 * defaults.c (fill_column): bump default fill-column to 120.
99 * defaults.c (config_setvari): rename `set-title' to `update-title'. The old name will still be supported for a while to ease backwards compatibility.
101 * cmd.c (cmd_kill_telescope): ask yorn (yes or no) before quitting telescope.
103 * minibuffer.c (eecmd_select): execute the selected command, not what it's being typed into the minibuffer.
105 * defaults.c (load_default_keys): bind `del' to previous-page. Suggested by Florian.
107 * telescope.c (longopts): add --colours as an alias for --color. Suggested by Florian, thanks!
109 * telescope.c (longopts): fixed crash on --colors. Reported by Florian, thanks!
111 2021-11-29 Omar Polo <op@omarpolo.com>
113 * configure.ac: tagged 0.6.1 bugfix release
115 * sandbox.c (open_landlock): handle gracefully when landlock is disabled at runtime. Reported and tested by Nikolay Korotkiy, thanks!
117 * configure.ac: tag 0.6 "Piccola storia ignobile"
119 2021-11-27 Omar Polo <op@omarpolo.com>
121 * telescope.1: mention that we're expecting an UTF-8 environment.
123 2021-11-26 Omar Polo <op@omarpolo.com>
125 * configure.ac: add HOSTCC and HOSTFLAGS to aid cross-compiling since pagebundler needs to be built with the host compiler. Reported and tested by Nikolay Korotkiy, thanks!
127 2021-11-24 Nikolay Korotkiy <sikmir@gmail.com>
129 * telescope.c (load_gemini_url): fix macOs crash on `__strlcpy_chk' due to wrong lengths
131 2021-11-10 Omar Polo <op@omarpolo.com>
133 * net.c (net_error): handle empty replies (i.e. no header)
135 2021-11-05 Omar Polo <op@omarpolo.com>
137 * defaults.c (load_default_keys): bind toggle-downloads to <f2>
138 (mappings): added download.{ongoing,done,info} and download style targets
140 * cmd.c (cmd_toggle_downloads): add toggle-downloads
142 2021-10-26 Omar Polo <op@omarpolo.com>
144 * parser_gemtext.c (detect_line_type): correct item line detection: a space is required after the `*' character.
146 2021-10-08 Omar Polo <op@omarpolo.com>
148 * sandbox.c (landlock_unveil): use landlock on linux if available to restrict what parts of the filesystem telescope can see
149 (sandbox_fs_process): don't fail if ~/Downloads doesn't exist
151 2021-10-07 Andrea Feletto <andrea@andreafeletto.com>
153 * contrib/xdg-migrate.sh: add a script to aid the migration of ~/.telescope to XDG
155 * fs.c (xdg_init): use XDG-style directories if ~/.telescope does not exists
157 2021-09-20 Omar Polo <op@omarpolo.com>
159 * parser_textpatch.c (tpatch_emit_line): fix patch/diff syntax highlighting when more than one file are involved
161 2021-09-15 Omar Polo <op@omarpolo.com>
163 * telescope.c: add a ``safe mode''.
165 2021-09-13 Omar Polo <op@omarpolo.com>
167 * telescope.c (handle_imsg_eof): reset download byte counter
169 * sandbox.c (sandbox_fs_process): [openbsd] allow creating files in ~/Downloads
171 2021-09-12 Omar Polo <op@omarpolo.com>
173 * net.c (net_read): bugfix: telescope would render a blank page for (some rare) cases where it reads a very long replies from the server.
175 2021-08-29 Omar Polo <op@omarpolo.com>
177 * defaults.c (config_setvars): make download-path customizable
179 * telescope.c (handle_maybe_save_page): prefill the save prompt with the filename to ease saving files
181 2021-08-28 Omar Polo <op@omarpolo.com>
183 * configure.ac: tag 0.5.1
185 * telescope.c (gopher_skip_selector): don't trim the initial `/' during gohper requests
187 2021-08-26 Omar Polo <op@omarpolo.com>
189 * configure.ac: tag 0.5
191 2021-08-26 Omar Polo <op@omarpolo.com>
193 * parse.y (attrname): correctly parse multiple attributes
195 2021-08-18 Omar Polo <op@omarpolo.com>
197 * defaults.c (load_default_keys): bind M-[ and M-] to tab-move-to and tab-move
198 add tab-bar-show to control the visibility of the tab bar
200 2021-08-16 Omar Polo <op@omarpolo.com>
202 * telescope.c (humanify_url): add heuristics for human-provided URLs
204 * cmd.c (cmd_load_url): don't add ``gemini://'' on load_url
206 2021-08-15 Omar Polo <op@omarpolo.com>
208 * fs.c (last_time_crashed): improve crash detection
210 2021-08-14 Omar Polo <op@omarpolo.com>
212 * defaults.c: add `autosave' config option.
214 * telescope.c (autosave_timer): add an autosave timer to persist the session once in a while while telescope is running.
216 2021-08-13 Omar Polo <op@omarpolo.com>
218 * fs.c (handle_get_file): generate directory listings
220 * telescope.c (protos): added support for file:// URIs
222 2021-08-12 Omar Polo <op@omarpolo.com>
224 * cmd.c (cmd_push_button_new_tab): open new tab right after the current one
226 * telescope.c (load_url): improved reload command: it doesn't push the current url to the history anymore.
228 2021-08-03 Omar Polo <op@omarpolo.com>
230 * pages/about_new.gmi.in: add link to veronica-2. reorder links
232 * telescope.c (gopher_send_search_req): initial support for gopher item type 7
234 2021-07-30 Omar Polo <op@omarpolo.com>
236 * parser.c (parser_free): tilde-heuristics for titles: use ~username as tab title if the page doesn't have any headings
238 * mime.c (ptable): colorize text/x-patch
240 2021-07-25 Omar Polo <op@omarpolo.com>
242 * parser.c (parser_free): for page without a title, use the domain name
244 * parser_gophermap.c (gophermap_initparser): initial gophermaps support
246 * telescope.c (load_finger_url): add support for the finger protocol
247 (load_gopher_url): initial gopher support
249 2021-07-24 Omar Polo <op@omarpolo.com>
251 * cmd.c (cmd_scroll_line_up): don't crash on empty pages
252 (cmd_mini_scroll_up): add mini-scroll-up, bound to M-v in the minibuffer
253 (cmd_mini_scroll_down): add mini-scroll-down, bound to C-v in the minibuffer
255 * configure.ac: tagged 0.4.1 "buildfix" release
257 * Makefile.am (EXTRA_telescope_SOURCES): fix dist tarball
259 * configure.ac: tagged 0.4 --- "La faccia della luna"
261 * minibuffer.c (sensible_self_insert): use sensible-self-insert everywhere
263 2021-07-23 Omar Polo <op@omarpolo.com>
265 * ui.c (redraw_tabline): changed default tab separator character. Suggested by Gnuserland, thanks!
267 2021-07-21 Omar Polo <op@omarpolo.com>
269 * ui.c (print_vline_descr): pretty print help lines
271 * defaults.c (load_default_keys): bind other-window to C-x o
273 * cmd.c (cmd_other_window): add other-window
275 * ui.c (ui_other_window): allow to focus the side window
277 * fs.c (handle_get): allow about: pages to be overridden by ~/.telescope/pages/about_*.gmi
279 * cmd.c (cmd_tab_close): prefer the next tab instead of the previous as target in tab-close.
281 2021-07-20 Omar Polo <op@omarpolo.com>
283 * cmd.c (cmd_push_button_new_tab): bugfix: push-button-new-tab on relative URLs now works
285 * fs.c (handle_get): add about:crash
287 2021-07-19 Omar Polo <op@omarpolo.com>
289 * defaults.c (line_prefixes): prettify the default settings
291 2021-07-18 Omar Polo <op@omarpolo.com>
293 * wrap.c (push_line): visually drop trailing spaces when formatting a page
295 * minibuffer.c (populate_compl_buffer): add an optional description to completion items.
296 (recompute_completions): filter completion results using the description too (if available)
298 2021-07-17 Omar Polo <op@omarpolo.com>
300 * telescope.c (load_url): lazy loading for telescope: don't load all the tabs when starting up, only the current one. Defer the loading of the others when switching to them.
301 (load_last_session): cache the page title
303 * defaults.c (line_faces): don't underline links by default
304 add set-title option
306 * telescope.c (load_last_session): keep track of the current tab and re-focus it during next startup
308 2021-07-16 Omar Polo <op@omarpolo.com>
310 * ui.c (redraw_tabline): separate the tabs with a vertical bar
312 * defaults.c (load_default_keys): bind M-< in minibuffer for mini-goto-beginning
313 (load_default_keys): bind M-> in minibuffer for mini-goto-end
315 * cmd.c (cmd_mini_goto_beginning): add mini-goto-beginning
316 (cmd_mini_goto_end): add mini-goto-end
318 * telescope.c (do_load_url): handle unknown protocols gracefully
320 * defaults.c (load_default_keys): bind [ to tab-previous
321 (load_default_keys): bind ] to tab-next
323 * ui.c (ui_init): fix crash on some libevent2
325 * defaults.c (config_setvari): add emojify-link, enabled by default
327 2021-07-15 Omar Polo <op@omarpolo.com>
329 * cmd.c (cmd_toggle_pre_wrap): add toggle-pre-wrap
331 * defaults.c (load_default_keys): bind C-z to suspend-telescope
332 (load_default_keys): bind <home>/<end> to move-beginning/end-of-line
333 (config_setvari): add dont-wrap-pre
335 * cmd.c (cmd_suspend_telescope): add suspend-telescope
337 * ui.c (do_redraw_minibuffer): show the number of completions available
339 * parse.y (parseconfig): load alternate config file per-TERM
341 * telescope.c (main): added long options --help, --version and -C/--colors
343 * defaults.h: add hide-pre-closing-line
345 * ui.c (rearrange_windows): don't flash the screen when entering the minibuffer
347 * fs.c (lock_session): use a lockfile to prevent multiple instance of telescope to run at the same time
349 * defaults.c (load_default_keys): bind t to toc
350 (load_default_keys): change key for link-select: M-l
352 * cmd.c (cmd_toc): add toc
354 2021-07-14 Omar Polo <op@omarpolo.com>
356 * defaults.c (load_default_keys): bind M-L to link-select
357 (load_default_keys): bind M-/ to swiper
359 * cmd.c (cmd_link_select): add link-select
360 (cmd_swiper): add swiper
362 * defaults.c (load_default_keys): bind M-t to tab-select
364 * cmd.c (cmd_tab_select): add tab-select
366 * defaults.c (load_default_keys): bind f5 to reload-page
367 (load_default_keys): bind r to reload-page
369 * cmd.c (cmd_reload_page): add reload-page
371 * defaults.c (load_default_keys): <up> and <down> are now bound to previous/next-completion instead of previous/next-history-item
372 (load_default_keys): bind < to load-current-url
374 * cmd.c (cmd_previous_completion): add previous-completion
375 (cmd_next_completion): add next-completion
376 (cmd_insert_current_candidate): add insert-current-candidate
378 * minibuffer.c (enter_minibuffer): support completions in minibuffer
380 2021-07-13 Omar Polo <op@omarpolo.com>
382 * pages.c: advertise B and F instead of C-M-b/C-M-f.
384 * defaults.c (load_default_keys): bind B/F to previous/next-page. I'm bad at choosing keybindings...
386 2021-07-12 Omar Polo <op@omarpolo.com>
388 * util.c (dispatch_imsg): refactor: all imsgs are completely asynchronous
390 * minibuffer.c (minibuffer_taint_hist): bugfix: allow editing minibuffer history
392 2021-07-10 Omar Polo <op@omarpolo.com>
394 * telescope.c (do_load_url): fix certificate mismatch when going back from a proxied page to a Gemini page.
396 2021-07-09 Omar Polo <op@omarpolo.com>
398 * parse.y: make some newline optional
400 2021-07-08 Omar Polo <op@omarpolo.com>
402 * defaults.c (load_default_keys): bind C-t to tab-new by default
403 (load_default_keys): bind C-w to tab-close by default
405 * telescope.c (start_child): re-exec the children processes
407 * ui.c (print_vline): bug: print the trailing face until the right column, not one less. (this would leave the last column white if !olivetti-mode and a background color for some body lines)
409 2021-07-07 Omar Polo <op@omarpolo.com>
411 * gemtext.c (detect_line_type): fix styling of empty lines inside a pre block
413 2021-07-06 Omar Polo <op@omarpolo.com>
415 * parser.c (parser_foreach_line): deal with BOM
417 * telescope.c (handle_check_cert_user_choice): fix two bug: don't crash when there's a certificate mismatch and after saving the cert, before choosing to persist it, the page gets redirected. Now when the user accept a certificate, is treated as temporary saved for the whole session.
419 * defaults.c (load_default_keys): bind M-prior/next (M-pageup/pagedown) to tab-previous and tab-next
421 2021-07-05 Omar Polo <op@omarpolo.com>
423 * defaults.c (config_setvari): add hide-pre-context: if nonzero hide the start and end line of a pre block (i.e. ```). Defaults to zero.
424 (config_setvari): add hide-pre-blocks: if nonzero hide by default the body of a pre block; push-button can be used to toggle visibility per-block. Defaults to zero.
426 * cmd.c (cmd_push_button): push-button: toggle prefermatted blocks if invoked with the point on the header
428 2021-06-26 Omar Polo <op@omarpolo.com>
430 * cmd.c (cmd_inc_fill_column): add inc-fill-column and dec-fill-column
432 * configure.ac: tagged 0.3 --- "Spaceman"
434 2021-06-25 Omar Polo <op@omarpolo.com>
436 * cmd.c (cmd_next_heading): added next-heading (C-c n)
437 (cmd_previous_heading): added previous-heading (C-c p)
439 2021-06-24 Omar Polo <op@omarpolo.com>
441 * ui.c (load_default_keys): bind > to load-url
443 * defaults.c: enable olivetti-mode by default and set fill-mode to 80
445 2021-06-23 Omar Polo <op@omarpolo.com>
447 * gemtext.c (search_title): fixed a bug where the *last* level 2 or 3 heading would be used as tab title instead of the first one.
449 * parse.y (add_proxy): add proxy support (e.g. `proxy http via gemini://localhost:1965' for the duckling proxy)
451 * cmd.c (cmd_previous_button): stay on the line in next-button if there is no next link, and the same for previous-button
453 * telescope.c (handle_imsg_buf): "humanize" byte progress (i.e. trasform XYZ bytes to something readable)
455 2021-06-22 Omar Polo <op@omarpolo.com>
457 * parse.y (colorname): support 256 colors
459 * defaults.c (config_setcolor): allow changing the colors/attributes of the tabline
461 * parse.y (attrname): allow changing the attributes
463 2021-06-21 Omar Polo <op@omarpolo.com>
465 * telescope.h (enum pairs): allow changing the background color of the body window
467 * defaults.c (config_setvari): add enable-colors (variable)
469 2021-06-20 Omar Polo <op@omarpolo.com>
471 * cmd.c (cmd_end_of_buffer): fix end-of-buffer glitch
473 2021-06-19 Omar Polo <op@omarpolo.com>
475 * ui.c (cmd_olivetti_mode): added olivetti-mode (the function)
477 * defaults.c (config_setvari): added olivetti-mode!
479 * fs.c (load_last_session): load about:help during the first startup
481 * pages.c: added about:about, about:blank and about:help pages
483 * defaults.c (config_setvari): add fill-column config to manage the max-width when filling the page.
484 (config_setvars): add new-tab-url config to specify the default url for new tabs.
486 2021-06-18 Omar Polo <op@omarpolo.com>
488 * gemini.c (try_to_connect): use the async try_to_connect even when !HAVE_ASR_RUN
490 2021-06-13 Omar Polo <op@omarpolo.com>
492 * telescope.c (main): ignore SIGPIPE: prevent telescope from dying
493 when connecting to non-tls/non-gemini servers (found by trying to
494 load a bogus ``gemini://gemini.nytpu.com'' -- the correct url for
495 the capsule is ``gemini://nytpu.com'')
497 2021-06-12 Omar Polo <op@omarpolo.com>
499 * configure.ac: tagged 0.2
501 * utf8.c (utf8_chwidth): fix tab width
503 2021-06-11 Omar Polo <op@omarpolo.com>
505 * ui.c (switch_to_tab): drop the urgent flag when switching to a tab after closing one
507 2021-05-17 Omar Polo <op@omarpolo.com>
509 * telescope.c (handle_imsg_got_meta): ask the user to save a page when it can't be rendered
511 2021-05-13 Omar Polo <op@omarpolo.com>
513 * gemtext.c (gemtext_free): heuristic to obtain the page title: if no h1 found, try with h2s and h3s
515 2021-05-12 Omar Polo <op@omarpolo.com>
517 * ui.c (handle_resize): debounce resize event
518 (cmd_forward_char): unbreak forward-char
519 added aliases for tab-{next,new,previous}
520 (redraw_tabline): display a `!' when a non-focused tab gets loaded
522 2021-04-30 Omar Polo <op@omarpolo.com>
524 * ui.c (cmd_load_url): automatic gemini:// on load-url
525 (cmd_forward_char): fix out-of-bound
527 2021-04-25 Omar Polo <op@omarpolo.com>
529 * ui.c (cmd_scroll_up): fix cmd_scroll_down/up: they scrolled two line more than what intended
531 * telescope.c (handle_check_cert_user_choice): allow saving the new certificate after mismatch
533 * fs.c (load_certs): don't crash on invalid lines in known_hosts
535 * hash.c (telescope_lookup_tofu): save certificates per (host, port) tuple, not only per-host
537 * configure.ac: tagged 0.1.1
539 * gemini.c (blocking_conn_towards): fix compilation if !HAVE_ASR_RUN
541 * phos/phos_uri.c (phos_serialize_uri): handle URIs which port is not 1965