2

looking for open-source SDI (single-document interface, i.e. no document tabs) plain text editor that has text encoding indicator/switcher in some prominent place in its UI, like on toolbar or status bar

also desirable:

1) code folding for any text indented with Tab characters (code folding for relaxed lexer of YAML language can do this, for example notepad++ does it), code folding for text indented with whitespaces may be Ok too

1a) also would like folded segments of text to look like in Eclipse and MS Visual Studio, i.e. one line of text encased into rectangle and indented to same degree as first line of folded segment of text, ability to see contents of folded text segment in tooltip is very welcome as well

2) binary-portable (portable in portableapps.com meaning)

3) no dependencies like .NET, Java etc

4) recognition for both windows and unix end-of-line characters

5) having both windows and linux binaries is welcome

please do not offer notepad++ unless you know how to remove tabs from it (as opposed to just hiding the tab bar)

EDIT: another desirable property: UI without deliberately sharpened corners (without windows 10 style of GUI)

5
  • CudaText maybe soon will be able to do it- when option "disable UI tabs" will be added. Currently tabs always used.
    – RProgram
    Apr 12, 2018 at 8:28
  • stackoverflow.com/questions/26415127/… could that help?
    – Sonamor
    Apr 12, 2018 at 11:09
  • @Sonamor, it still allows to create tabs in any of these three modes, so it is not exactly what I look for
    – coder
    Apr 12, 2018 at 17:23
  • @RProgram could you please provide a link to where authors say they are going to add it?
    – coder
    Apr 12, 2018 at 17:24
  • @Mikhail This option (in user.json config) was added in CudaText beta 1.49.2.
    – RProgram
    Apr 14, 2018 at 5:40

1 Answer 1

1

CudaText editor (free, open source) has all the asked features, and an option to use single tab mode:

"ui_tab_disabled": true, (in user.json).

To use indent-based folding here, you need to add lexer "Text with indentation" from Addon Manager. It has no filetypes. Activate it using click on statusbar.

example of indent based folding

11
  • I found CudaText surprisingly confusing... (no offense, maybe I got wrong kind of brain :) ) managed to find license (MPL apparently) only on github - is it mentioned anywhere on website?
    – coder
    Apr 15, 2018 at 6:26
  • (apparently comments can be edited for only 5 minutes so have to continue in another comment) I could easily find how to open/edit preferences of lexers but not how to enable desired lexer, attempts to google for it failed as well, tried to open a file with respective extension (.yaml) - it did not work either... so how to enable YAML lexer? (and get code folding for indented text as well)
    – coder
    Apr 15, 2018 at 6:35
  • @Mikhail YAML lexer is in the distro, and it's enabled. It handles file types "yml yaml". These types are configurable in the Lexer Properties dialog. I can help you on CudaText forum/ github.
    – RProgram
    Apr 15, 2018 at 10:52
  • RProgram: got it: I tried it without colon symbols which cudatext's yaml lexer seems to require for code folding to happen, unlike notepad++. probably can make it behave like it notepad++ editing cudatext's source code, although it is going to take considerable time. I'll edit the question to clarify my desires. This is already something though, thanks for your effort. unfortunately cannot upvote your answer since I do not have enough rep
    – coder
    Apr 15, 2018 at 17:50
  • @Mikhail Can you show example of yaml file, which is correct and not folded in Cudatext?
    – RProgram
    Apr 18, 2018 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.