commit - 73f2c3fc8e22040d6dbd54c4e3955bf4a08aeae9
commit + 9886bf9732750c285184211b957c1d0fffe21b4f
blob - 8b1930f121dc679ff6bbf19e2e3cf77711b1ae65
blob + ccfcc3cde3a0892912f5ffade64ebb70a6c3fd4c
--- ChangeLog
+++ ChangeLog
2021-07-17 Omar Polo <op@omarpolo.com>
+ * defaults.c (line_faces): don't underline links by default
+ add set-title option
+
* telescope.c (load_last_session): keep track of the current tab and re-focus it during next startup
2021-07-16 Omar Polo <op@omarpolo.com>
blob - 3c34d63486f53119e99ab59b2f018419038e1b51
blob + e76d1441557c908108ec337a1ca25e2a2817750b
--- defaults.c
+++ defaults.c
int hide_pre_closing_line = 0;
int dont_wrap_pre = 0;
int emojify_link = 1;
+int set_title = 1;
struct lineprefix line_prefixes[] = {
[LINE_TEXT] = { "", "" },
dont_wrap_pre = !!val;
} else if (!strcmp(var, "emojify-link")) {
emojify_link = !!val;
+ } else if (!strcmp(var, "set-title")) {
+ set_title = !!val;
} else {
return 0;
}
blob - 1d91b1fe9ee0438328449bad1c2fc216bc653857
blob + cc9bdb355f7c61e30071d814fa3d5f022e0de622
--- defaults.h
+++ defaults.h
extern int hide_pre_closing_line;
extern int dont_wrap_pre;
extern int emojify_link;
+extern int set_title;
struct lineprefix {
const char *prfx1;
blob - 2071a45e0dd3581a6b8a123d034abf4051e0a0fd
blob + e35a439c63608e583ab15f617ea4e74c5aec5da1
--- telescope.1
+++ telescope.1
.Ic olivetti-mode
if non zero.
By default is 1.
+.It set-title
+.Pq integer
+If nonzero, set the terminal title.
+Defaults to 1.
.El
.It Ic style Ar name Ar option
Change the styling of the element identified by
blob - f8e75898e806d312863cb977af8340dc670751db
blob + b8d6a18ad2d752e7578c0a29eacad9b7310ca443
--- ui.c
+++ ui.c
place_cursor(1);
doupdate();
+
+ if (set_title)
+ dprintf(1, "\033]0;%s - Telescope\a",
+ current_tab->buffer.page.title);
}
static void