Feed Advanced Search

Mar 9 2019

loh.tar added a comment to D19511: ViewPrivate: Disable read-only mode action when doc is modified.

@ngraham Nate? Your opinion to the question?

Mar 9 2019, 1:09 AM · Frameworks, Kate
loh.tar added a comment to D19621: ViewPrivate: Make deselection by arrow keys more handy.

I would recommend also hiding the blinking insertion point while text is selected.

Mar 9 2019, 1:01 AM · Frameworks, Kate

Mar 8 2019

loh.tar updated the summary of D19598: DocumentPrivate: Skip auto quotes when these looks already balanced.
Mar 8 2019, 7:39 PM · Frameworks, Kate
loh.tar requested review of D19621: ViewPrivate: Make deselection by arrow keys more handy.
Mar 8 2019, 6:37 PM · Frameworks, Kate
loh.tar set the repository for D19608: DocumentPrivate: Make bracket handling smart to R39 KTextEditor.
Mar 8 2019, 4:41 PM · Frameworks, Kate
loh.tar updated the diff for D19608: DocumentPrivate: Make bracket handling smart.
  • Fixes to pass autotests
Mar 8 2019, 2:40 PM · Frameworks, Kate
loh.tar requested review of D19608: DocumentPrivate: Make bracket handling smart.
Mar 8 2019, 10:16 AM · Frameworks, Kate
loh.tar updated the diff for D19598: DocumentPrivate: Skip auto quotes when these looks already balanced.
  • *hmpf* forgot may last cleanup change
Mar 8 2019, 7:48 AM · Frameworks, Kate
loh.tar updated the diff for D19598: DocumentPrivate: Skip auto quotes when these looks already balanced.
  • Add KateDocumentTest::testAutoBrackets
Mar 8 2019, 7:39 AM · Frameworks, Kate

Mar 7 2019

loh.tar requested review of D19598: DocumentPrivate: Skip auto quotes when these looks already balanced.
Mar 7 2019, 5:07 PM · Frameworks, Kate

Mar 6 2019

loh.tar updated the diff for D19517: DocumentPrivate: Add option "Enable Auto Reload" to ModOnHdPrompt.
  • Add option "Enable Auto Reload" to ModOnHdPrompt
  • Allow also auto reload for not read-only files
  • Only auto reload when doc is unmodified
  • Only reload when no reload is in progress, may that not enough to avoid mentioned lock up?


Issues:

  • The new button is slightly dangerous placed for my taste but with intend not nearby the normal reload button
  • No other way to disable that setting than to close/open the file
  • The reload is only triggered when the application has the focus, but that may be an intended behavior
Mar 6 2019, 4:36 PM · Frameworks, Kate
loh.tar added a comment to D16336: BuildView: Add config page with some options.

Could we get only changes 1. and 2. first?

Mar 6 2019, 2:40 PM · Kate
loh.tar updated the diff for D19367: SearchBar: Don't block GUI when enter incremental pattern.
  • Consider multi line pattern
  • Remove notes from Test Plan
Mar 6 2019, 2:34 PM · Frameworks, Kate
loh.tar added a comment to D19512: KateStatusBar: Show lock icon on modified label when in read-only mode.

Regarding icon, tooltip and save action, see also https://phabricator.kde.org/D17730#392331

Mar 6 2019, 5:46 AM · Frameworks, Kate
loh.tar updated the diff for D19512: KateStatusBar: Show lock icon on modified label when in read-only mode.
  • Use signal KTextEditor::DocumentPrivate::readWriteChanged to update icon
Mar 6 2019, 5:31 AM · Frameworks, Kate
loh.tar updated the diff for D17857: DocumentPrivate: Don't jump view when edit using 'scroll past last line'.
  • Enable ViewTest: ScrollPastEndOfDocument
********* Start testing of KateViewTest *********
Config: Using QtTest library 5.12.1, Qt 5.12.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 8.2.1 20181127)
PASS   : KateViewTest::initTestCase()
PASS   : KateViewTest::testScrollPastEndOfDocument()
PASS   : KateViewTest::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 162ms
********* Finished testing of KateViewTest *********
Mar 6 2019, 5:07 AM · Frameworks, Kate

Mar 5 2019

loh.tar added a comment to D19491: generic config interface.

Well, when it is important to be compatible, then may that needed. OTH would it be so terrible to break it?

Mar 5 2019, 7:25 PM · Frameworks, Kate
loh.tar added a comment to D19491: generic config interface.

either extra key or "CamlCase" the key we use for the command-line/kate: var line

Mar 5 2019, 7:06 PM · Frameworks, Kate
loh.tar added a comment to D19512: KateStatusBar: Show lock icon on modified label when in read-only mode.

Semi-relatedly: can we make this little bottom-left corner icon not not have a hover effect if it's not clickable, and have a tooltip when you hover over it so you can figure out what it means? It appeared recently and I found myself very confused by it due to those issues.

Mar 5 2019, 4:59 PM · Frameworks, Kate
loh.tar added inline comments to D17857: DocumentPrivate: Don't jump view when edit using 'scroll past last line'.
Mar 5 2019, 4:52 PM · Frameworks, Kate
loh.tar updated the diff for D17857: DocumentPrivate: Don't jump view when edit using 'scroll past last line'.
  • Fix 399014 in a way that should be reviewed!
  • Fix also 306745
  • Autotest looks good
Mar 5 2019, 4:50 PM · Frameworks, Kate
loh.tar added a comment to D17857: DocumentPrivate: Don't jump view when edit using 'scroll past last line'.

Um, this patch sucks, sorry! Will try again or re-open bug report :-/

Mar 5 2019, 6:09 AM · Frameworks, Kate

Mar 4 2019

loh.tar added a comment to D16336: BuildView: Add config page with some options.

Not showing the toolview on the start of a new build and just showing the toolview if you try to start a new build when a build is already running is too magic behavior for my taste.

Mar 4 2019, 8:41 PM · Kate
loh.tar added a comment to D19397: [RFC] Defuse KateMainWindow::showModOnDiskPrompt.

Surprising quickly commited. There was some questions.

Mar 4 2019, 8:12 PM · Kate
loh.tar abandoned D18894: [RFC] General config interface.

In favor of D19491

Mar 4 2019, 8:03 PM · Frameworks, Kate
loh.tar updated subscribers of D19511: ViewPrivate: Disable read-only mode action when doc is modified.

There is some reason why I came to this idea. ATM is that thought not so sharp present :-/
But it was related to the auto-reload patch and the lock icon in the bar.

Mar 4 2019, 7:43 PM · Frameworks, Kate
loh.tar added a comment to D19367: SearchBar: Don't block GUI when enter incremental pattern.

The batch processing approach is sane.

Mar 4 2019, 7:15 PM · Frameworks, Kate
loh.tar added a comment to D19517: DocumentPrivate: Add option "Enable Auto Reload" to ModOnHdPrompt.

I would like to expand this patch by "auto reload when file is empty"
Sometimes I have the case that a session is opened where some files are gone due to work on a different branch. Switching the branch then caused to ask unneeded.

Mar 4 2019, 4:31 PM · Frameworks, Kate
loh.tar updated the test plan for D19517: DocumentPrivate: Add option "Enable Auto Reload" to ModOnHdPrompt.
Mar 4 2019, 4:19 PM · Frameworks, Kate
loh.tar updated the test plan for D19517: DocumentPrivate: Add option "Enable Auto Reload" to ModOnHdPrompt.
Mar 4 2019, 3:29 PM · Frameworks, Kate
loh.tar requested review of D19517: DocumentPrivate: Add option "Enable Auto Reload" to ModOnHdPrompt.
Mar 4 2019, 3:26 PM · Frameworks, Kate
loh.tar added a comment to D19512: KateStatusBar: Show lock icon on modified label when in read-only mode.

You will notice that not all possible switch cases are checked. Should you like this patch in general I will review this depending on D19511.

Mar 4 2019, 2:50 PM · Frameworks, Kate
loh.tar requested review of D19512: KateStatusBar: Show lock icon on modified label when in read-only mode.
Mar 4 2019, 1:59 PM · Frameworks, Kate
loh.tar requested review of D19511: ViewPrivate: Disable read-only mode action when doc is modified.
Mar 4 2019, 1:47 PM · Frameworks, Kate
loh.tar updated the summary of D19397: [RFC] Defuse KateMainWindow::showModOnDiskPrompt.
Mar 4 2019, 1:38 AM · Kate

Mar 1 2019

loh.tar added a comment to D19407: ModeBase::goToPos: Ensure jump target is valid.

Ah, r.toEditorRange().isValid() is the trick, yes, would work.

Mar 1 2019, 7:27 PM · Frameworks, Kate
loh.tar updated the summary of D19407: ModeBase::goToPos: Ensure jump target is valid.
Mar 1 2019, 7:21 PM · Frameworks, Kate
loh.tar added a comment to D19407: ModeBase::goToPos: Ensure jump target is valid.

Hm, who is passing an invalid range here?

Mar 1 2019, 7:20 PM · Frameworks, Kate
loh.tar requested review of D19450: DocumentPrivate: Respect indention mode when block selection.
Mar 1 2019, 6:37 PM · Frameworks, Kate
loh.tar requested review of D19446: DocumentPrivate: Support auto bracket in block selection mode.
Mar 1 2019, 5:23 PM · Frameworks, Kate
loh.tar added a comment to D19283: try to improve painting height for text lines - bug 403868 avoid to cut _ and other parts still broken: double height things like mixed english/arab, see bug 404713.

Sorry when I'm wrong, but it sounds to me that this bug is somehow relatated or maybe a solution, there is patch offered.
Bug 328837 - Add configurable line height to katepart

Mar 1 2019, 1:54 PM · Frameworks, Kate

Feb 28 2019

loh.tar added a comment to D19416: Restore the search wrapped message to its former type and position..
@loh.tar The line edit in the search bar was once used before the floating message widgets in the view even existed. I guess it's legacy and possibly can be removed?

You don't mean the widget through which you enter the pattern to search on I hope?

Feb 28 2019, 9:22 PM · Frameworks, Kate, KTextEditor
loh.tar requested review of D19427: ViInputMode: Remove unsupported text attributes from the status bar.
Feb 28 2019, 7:21 PM · Frameworks, Kate
loh.tar added a comment to D19416: Restore the search wrapped message to its former type and position..

I quote myself from D19367 TEST PLAN Potential TODOs:

Feb 28 2019, 4:53 PM · Frameworks, Kate, KTextEditor
loh.tar requested review of D19425: DocumentPrivate: Support to set dictionary on block selection.
Feb 28 2019, 4:38 PM · Frameworks, Kate
loh.tar requested review of D19408: [RFC] Avoid deadlock in use of vi mode searchbar .
Feb 28 2019, 4:45 AM · Frameworks, Kate
loh.tar updated the summary of D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.
Feb 28 2019, 3:46 AM · Frameworks, Kate
loh.tar added a comment to D19407: ModeBase::goToPos: Ensure jump target is valid.
  • Is "Fixed in" the right term and number?
  • I noticed that the cursor jumps one line where I would expect not to move, but I don't use vi-mode
Feb 28 2019, 3:15 AM · Frameworks, Kate
loh.tar requested review of D19407: ModeBase::goToPos: Ensure jump target is valid.
Feb 28 2019, 3:13 AM · Frameworks, Kate

Feb 27 2019

loh.tar updated the test plan for D19397: [RFC] Defuse KateMainWindow::showModOnDiskPrompt.
Feb 27 2019, 8:55 PM · Kate
loh.tar requested review of D19397: [RFC] Defuse KateMainWindow::showModOnDiskPrompt.
Feb 27 2019, 8:31 PM · Kate
loh.tar updated the diff for D19367: SearchBar: Don't block GUI when enter incremental pattern.
  • Don't trigger onIncPatternChanged when update search history
  • Only save search history on some change
Feb 27 2019, 2:42 PM · Frameworks, Kate
loh.tar added a comment to D19367: SearchBar: Don't block GUI when enter incremental pattern.

To my surprise are two test fail.
SearchBarTest::testFindNextIncremental()
SearchBarTest::testSetMatchCaseIncremental()
Doing the same by hand looks OK...hm

Feb 27 2019, 6:22 AM · Frameworks, Kate

Feb 26 2019

loh.tar updated the diff for D19367: SearchBar: Don't block GUI when enter incremental pattern.
  • Fix my test chunkSize to some real value
Feb 26 2019, 8:10 PM · Frameworks, Kate
loh.tar added a comment to D18793: Handle text completion with block selection mode.

Fix this patch also Bug 382213 ? - do not do auto-brackets when block mode is enabled
Well, bad title/request. I would expect that each line get the bracket.

Feb 26 2019, 7:37 PM · Frameworks, Kate
loh.tar requested review of D19367: SearchBar: Don't block GUI when enter incremental pattern.
Feb 26 2019, 7:22 PM · Frameworks, Kate

Feb 25 2019

loh.tar added a comment to D19283: try to improve painting height for text lines - bug 403868 avoid to cut _ and other parts still broken: double height things like mixed english/arab, see bug 404713.

Personally I would avoid doxygen style or multiline comments in code and prefer //

Feb 25 2019, 6:25 AM · Frameworks, Kate

Feb 24 2019

loh.tar updated subscribers of D19193: KateSearchBar: Show also search has wrapped hint in nextMatchForSelection() aka Ctrl-H.

For my taste is that hint not really right/useful. That should not be shown when the document begin/end was wrapped but when the initially staring point reached.

I think that may also fix the case example in https://bugs.kde.org/show_bug.cgi?id=398731

Feb 24 2019, 7:16 AM · Frameworks, Kate
loh.tar accepted D19258: Do not print indent lines.

Just my 2Cents

Feb 24 2019, 6:53 AM · Frameworks, Kate

Feb 23 2019

loh.tar requested review of D19254: [RFC] KateRenderer: Show tabs and space characters the smart way.
Feb 23 2019, 3:11 PM · Frameworks, Kate

Feb 22 2019

loh.tar added a comment to D19193: KateSearchBar: Show also search has wrapped hint in nextMatchForSelection() aka Ctrl-H.

For my taste is that hint not really right/useful. That should not be shown when the document begin/end was wrapped but when the initially staring point reached.

Feb 22 2019, 5:59 PM · Frameworks, Kate
loh.tar updated the diff for D18125: KateStatusBar: Add dictionary button.
  • Remove '-w_accents -variant_0' and such from dict-code to keep it small and clean
  • Fix to show correct dict when cursor is at end of a range
  • Add signal caretChangedRange to ViewPrivate, much less overhead this way to update the info button
Feb 22 2019, 3:26 PM · Frameworks, Kate

Feb 21 2019

loh.tar added a comment to D19193: KateSearchBar: Show also search has wrapped hint in nextMatchForSelection() aka Ctrl-H.

For my taste is that hint not really right/useful. That should not be shown when the document begin/end was wrapped but when the initially staring point reached.

Feb 21 2019, 4:59 AM · Frameworks, Kate
loh.tar requested review of D19193: KateSearchBar: Show also search has wrapped hint in nextMatchForSelection() aka Ctrl-H.
Feb 21 2019, 4:51 AM · Frameworks, Kate

Feb 20 2019

loh.tar updated the diff for D19131: [RFC] DocumentPrivate: Fix "auto-rewrap" in static wrap mode.
  • Do not wrap in some cases with block selection
  • Auto wrap once wrapped line again also when static wrap is disabled
Feb 20 2019, 4:26 PM · Frameworks, Kate

Feb 19 2019

loh.tar updated the diff for D19131: [RFC] DocumentPrivate: Fix "auto-rewrap" in static wrap mode.

Fix mentioned misplaced cursor.
The reason was a special treatment for past-end-of-line cursors. The fix changed/fixed also that now the cursor is moved by one not two positions in this case.

Feb 19 2019, 2:58 PM · Frameworks, Kate

Feb 18 2019

loh.tar requested review of D19131: [RFC] DocumentPrivate: Fix "auto-rewrap" in static wrap mode.
Feb 18 2019, 8:01 PM · Frameworks, Kate

Feb 15 2019

loh.tar requested review of D19051: [RFC]DocumentPrivate: Auto unwrap line when text is removed.
Feb 15 2019, 7:11 PM · Frameworks, Kate

Feb 14 2019

loh.tar updated the diff for D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.
  • Add autotest
  • Don't wrap twice when static wrap is set to avoid bad result
Feb 14 2019, 2:31 PM · Frameworks, Kate
loh.tar added inline comments to D18744: Add action in Edit menu to select the text on current page.
Feb 14 2019, 6:26 AM · Documentation, Okular

Feb 13 2019

loh.tar added a comment to D17599: Confirm closing muliple tabs..

Have other still issues with this patch?

Feb 13 2019, 2:26 PM · Kate

Feb 10 2019

loh.tar added a comment to D18894: [RFC] General config interface.

Contrary to my announcement to use an enum as key I chosed the string for maximum simplicity.
Yes, this way you notice a typo only at runtime, but in any case you have to know how some stuff has to be written. An enum key offer not only complile time checks but also to use QVector instead of QHash which may be more perfomand but need some more effort when add new stuff and probably longer longer keys, prefixed by namespace.

Feb 10 2019, 4:17 PM · Frameworks, Kate
loh.tar requested review of D18894: [RFC] General config interface.
Feb 10 2019, 9:21 AM · Frameworks, Kate

Feb 6 2019

loh.tar added a comment to D18744: Add action in Edit menu to select the text on current page.

Here a link how it is done in Kate/KTextEditor
https://cgit.kde.org/ktexteditor.git/tree/src/view/kateviewinternal.cpp#n2710

Feb 6 2019, 2:45 PM · Documentation, Okular

Feb 5 2019

loh.tar added a comment to D18744: Add action in Edit menu to select the text on current page.

I suggest:

Feb 5 2019, 4:22 PM · Documentation, Okular
loh.tar updated the diff for D18117: DocManager: Don't show load trouble popup messages .
  • rebase on master
Feb 5 2019, 2:31 PM · Kate

Feb 4 2019

loh.tar updated the diff for D18116: Add TODO KF6 note .
  • Move to correct function
Feb 4 2019, 7:14 PM · Frameworks, Kate

Feb 3 2019

loh.tar updated the diff for D18125: KateStatusBar: Add dictionary button.
  • Apply nullptr check
  • Add non preferred dict to menu chose by user
  • Reorder actions
  • Remove gone "Spellcheck Selection" action
Feb 3 2019, 11:50 AM · Frameworks, Kate
loh.tar added a comment to D17599: Confirm closing muliple tabs..
  1. Remove "Cancel" button
Feb 3 2019, 9:22 AM · Kate
loh.tar set the repository for D18117: DocManager: Don't show load trouble popup messages to R40 Kate.
Feb 3 2019, 7:55 AM · Kate
loh.tar added a comment to D18116: Add TODO KF6 note .

Just to be sure:

We can apply D18117 and don't need to change here anything or?

Feb 3 2019, 7:53 AM · Frameworks, Kate
loh.tar updated the diff for D18116: Add TODO KF6 note .
  • Revert all
  • Add TODO KF6 note to header
  • Update Summary
Feb 3 2019, 7:50 AM · Frameworks, Kate

Feb 2 2019

loh.tar added a comment to D18663: KateSpellCheckDialog: Remove action "Spellcheck Selection".

For my taste could be "Spelling (from cursor)" the only offered action (logic). Always to check from the start is rarely useful, but I guess no one like that idea.

Feb 2 2019, 8:42 AM · Frameworks, Kate
loh.tar requested review of D18663: KateSpellCheckDialog: Remove action "Spellcheck Selection".
Feb 2 2019, 8:35 AM · Frameworks, Kate

Feb 1 2019

loh.tar updated the diff for D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.
  • Move logic into document
  • Tiny docu fix + cosmettic
Feb 1 2019, 2:46 PM · Frameworks, Kate

Jan 30 2019

loh.tar added a comment to D17661: ViewConfig: Add 'Dynamic Wrap At Static Marker' option.

I often struggle with QtCreator but I can't remember what happens there, sorry.

Jan 30 2019, 6:20 PM · Frameworks, Kate
loh.tar added a comment to D18317: Display an error message if loading a dictionary fails.

My observations:

Jan 30 2019, 3:20 PM · Frameworks

Jan 25 2019

loh.tar added a comment to D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.

also don't change the behavior of wordwrapping that is used by the view compared to what we would get by calling wordwrap on the document directly

Jan 25 2019, 2:31 PM · Frameworks, Kate

Jan 24 2019

loh.tar added a comment to D17693: Add option to treat some chars also as "auto bracket" only when we have a selection.

If you want to get this behavior for Markdown

Jan 24 2019, 4:36 PM · Frameworks, Kate
loh.tar added a comment to D17693: Add option to treat some chars also as "auto bracket" only when we have a selection.

There is an enum KSyntaxHighlighting::Theme::TextStyle::Operator but I can't find a function to test for that.
Beside that I guess it would not work anyway. If it's an operator or not need a call to some "update highlight" to investigate the context.

Jan 24 2019, 2:14 PM · Frameworks, Kate
loh.tar added a comment to D17693: Add option to treat some chars also as "auto bracket" only when we have a selection.

the selection becomes wrapped in two ? - is that right?

Jan 24 2019, 6:29 AM · Frameworks, Kate

Jan 23 2019

loh.tar updated the diff for D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.
  • Update 'What's This' hint to reflect new behaviour and to be more precise
  • Update 'What's This' hint of dyn wrap too to be more precise
  • Update/clear Summary
Jan 23 2019, 2:39 PM · Frameworks, Kate

Jan 22 2019

loh.tar updated the diff for D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable.
  • Use std::unique_ptr for the cursor
  • Oops!? Use 'if' instead of unneeded 'while' loop which also avoid 'goto'
Jan 22 2019, 8:13 PM · Frameworks, Kate
loh.tar updated the diff for D17693: Add option to treat some chars also as "auto bracket" only when we have a selection.
  • const QChar as value, not reference
  • Add , ; - + ^ ° § & just for completeness
Jan 22 2019, 2:26 PM · Frameworks, Kate

Jan 21 2019

loh.tar updated the diff for D18116: Add TODO KF6 note .
  • Don't set m_openingErrorMessage in KateBuffer::openFile
  • m_openingErrorMessage is now nowhere set
Jan 21 2019, 9:34 PM · Frameworks, Kate
loh.tar updated the diff for D18117: DocManager: Don't show load trouble popup messages .
  • Only set "no success" when doc is empty
  • Remove unneded stuff
Jan 21 2019, 9:26 PM · Kate
loh.tar added a comment to D18117: DocManager: Don't show load trouble popup messages .

> A really new file would be closed too.

Jan 21 2019, 3:24 PM · Kate
loh.tar added a comment to D18117: DocManager: Don't show load trouble popup messages .

So, well, yes, without to change the logic in D18116 (but still apply that to remove unneded text) it work as needed.

Jan 21 2019, 2:53 PM · Kate
loh.tar added a comment to D18117: DocManager: Don't show load trouble popup messages .
  • if we just keep the code in ktexteditor as is
  • we should just set openSuccess to false if we have an doc->openingError() and the document is empty
Jan 21 2019, 6:15 AM · Kate
loh.tar added a comment to D18125: KateStatusBar: Add dictionary button.

m_dictionaryGroup->checkedAction() might be null.

Jan 21 2019, 5:53 AM · Frameworks, Kate