[kate] [Bug 433455] Unable to save trailing spaces

2022-01-08 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #36 from Waqar Ahmed  ---
> Why did you break this behaviour making the product worse?

This has been explained above, perhaps you can reread the thread.

Also, saying that you use it for decades and who uses longer as if you somehow
own Kate or the developers owe you something is not good, and is definitely not
the case. And you certainly haven't been using Kate for longer than at least 2
people in this thread, one of whom is the person who created Kate and has been
maintaining it ever since. Moreover ordering around makes people turn against
you. This is free software, we made it in our free time, you didn't hire us to
make it for you or fix bugs for you.

However, if you really want to fix this for yourself here's what you can do to
possibly get the behavior you want.
- Open Kate documentation and read about Kate scripting
- turn off strip trailing spaces in options
- write a script that strip spaces as you see fit.

Alternatively you can write a plugin too or define an "external tool" that will
strip spaces from your document however you like.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2022-01-08 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #35 from Dmitri Koulikoff  ---
(In reply to Christoph Cullmann from comment #34)
> As said, there is no consensus to add yet-another-variant again.
> I will close this, please refrain from re-open it.
> The last 6 months no Kate developer did want to work on this and this won't
> change.

I am working with Kate for the decades. And it has the advantage for the other
text editor that I can always keep the training spaces to the left of the
cursor. Why did you break this behaviour making the product worse?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2022-01-08 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

Christoph Cullmann  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 Resolution|--- |NOT A BUG

--- Comment #34 from Christoph Cullmann  ---
As said, there is no consensus to add yet-another-variant again.
I will close this, please refrain from re-open it.
The last 6 months no Kate developer did want to work on this and this won't
change.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-10-04 Thread Alexander Potashev
https://bugs.kde.org/show_bug.cgi?id=433455

Alexander Potashev  changed:

   What|Removed |Added

 CC||aspotas...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-06-18 Thread Alberto Salvia Novella
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #33 from Alberto Salvia Novella  ---
Related: End line to have a predictable behavior:
https://bugs.kde.org/show_bug.cgi?id=438872

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-30 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #32 from Dmitri Koulikoff  ---
(In reply to Kåre Särs from comment #30)
> What is the use-case for not removing trailing spaces on one line where you
> happen to have your cursor?

  veggero had explainded. For me the every-day's use-case is the following. I
write the specs, and after one or more specs is written I have a new line with
the only spaces to start a new spec with the required indent. Then I save the
file in order to run the spec suit to check that the previous code is written
correct. And at this time all spaces disappear and the cursor moves left to the
start of the line. To continue I have to type the missing spaces again. This is
really very annoying. Believe me.

> I can imagine a situation where you have random trailing spaces in a
> document and you do not want to destroy git history or if you want to edit a
> markdown file, that might need two empty spaces at the end of a line...

  Yes, and this is the second case not so often happened but also a typical, I
have an old file from a git repo and need to add several lines and be sure I
have not left any trailing spaces after adding a hundred of lines except the
one. If the trailing spaces under cursor are preserved I can do that easy
without checking every previously entered line.

> Wouldn't it be a better solution to have a separate save action that never
> strips trailing spaces?

  Yes this option is present. But I never used it as always, if I need to keep
the trailing spaces, it is related only to the few lines.

> The previous behavior was a mistake that was introduced during a time when
> KDevelop crashed a bit too often and saving often in KDevelop was common...

  The previous behaviour was not a mistake. It was very clever done.

  To summarise, I suggest to leave the 3 select options in "Remove trailing
spaces" item:
- never
- always
- only on modified lines

  AND for the latter option the spaces to the left of the cursor must be
preserved. It is quite safe as when one saves the file again later with the
cursor placed somewhere else, the previously kept spaces will be removed. But
if I need them to be kept I will just reload the file after the save and these
spaces will survive the next saves.

  As the alternative to the above you can add a checkbox with "keep the
trailing lines to the left of the cursor" to make the behaviour to be more
declared. And then it should affect the option "always".

  And the last solution to have 4 options with
- only on modified lines
- only on modified lines keeping them to the left of cursor

  I hope I was clear enough explaining why the preservation of the training
spaces to the left of the cursor is urgent required and how to make it work
correctly.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #31 from Christoph Cullmann  ---
I am actually with Kåre here.

Ever since Kate got vi-like swap files to recover data, I had close to zero
data loss in Kate in the last x years and stopped to save each second.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Kåre Särs
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #30 from Kåre Särs  ---
What is the use-case for not removing trailing spaces on one line where you
happen to have your cursor?

I can imagine a situation where you have random trailing spaces in a document
and you do not want to destroy git history or if you want to edit a markdown
file, that might need two empty spaces at the end of a line...

My experience of these situations is that you almost always have multiple lines
that should not be stripped.


Wouldn't it be a better solution to have a separate save action that never
strips trailing spaces? This could be used in the rare situations where you
actually want trailing spaces.


If it is only about saving the document often and not wanting to loose the
indentation, I do not really see the point... You should not have to save that
often and why would you save something that is half done? Re-indenting is just
a mater of executing the align action.

Why add an option-workaround for "bad habits" ;)

The previous behavior was a mistake that was introduced during a time when
KDevelop crashed a bit too often and saving often in KDevelop was common...

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #29 from Dmitri Koulikoff  ---
Or it can be the default behaviour as earlier without a special setting.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #28 from Dmitri Koulikoff  ---
Best if "keep the spaces under cursor" is a check-box.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #27 from Dmitri Koulikoff  ---
Yes, there is a misunderstanding. Of course, the spaces under the cursor must
be preserved.

I meant something others. 

I need the option: Remove the trailing spaces: on modified lines not to remove
the spaces under the cursor. 

Exactly as it was working before.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Waqar Ahmed
https://bugs.kde.org/show_bug.cgi?id=433455

Waqar Ahmed  changed:

   What|Removed |Added

 CC||waqar@gmail.com

--- Comment #26 from Waqar Ahmed  ---
The option "Keep spaces to the left" is just noise and makes zero sense to me.
For the case where you want to keep the spaces in an indentation this is a bad
solution because if you accidentally had your cursor on 3rd column, you will
have one trailing space in front of the cursor. This just results in weird
behavior and possibly more bug reports asking for specialization of this
behavior. 

One can think about not removing spaces from the *current* line **if** it is
empty. However, I think our current way is fine and consistent with 99% of the
rest of the world of editors.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread veggero
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #25 from veggero  ---
> Perhaps I misunderstand this now: veggero wants the now reverted stuff back, 
> or not?

Yes, I'd like the original fix to be re-introduced; the one that Dmitri called
useless (it's not!)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #24 from Christoph Cullmann  ---
(In reply to Dmitri Koulikoff from comment #23)
> > Perhaps I misunderstand this now: veggero wants the now reverted stuff back,
> > or not?
> 
> yes, me too.

You are aware, that the stuff I reverted you called useless a bit below here?

I am speaking about

Git commit d0de9d9088b271bd239c52b5973c492e41194854 by Christoph Cullmann.
Committed on 24/05/2021 at 18:07.
Pushed by cullmann into branch 'master'.

Revert "Add option to keep spaces to the left of cursor when saving"

This reverts commit 21c0431b7a04dceb4a7591b324e801a2f3aa6f95.

remove the new option, the original reporter of this bug
isn't happy with it

M  +0-5src/dialogs/opensaveconfigwidget.ui
M  +5-24   src/document/katedocument.cpp
M  +5-6src/utils/kateconfig.h

https://invent.kde.org/frameworks/ktexteditor/commit/d0de9d9088b271bd239c52b5973c492e41194854

Perhaps we just don't talk about the same stuff ;=)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #23 from Dmitri Koulikoff  ---
> Perhaps I misunderstand this now: veggero wants the now reverted stuff back,
> or not?

yes, me too.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #22 from Dmitri Koulikoff  ---
> KTextEditor behaves as intended.

  No, you are wrong. Intended was as I have shown. 

  I use Kate more than 20 years. (who uses longer, please, raise your hand)
And the only thing I'm asking for is to keep the original behaviour. It was
very clever designed and worked well for the decades.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #21 from Christoph Cullmann  ---
(In reply to Dmitri Koulikoff from comment #19)
> (In reply to veggero from comment #18)
> > Hi
> > I humbly ask for the option to be added back. I understand that the
> > behaviour of the bug reporter was not good; still, I ask you to consider
> > that this could be an actually useful feature. My use case is: I'm writing
> > code, I press enter to write a new line, I save the file just for sure and I
> > have to re-indent.
> > The option was absolutely perfect for me and I really appreciate it.
> > I won't make a lot of rumor around this because I understand how you feel,
> > and if you decide to not reintroduce the option it's fine, but I'd still
> > like to say that I really liked it and was very sad to see it gone.
> > Niccolò
> 
> 
> Exactly, veggero, exactly the same problem with me. And I am sure for many
> others developers.

Perhaps I misunderstand this now: veggero wants the now reverted stuff back, or
not?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #20 from Dmitri Koulikoff  ---
Created attachment 138866
  --> https://bugs.kde.org/attachment.cgi?id=138866=edit
inteded was this

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-29 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

Dmitri Koulikoff  changed:

   What|Removed |Added

 Status|RESOLVED|REPORTED
 Resolution|FIXED   |---
 Ever confirmed|1   |0

--- Comment #19 from Dmitri Koulikoff  ---
(In reply to veggero from comment #18)
> Hi
> I humbly ask for the option to be added back. I understand that the
> behaviour of the bug reporter was not good; still, I ask you to consider
> that this could be an actually useful feature. My use case is: I'm writing
> code, I press enter to write a new line, I save the file just for sure and I
> have to re-indent.
> The option was absolutely perfect for me and I really appreciate it.
> I won't make a lot of rumor around this because I understand how you feel,
> and if you decide to not reintroduce the option it's fine, but I'd still
> like to say that I really liked it and was very sad to see it gone.
> Niccolò


Exactly, veggero, exactly the same problem with me. And I am sure for many
others developers.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-27 Thread veggero
https://bugs.kde.org/show_bug.cgi?id=433455

veggero  changed:

   What|Removed |Added

 CC||niccolo.venera...@gmail.com

--- Comment #18 from veggero  ---
Hi
I humbly ask for the option to be added back. I understand that the behaviour
of the bug reporter was not good; still, I ask you to consider that this could
be an actually useful feature. My use case is: I'm writing code, I press enter
to write a new line, I save the file just for sure and I have to re-indent.
The option was absolutely perfect for me and I really appreciate it.
I won't make a lot of rumor around this because I understand how you feel, and
if you decide to not reintroduce the option it's fine, but I'd still like to
say that I really liked it and was very sad to see it gone.
Niccolò

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-24 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

Christoph Cullmann  changed:

   What|Removed |Added

 Resolution|INTENTIONAL |FIXED
  Latest Commit|https://invent.kde.org/fram |https://invent.kde.org/fram
   |eworks/ktexteditor/commit/2 |eworks/ktexteditor/commit/d
   |1c0431b7a04dceb4a7591b324e8 |0de9d9088b271bd239c52b5973c
   |01a2f3aa6f95|492e41194854

--- Comment #17 from Christoph Cullmann  ---
Git commit d0de9d9088b271bd239c52b5973c492e41194854 by Christoph Cullmann.
Committed on 24/05/2021 at 18:07.
Pushed by cullmann into branch 'master'.

Revert "Add option to keep spaces to the left of cursor when saving"

This reverts commit 21c0431b7a04dceb4a7591b324e801a2f3aa6f95.

remove the new option, the original reporter of this bug
isn't happy with it

M  +0-5src/dialogs/opensaveconfigwidget.ui
M  +5-24   src/document/katedocument.cpp
M  +5-6src/utils/kateconfig.h

https://invent.kde.org/frameworks/ktexteditor/commit/d0de9d9088b271bd239c52b5973c492e41194854

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-24 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

Christoph Cullmann  changed:

   What|Removed |Added

 Resolution|--- |INTENTIONAL
 Status|REOPENED|RESOLVED

--- Comment #16 from Christoph Cullmann  ---
(In reply to Dmitri Koulikoff from comment #15)
> (In reply to Christoph Cullmann from comment #14)
> > I am sorry, but I don't see that we want to support this.
> > 
> > I actually would then even say we should remove that other extra option
> > again.
> > 
> > On the other side this is now even already documented and I don't want to
> > waste the time of our documentation writers/translators with this.
> > 
> > @dhaumann, @batrina, what do you think?
> 
> this is the functionality that worked in kde4, why should it be broken in
> kde5?

In your opinion this is broken, but for others the new behaviors we support are
an improvement.
This was intentionally changed.

As said, I don't want to support the variant you propose.
And I would rather remove the one we added again.

Therefore I close this bug.
KTextEditor behaves as intended.

If this is not the behavior you want, I am sorry.
No solution can fit all needs, but we can't add all features that are
requested.
(and likely not interesting for a majority of the users, given this is the
first wish in that way since >> 5 years of KDE Frameworks 5 existence)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-24 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #15 from Dmitri Koulikoff  ---
(In reply to Christoph Cullmann from comment #14)
> I am sorry, but I don't see that we want to support this.
> 
> I actually would then even say we should remove that other extra option
> again.
> 
> On the other side this is now even already documented and I don't want to
> waste the time of our documentation writers/translators with this.
> 
> @dhaumann, @batrina, what do you think?

this is the functionality that worked in kde4, why should it be broken in kde5?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-05-24 Thread Christoph Cullmann
https://bugs.kde.org/show_bug.cgi?id=433455

Christoph Cullmann  changed:

   What|Removed |Added

 CC||cullm...@kde.org

--- Comment #14 from Christoph Cullmann  ---
I am sorry, but I don't see that we want to support this.

I actually would then even say we should remove that other extra option again.

On the other side this is now even already documented and I don't want to waste
the time of our documentation writers/translators with this.

@dhaumann, @batrina, what do you think?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-04-15 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #13 from Dmitri Koulikoff  ---
> No, removeMode = 2 removes all of the trailing space in the whole document
> regardless if the line is modified or not. 

  Then this option is useless as the purpose of it is to leave trailing spaces
in document when needed. 
  You leave the cursor on the line, that need to have trailing spaces, and save
the document. And if you need a second place with the trailing spaces, the
first place must be untouched.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-04-15 Thread Jan Paul Batrina
https://bugs.kde.org/show_bug.cgi?id=433455

Jan Paul Batrina  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #12 from Jan Paul Batrina  ---
(In reply to Dmitri Koulikoff from comment #11)
> It is important to keep all the trailing spaces on non-modified lines. Will
> removeMode = 2 keep them?

No, removeMode = 2 removes all of the trailing space in the whole document
regardless if the line is modified or not. When I find the time, I'll try to
implement the "Keep spaces to left of cursor" a separate option so that the
behavior can be more flexible (e.g. removeMode = 1 + keep trailing spaces to
left of cursor would be possible), no promises though ;=)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-04-15 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #11 from Dmitri Koulikoff  ---
(In reply to Jan Paul Batrina from comment #10)
> (In reply to Dmitri Koulikoff from comment #8)
> > Thanks, only one question:
> > 
> > Is it exactly as removeMode = 1 with the exception of the current line?
> 
> The implemented behavior is exactly removeMode = 2 (remove all trailing
> lines in document) except spaces left of current cursor

It is important to keep all the trailing spaces on non-modified lines. Will
removeMode = 2 keep them?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-04-15 Thread Jan Paul Batrina
https://bugs.kde.org/show_bug.cgi?id=433455

Jan Paul Batrina  changed:

   What|Removed |Added

 CC||jpmbatrin...@gmail.com

--- Comment #10 from Jan Paul Batrina  ---
(In reply to Dmitri Koulikoff from comment #8)
> Thanks, only one question:
> 
> Is it exactly as removeMode = 1 with the exception of the current line?

The implemented behavior is exactly removeMode = 2 (remove all trailing lines
in document) except spaces left of current cursor

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-04-15 Thread Jan Paul Batrina
https://bugs.kde.org/show_bug.cgi?id=433455

Jan Paul Batrina  changed:

   What|Removed |Added

 CC||jurajora...@mailo.com

--- Comment #9 from Jan Paul Batrina  ---
*** Bug 418338 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-03-09 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #8 from Dmitri Koulikoff  ---
Thanks, only one question:

Is it exactly as removeMode = 1 with the exception of the current line?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-03-09 Thread Jan Paul Batrina
https://bugs.kde.org/show_bug.cgi?id=433455

Jan Paul Batrina  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/fram
   ||eworks/ktexteditor/commit/2
   ||1c0431b7a04dceb4a7591b324e8
   ||01a2f3aa6f95

--- Comment #7 from Jan Paul Batrina  ---
Git commit 21c0431b7a04dceb4a7591b324e801a2f3aa6f95 by Jan Paul Batrina.
Committed on 09/03/2021 at 04:08.
Pushed by cullmann into branch 'master'.

Add option to keep spaces to the left of cursor when saving
GUI:

M  +5-0src/dialogs/opensaveconfigwidget.ui
M  +24   -5src/document/katedocument.cpp
M  +6-5src/utils/kateconfig.h

https://invent.kde.org/frameworks/ktexteditor/commit/21c0431b7a04dceb4a7591b324e801a2f3aa6f95

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-03-03 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=433455

Bug Janitor Service  changed:

   What|Removed |Added

 Status|REOPENED|ASSIGNED

--- Comment #6 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/112

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-02-23 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #5 from Dmitri Koulikoff  ---
I hope it will not take long to add the fourth option [ ] Keep spaces to left
of the cursor position.
;-)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-02-23 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #4 from Dmitri Koulikoff  ---
Because I have started with kde5 only couple of months ago. Now I understand,
why Patrick J. Volkerding did not include kde5 in Slackware-current so long. It
is too raw. I have problems with many thins in kde5 that in kde4 work
perfectly.
I am software developer and now I have to spend extra time adding vanishing
spaces back or use extra typing to prevent it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-02-23 Thread Dominik Haumann
https://bugs.kde.org/show_bug.cgi?id=433455

--- Comment #3 from Dominik Haumann  ---
We got bug reports about trailing spaces being left in the document, although
remove trailing spaces was active. It's not an option to go back to the old
version.

If at all, it would be feasible to have an additional checkbox [ ] Keep spaces
of left of the cursor position.

In any case, you're the first one who officially complains here after several
years of this behavior. I don't see any immediate action item for now.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-02-23 Thread Dmitri Koulikoff
https://bugs.kde.org/show_bug.cgi?id=433455

Dmitri Koulikoff  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|RESOLVED|REOPENED
 Resolution|INTENTIONAL |---

--- Comment #2 from Dmitri Koulikoff  ---
Probably, this behaviour is intuitive, but it is how it works for decades. And
for me it is very annoying to restore the spaces on the current line if I
decide to save the code in the middle of the work.
To to make this behaviour to be more obvious I've suggested the explicit
option.
Unfortunately, I have no time even to look at the code, not mentioning the
patching. Sorry.
You can just use the old code for that that should be in the repo.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 433455] Unable to save trailing spaces

2021-02-22 Thread Kåre Särs
https://bugs.kde.org/show_bug.cgi?id=433455

Kåre Särs  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
 CC||kare.s...@iki.fi
 Resolution|--- |INTENTIONAL

--- Comment #1 from Kåre Särs  ---
Thanks for the report,

Your described behavior was seen to not be very intuitive. Why would you have
to remember NOT to have your cursor on an indented empty line when you save?
All other (edited) lines with trailing spaces have the trailing spaces
removed...

If you want to "restore" spaces at the end of a line you edited by mistake,
I could imagine a solution to have a separate save command that does not clear
the trailing spaces... Interested to provide a patch/pullrequest?

-- 
You are receiving this mail because:
You are watching all bug changes.