From ed164496a00bfa8e1d73ebdd6645fc123f4ddf1e Mon Sep 17 00:00:00 2001 From: somas95 Date: Thu, 26 Jul 2018 19:36:23 +0200 Subject: [PATCH 1/5] update version --- data/ui/About.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/ui/About.ui b/data/ui/About.ui index 1f2e3cc..55d5f57 100644 --- a/data/ui/About.ui +++ b/data/ui/About.ui @@ -8,7 +8,7 @@ center dialog Uberwriter - 2.1.0 + 2.1.1 Copyright (C) 2018, Wolf Vollprecht http://uberwriter.github.io/uberwriter Uberwriter website From b09fbba870d498aa8f41eea4e3053554f3e3ebef Mon Sep 17 00:00:00 2001 From: somas95 Date: Fri, 27 Jul 2018 18:03:21 +0200 Subject: [PATCH 2/5] change icons to symbolic ones --- data/ui/UberwriterWindow.ui | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/data/ui/UberwriterWindow.ui b/data/ui/UberwriterWindow.ui index 5f2d7e8..5f5d041 100644 --- a/data/ui/UberwriterWindow.ui +++ b/data/ui/UberwriterWindow.ui @@ -11,13 +11,13 @@ True False - gtk-go-up + go-up-symbolic True False Next Match - gtk-go-down + go-down-symbolic True @@ -39,7 +39,7 @@ True False Open Replace - gtk-find-and-replace + edit-find-replace-symbolic True @@ -50,7 +50,6 @@ True False Activate Regex - gtk-find FullscreenOverlay @@ -277,7 +276,7 @@ True True - gtk-find + edit-find-symbolic False False @@ -333,6 +332,7 @@ False + aA True True True @@ -347,6 +347,7 @@ + (.*) True True True @@ -413,7 +414,7 @@ True True True - gtk-find-and-replace + edit-find-replace-symbolic True From b39b89a261602436d0180b11e12349cf7d54d00a Mon Sep 17 00:00:00 2001 From: somas95 Date: Fri, 27 Jul 2018 19:44:28 +0200 Subject: [PATCH 3/5] Highlight lines on click rather than on edit on focus mode --- uberwriter/MarkupBuffer.py | 2 +- uberwriter/UberwriterWindow.py | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/uberwriter/MarkupBuffer.py b/uberwriter/MarkupBuffer.py index ef4a36d..ff5388b 100644 --- a/uberwriter/MarkupBuffer.py +++ b/uberwriter/MarkupBuffer.py @@ -126,7 +126,7 @@ class MarkupBuffer(): "LINK": re.compile(r"\(http(.+?)\)") } - def markup_buffer(self, mode=0): + def markup_buffer(self, mode=0, *_args): buf = self.TextBuffer # Test for shifting first line diff --git a/uberwriter/UberwriterWindow.py b/uberwriter/UberwriterWindow.py index eff3373..88d97f4 100644 --- a/uberwriter/UberwriterWindow.py +++ b/uberwriter/UberwriterWindow.py @@ -178,6 +178,8 @@ class UberwriterWindow(Window): self.check_scroll(self.TextBuffer.get_insert()) if self.spellcheck != False: self.SpellChecker._misspelled.set_property('underline', 0) + self.click_event = self.TextEditor.connect("button-release-event", + self.on_focusmode_click) else: self.remove_typewriter() self.focusmode = False @@ -194,6 +196,13 @@ class UberwriterWindow(Window): self.check_scroll() if self.spellcheck != False: self.SpellChecker._misspelled.set_property('underline', 4) + _click_event = self.TextEditor.disconnect(self.click_event) + + def on_focusmode_click(self, *_args): + """call MarkupBuffer to mark as bold the line where the cursor is + """ + + self.MarkupBuffer.markup_buffer(1) def scroll_smoothly(self, widget, frame_clock, data=None): if self.smooth_scroll_data['target_pos'] == -1: @@ -424,7 +433,7 @@ class UberwriterWindow(Window): filechooser.destroy() return Gtk.ResponseType.CANCEL - def copy_html_to_clipboard(self, widget=None, date=None): + def copy_html_to_clipboard(self, widget=None, _date=None): """Copies only html without headers etc. to Clipboard""" args = ['pandoc', '--from=markdown', '-smart', '-thtml'] From 600f4b9c3776f499ad8ae278958e21934a511423 Mon Sep 17 00:00:00 2001 From: somas95 Date: Fri, 27 Jul 2018 19:44:57 +0200 Subject: [PATCH 4/5] Delete unused images --- data/ui/UberwriterWindow.ui | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/data/ui/UberwriterWindow.ui b/data/ui/UberwriterWindow.ui index 5f5d041..162d6f9 100644 --- a/data/ui/UberwriterWindow.ui +++ b/data/ui/UberwriterWindow.ui @@ -19,11 +19,6 @@ Next Match go-down-symbolic - - True - False - gtk-execute - True False @@ -41,16 +36,6 @@ Open Replace edit-find-replace-symbolic - - True - False - gtk-find-and-replace - - - True - False - Activate Regex - FullscreenOverlay True @@ -337,7 +322,6 @@ True True Case Sensitive - case_sensitiv False @@ -351,7 +335,6 @@ True True True - regex1 False @@ -459,7 +442,6 @@ True True True - reemplaza1 False From 2b2568128dc081b172e6aab845e3604a17af5404 Mon Sep 17 00:00:00 2001 From: somas95 Date: Fri, 27 Jul 2018 19:46:04 +0200 Subject: [PATCH 5/5] update version --- data/ui/About.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/ui/About.ui b/data/ui/About.ui index 55d5f57..f2f1368 100644 --- a/data/ui/About.ui +++ b/data/ui/About.ui @@ -8,7 +8,7 @@ center dialog Uberwriter - 2.1.1 + 2.1.2 Copyright (C) 2018, Wolf Vollprecht http://uberwriter.github.io/uberwriter Uberwriter website