Comments (4)
Hi @coolcoder613eb!
Unfortunately, it is not currently possible to customize this from inside the application. I am sorry that this feature caused you trouble.
If you have compiled Turbo yourself, you can disable this behaviour by commenting out the call to stripTrailingSpaces
in FileEditor::beforeSave
:
--- a/source/turbo-core/fileeditor.cc
+++ b/source/turbo-core/fileeditor.cc
@@ -232,7 +232,7 @@ void FileEditor::beforeSave() noexcept
if (!inSavePoint() && !call(scintilla, SCI_CANREDO, 0U, 0U))
{
call(scintilla, SCI_BEGINUNDOACTION, 0U, 0U);
- stripTrailingSpaces(scintilla);
+ // stripTrailingSpaces(scintilla);
ensureNewlineAtEnd(scintilla);
call(scintilla, SCI_ENDUNDOACTION, 0U, 0U);
}
from turbo.
I think it would be better to disable it by default, as it is very hard to write markdown with it.
from turbo.
Could you please share an example of a Markdown file that is very hard to edit because of this feature?
from turbo.
In markdown, you put two spaces at the end of a line to do a newline.
Those two spaces get stripped.
from turbo.
Related Issues (20)
- System clipboard integration HOT 2
- icon HOT 6
- Feature Request: Load a specific directory tree in the document tree. HOT 2
- Scrolling down using mouse wheel problem HOT 2
- install TARGETS given target "fmt" which does not exist. HOT 1
- Feature request: highlighting for text files
- consider switching from Alt-X to Ctrl-X as exit hotkey HOT 7
- Make the first release. HOT 2
- segfault HOT 2
- Can't change tab size. HOT 4
- Run on docker HOT 2
- macOS PowerPC: all tests pass, but in terminal no output upon launching the app HOT 36
- Store and load settings HOT 1
- Line numbers / OCD issue HOT 1
- [Feature request] LSP support? HOT 1
- artifacts during window resize HOT 4
- [Feature request] Remember last state for visibility of "Open Editors" and "Show line numbers". HOT 3
- Binaries in action artifacts expiring HOT 1
- use `text-editor` as a topic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbo.