Kate and auto-indent (was: Re: Detailed Leafpad manual [not just manpage]?)
On Tuesday, December 06, 2022 09:53:11 AM Richard Owlett wrote: > It worked acceptabily on Debian 9.13 . I have to read manual to see if I > can make a cosmetic tweak. If you describe the cosmetic tweak you need, I (or someone else) *might* be able to help. -- rhk If you reply: snip, snip, and snip again; leave attributions; avoid HTML; avoid top posting; and keep it "on list". (Oxford comma included at no charge.) If you change topics, change the Subject: line. Writing is often meant for others to read and understand (legal agreements excepted?) -- make it easier for your reader by various means, including liberal use of whitespace and minimal use of (obscure?) jargon, abbreviations, acronyms, and references. If someone else has already responded to a question, decide whether any response you add will be helpful or not ... A picture is worth a thousand words -- divide by 10 for each minute of video (or audio) or create a transcript and edit it to 10% of the original.
Re: Detailed Leafpad manual [not just manpage]?
Richard Owlett wrote: rhkra...@gmail.com wrote: On Tuesday, December 06, 2022 07:01:07 AM Richard Owlett wrote: I just tried it on both of my machines. It lacks ability to set the right margin. I want to insert a paragraph such that the effective LEFT margin [when line wraps at RIGHT margin] is the indent level. Just as a followup to my earlier reply, in kate (and I believe in kwrite), when you indent the first line of a (soft wrapped) paragraph, the remaining lines in that paragraph are (left) indented to the same place as that first line. (If you want subsequent paragraphs indented to the same place, indent the first line of those subsequent paragraphs.) Those two paragraphs describe my needs. I explicitly wish to avoid hard wrapping. I'll install kate and see what happens. Thanks It worked acceptabily on Debian 9.13 . I have to read manual to see if I can make a cosmetic tweak. There were missing files in repository when I tried to install on my Debian 11.3 machine. Will try again later. There are auto-indent features.
Re: Detailed Leafpad manual [not just manpage]?
rhkra...@gmail.com wrote: On Tuesday, December 06, 2022 07:01:07 AM Richard Owlett wrote: I just tried it on both of my machines. It lacks ability to set the right margin. I want to insert a paragraph such that the effective LEFT margin [when line wraps at RIGHT margin] is the indent level. Just as a followup to my earlier reply, in kate (and I believe in kwrite), when you indent the first line of a (soft wrapped) paragraph, the remaining lines in that paragraph are (left) indented to the same place as that first line. (If you want subsequent paragraphs indented to the same place, indent the first line of those subsequent paragraphs.) Those two paragraphs describe my needs. I explicitly wish to avoid hard wrapping. I'll install kate and see what happens. Thanks There are auto-indent features.
Re: Detailed Leafpad manual [not just manpage]?
On Tuesday, December 06, 2022 07:01:07 AM Richard Owlett wrote: > I just tried it on both of my machines. > It lacks ability to set the right margin. I want to insert a paragraph > such that the effective LEFT margin [when line wraps at RIGHT margin] is > the indent level. Just as a followup to my earlier reply, in kate (and I believe in kwrite), when you indent the first line of a (soft wrapped) paragraph, the remaining lines in that paragraph are (left) indented to the same place as that first line. (If you want subsequent paragraphs indented to the same place, indent the first line of those subsequent paragraphs.) There are auto-indent features. -- rhk If you reply: snip, snip, and snip again; leave attributions; avoid HTML; avoid top posting; and keep it "on list". (Oxford comma included at no charge.) If you change topics, change the Subject: line. Writing is often meant for others to read and understand (legal agreements excepted?) -- make it easier for your reader by various means, including liberal use of whitespace and minimal use of (obscure?) jargon, abbreviations, acronyms, and references. If someone else has already responded to a question, decide whether any response you add will be helpful or not ... A picture is worth a thousand words -- divide by 10 for each minute of video (or audio) or create a transcript and edit it to 10% of the original.
Re: Detailed Leafpad manual [not just manpage]?
On Tuesday, December 06, 2022 07:01:07 AM Richard Owlett wrote: > I just tried it on both of my machines. > It lacks ability to set the right margin. I want to insert a paragraph > such that the effective LEFT margin [when line wraps at RIGHT margin] is > the indent level. I started to write a rather long reply and ran out of time / ambition. One question I'd ask -- are you using what is sometimes called dynameic / soft) wrapping (long lines are (soft) wrapped to appear as paragraphs and dynamically readjust as you modify the line), or hard wrapping (long lines are broken into shorter lines (to appear as paragraphs) by adding "hard" line ends. (Editors (or options) to do the hard wrapping typically have a command to readjust the position of those "hard" line ends.) I think soft wrapping is much more user friendly for text that might include paragraphs. Aside: currently I use the kde editors kwrite and kate (for slightly different purposes), and I've written what I'll call a lexer (not what kde calls it) to highlight and fold (that is not word wrap, but folding to hide text to show just the first line or such of a paragraph when an outline (or portion thereof) is collapsed. There are / have been a few problems with kate and kwrite (including a bug (that bugged me -- because of it I have to add ending markup to things I write) -- the bug persisted for something like 10 years, but even after they claimed it was fixed, in a very superficial attempt at testing, It didn't seem to work. My current plan is to eventually switch to an editor that uses scintilla as the editor component. There are quite a few such editors (I once saw a list that might have listed almost 100 editors, at various levels of completion (or intention). Scite (as recommended by someone else), is one of those, as are Geany, something named something like Notepad (it seems there are several things named with some variation of "Notepad") and several others. The stumbling block for me is writing a suitable lexer for Scintilla -- a "native" scintilla lexer is written in C++ which I just have a terrible time grokking. (Lexers can also be written in Lua or in fact any language (for an external lexer), but all of those are harder to integrate to be used in all the editors which use scintilla. Nevertheless, I'd encourage you to consider an editor based on Scintilla (e.g., Scite, Geany, Notepad ), or kate or kwrite. Aside: I understand there is a way to install kate / kwrite without installing all of kde -- I've never tried it, I'm sure that some libraries and such must be installed in addition to the kate and kwrite executables. And, if you're writing a lot of text (vs. code) I'd encourage you to learn (and use) soft wrapping and what Microsoft calls (used to call) "collapsible outlining" (which is more commonly known as folding in the Linux world). Aside: "Folding" is overloaded in the Linux world -- it is sometimes used to describe line wrapping and other times for collapsible outlining. Have fun! -- rhk If you reply: snip, snip, and snip again; leave attributions; avoid HTML; avoid top posting; and keep it "on list". (Oxford comma included at no charge.) If you change topics, change the Subject: line. Writing is often meant for others to read and understand (legal agreements excepted?) -- make it easier for your reader by various means, including liberal use of whitespace and minimal use of (obscure?) jargon, abbreviations, acronyms, and references. If someone else has already responded to a question, decide whether any response you add will be helpful or not ... A picture is worth a thousand words -- divide by 10 for each minute of video (or audio) or create a transcript and edit it to 10% of the original.
Re: Detailed Leafpad manual [not just manpage]?
Richard Owlett wrote: Andreas Rönnquist wrote: On Sun, 4 Dec 2022 05:29:58 -0600, Richard Owlett wrote: I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA It seems leafpad is obsolete and not maintained any longer (It is only available in Debian Stretch). If you could try something else, I would try mousepad (which actually is a fork of leafpad). https://packages.debian.org/mousepad https://docs.xfce.org/apps/mousepad/start That page suggests it's what I'm looking for. I attempted to install it on my old machine [has a large external monitor] but got a "temporary connection failure" message. Will try it again this afternoon. Thanks As I posted earlir today, mousepad lacks ability to set a righthand margin for a line to fold at. If you would be ready to try something new and are not afraid of massive amount of settings (and thereby possibilities) but still GTK-based, I would try SciTE. https://packages.debian.org/scite (Yes, I am biased regarding SciTE, since I'm one of the Debian package maintainers). I looked at that page. I'm not trying to edit a program. I'm editing straight text and want lines that wrap at right margin to start a fresh line at current indent level. I didn't spot that capability. Thanks. -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net
Re: Detailed Leafpad manual [not just manpage]?
Richard Owlett wrote: Andreas Rönnquist wrote: On Sun, 4 Dec 2022 05:29:58 -0600, Richard Owlett wrote: I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA It seems leafpad is obsolete and not maintained any longer (It is only available in Debian Stretch). If you could try something else, I would try mousepad (which actually is a fork of leafpad). https://packages.debian.org/mousepad https://docs.xfce.org/apps/mousepad/start That page suggests it's what I'm looking for. I attempted to install it on my old machine [has a large external monitor] but got a "temporary connection failure" message. Will try it again this afternoon. Thanks I just tried it on both of my machines. It lacks ability to set the right margin. I want to insert a paragraph such that the effective LEFT margin [when line wraps at RIGHT margin] is the indent level. If you would be ready to try something new and are not afraid of massive amount of settings (and thereby possibilities) but still GTK-based, I would try SciTE. https://packages.debian.org/scite (Yes, I am biased regarding SciTE, since I'm one of the Debian package maintainers). -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net
Re: Detailed Leafpad manual [not just manpage]?
Andreas Rönnquist wrote: On Sun, 4 Dec 2022 05:29:58 -0600, Richard Owlett wrote: I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA It seems leafpad is obsolete and not maintained any longer (It is only available in Debian Stretch). If you could try something else, I would try mousepad (which actually is a fork of leafpad). https://packages.debian.org/mousepad https://docs.xfce.org/apps/mousepad/start That page suggests it's what I'm looking for. I attempted to install it on my old machine [has a large external monitor] but got a "temporary connection failure" message. Will try it again this afternoon. Thanks If you would be ready to try something new and are not afraid of massive amount of settings (and thereby possibilities) but still GTK-based, I would try SciTE. https://packages.debian.org/scite (Yes, I am biased regarding SciTE, since I'm one of the Debian package maintainers). -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net
Re: Detailed Leafpad manual [not just manpage]?
On 12/4/22 03:29 AM, Richard Owlett wrote: I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA By "outline for term papers", I presume you mean: I. Topic A 1. Topic A subtopic A 2. Topic A subtopic B a. Topic A subtopic B subsubtopc A II. Topic B ...and so on. "Autoindenting" should be a standard feature of any text editor use for programming. I've used gvim for many years and it has this feature. You can set it during the edit sessions by typing ":set ai", or put "set ai" (or "set autoindent") in your .vimrc or .gvimrc file. To make it work conveniently, you might also want to set the tabstop, which by default is 8 spaces, to something less so you don't use up your paper width too quickly. An indent of 2 is enough for basic visibility but 3 or 4 might be a bit nicer to work with the outline number part of the line. This would allow you to indent a short paragraph under the outline heading such that it lines up with heading text, as in: I. Topic A Paragraph ... I hope this helps. Bob
Re: Detailed Leafpad manual [not just manpage]?
On Sun, 4 Dec 2022 05:29 -0600, Richard Owlett wrote: > I wish to document a personal project.The desired format will resemble > the outline for term papers we wrote in school in the 50's. Except some > items may be a short paragraph or two long. Like some others here, I can only guess what those outlines look like. > I did a web search for text editors with an auto-indent feature. > The only one I recognized was Leafpad. But I couldn't find appropriate > documentation or "howto". Where would I find it? Leafpad is just a simple text editor, it does not need documentation. Just check Options > Auto indent from the menu. I still have it installed in Bookworm. It was in active development from 2004 till 2010. I think it's a pity Debian removed it for that reason; it's perfect as it is, it does not need further development. I have another distro, OpenSUSE, where it is still available. > Any other suggestions for a basic text editor in the Debian repository > with an auto-indent feature. I'm not interested in a full blown word > processor. IMO, a good editor for this purpose would be the Bluefish editor. It basically supports programming and markup languages. Indentations may be tabs or spaces. The size of the indentations is configurable. The indentation of selected lines may be increased or decreased in one go.
Re: Detailed Leafpad manual [not just manpage]?
On 2022-12-04, David Wright wrote: > On Sun 04 Dec 2022 at 05:29:58 (-0600), Richard Owlett wrote: >> I wish to document a personal project.The desired format will resemble >> the outline for term papers we wrote in school in the 50's. Except >> some items may be a short paragraph or two long. > > Tragically I missed out on a US education, so unlike some others > here, I can't tell just what these term paper outlines look like. I equally tragically did benefit from one but still remain uncertain what a term paper outline from the fifties might look like precisely. >> I did a web search for text editors with an auto-indent feature. >> The only one I recognized was Leafpad. But I couldn't find appropriate >> documentation or "howto". Where would I find it? > > Never heard of it. I prefer sticking to widely used, well-supported > editors like emacs. > >> Any other suggestions for a basic text editor in the Debian repository >> with an auto-indent feature. I'm not interested in a full blown word >> processor. How about the latex outline package, which has the merit of being short and sweet? http://tug.ctan.org/macros/latex/contrib/outlines/outlines.pdf > There's a wiki which mentions several different circumstances that > might apply in your case: > > https://www.emacswiki.org/emacs/AutoIndentation > > Cheers, > David. > > --
Re: Detailed Leafpad manual [not just manpage]?
On Sun, 4 Dec 2022 05:29:58 -0600, Richard Owlett wrote: >I wish to document a personal project.The desired format will resemble >the outline for term papers we wrote in school in the 50's. Except >some items may be a short paragraph or two long. > >I did a web search for text editors with an auto-indent feature. >The only one I recognized was Leafpad. But I couldn't find appropriate >documentation or "howto". Where would I find it? > >Any other suggestions for a basic text editor in the Debian repository >with an auto-indent feature. I'm not interested in a full blown word >processor. > >TIA > It seems leafpad is obsolete and not maintained any longer (It is only available in Debian Stretch). If you could try something else, I would try mousepad (which actually is a fork of leafpad). https://packages.debian.org/mousepad https://docs.xfce.org/apps/mousepad/start If you would be ready to try something new and are not afraid of massive amount of settings (and thereby possibilities) but still GTK-based, I would try SciTE. https://packages.debian.org/scite (Yes, I am biased regarding SciTE, since I'm one of the Debian package maintainers). -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net
Re: Detailed Leafpad manual [not just manpage]?
On Sun 04 Dec 2022 at 05:29:58 (-0600), Richard Owlett wrote: > I wish to document a personal project.The desired format will resemble > the outline for term papers we wrote in school in the 50's. Except > some items may be a short paragraph or two long. Tragically I missed out on a US education, so unlike some others here, I can't tell just what these term paper outlines look like. > I did a web search for text editors with an auto-indent feature. > The only one I recognized was Leafpad. But I couldn't find appropriate > documentation or "howto". Where would I find it? Never heard of it. I prefer sticking to widely used, well-supported editors like emacs. > Any other suggestions for a basic text editor in the Debian repository > with an auto-indent feature. I'm not interested in a full blown word > processor. There's a wiki which mentions several different circumstances that might apply in your case: https://www.emacswiki.org/emacs/AutoIndentation Cheers, David.
Re: Detailed Leafpad manual [not just manpage]?
On Sun, 4 Dec 2022 12:56:57 + "Andrew M.A. Cater" wrote: > Might I suggest gedit or similar. Or even emacs or vim :) In Emacs' case (and probably in vim's) there may well be a mode that will do what the OP wants. Text mode will maintain auto-indentation for you. Also, look into outline mode for emacs. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Re: Detailed Leafpad manual [not just manpage]?
On 2022-12-04 at 07:56, Andrew M.A. Cater wrote: > On Sun, Dec 04, 2022 at 05:29:58AM -0600, Richard Owlett wrote: > >> I wish to document a personal project.The desired format will >> resemble the outline for term papers we wrote in school in the >> 50's. Except some items may be a short paragraph or two long. >> >> I did a web search for text editors with an auto-indent feature. >> The only one I recognized was Leafpad. But I couldn't find >> appropriate documentation or "howto". Where would I find it? >> >> Any other suggestions for a basic text editor in the Debian >> repository with an auto-indent feature. I'm not interested in a >> full blown word processor. >> >> TIA >> > > Richard, > > Leafpad was removed from Debian quite a while ago in Stretch - > oldoldstable. > > Might I suggest gedit or similar. Or even emacs or vim :) I'll note that a "based-on" editor called Mousepad is available in current stable and testing, and a "forked from" editor called l3afpad is available in current testing. Neither of those addresses the original question about a manual, though, unless one of them happens to come with it in e.g. /usr/share/docs/[packagename]. I do see that the listed homepage for Mousepad is https://docs.xfce.org/apps/mousepad/start, and that seems to be documentationary, although it's not clear whether it'd be in-depth enough for what was requested. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw signature.asc Description: OpenPGP digital signature
Re: Detailed Leafpad manual [not just manpage]?
On 4/12/22 20:56, Andrew M.A. Cater wrote: On Sun, Dec 04, 2022 at 05:29:58AM -0600, Richard Owlett wrote: I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA Richard, Leafpad was removed from Debian quite a while ago in Stretch - oldoldstable. To get the man 'look', just use your regular text editor (I prefer nano) and run through https://www.systutorials.com/docs/linux/man/1-txt2man/ -- Jeremy
Re: Detailed Leafpad manual [not just manpage]?
On Sun, Dec 04, 2022 at 05:29:58AM -0600, Richard Owlett wrote: > I wish to document a personal project.The desired format will resemble the > outline for term papers we wrote in school in the 50's. Except some items > may be a short paragraph or two long. > > I did a web search for text editors with an auto-indent feature. > The only one I recognized was Leafpad. But I couldn't find appropriate > documentation or "howto". Where would I find it? > > Any other suggestions for a basic text editor in the Debian repository with > an auto-indent feature. I'm not interested in a full blown word processor. > > TIA > Richard, Leafpad was removed from Debian quite a while ago in Stretch - oldoldstable. Might I suggest gedit or similar. Or even emacs or vim :) All the very best, as ever, Andy Cater >
Detailed Leafpad manual [not just manpage]?
I wish to document a personal project.The desired format will resemble the outline for term papers we wrote in school in the 50's. Except some items may be a short paragraph or two long. I did a web search for text editors with an auto-indent feature. The only one I recognized was Leafpad. But I couldn't find appropriate documentation or "howto". Where would I find it? Any other suggestions for a basic text editor in the Debian repository with an auto-indent feature. I'm not interested in a full blown word processor. TIA