MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Features that i miss in Sigil (https://www.mobileread.com/forums/showthread.php?t=340530)

DiapDealer 07-10-2021 07:51 AM

Version of Sigil, please?

KevinH 07-10-2021 09:57 AM

As sigil's user's guide explains:

Sigil's has an Insert->Closing Tag menu.

In Sigil's Preferences you can assign it a shortcut key sequence.
So instead of typing "</" you just use the key sequence you assigned at the same point.


Quote:

Originally Posted by abraum (Post 4137669)
what menu? what i mean is when i have this code

Code:

<h1>text
and i enter '</' at the end of the line calibre completes this to '</h1> automatically. i like this very much.


phillipgessert 07-10-2021 12:34 PM

Sigil’s ability to launch an external editor is also really useful for stuff like this. Anytime I find myself wishing Sigil had some feature found in a dedicated text editor/IDE, I remind myself that’s probably the exact reason the feature exists. I use it anytime I want multicursor, for example. Glad for this topic though as I hadn’t realized Sigil had this closing tag feature.

KevinH 07-10-2021 12:38 PM

Quote:

Originally Posted by phillipgessert (Post 4137746)
Sigil’s ability to launch an external editor is also really useful for stuff like this. Anytime I find myself wishing Sigil had some feature found in a dedicated text editor/IDE, I remind myself that’s probably the exact reason the feature exists. I use it anytime I want multicursor, for example. Glad for this topic though as I hadn’t realized Sigil had this closing tag feature.

It is smart enough to properly handle nested tags as well.

Kevin

phillipgessert 07-10-2021 01:41 PM

Quote:

Originally Posted by KevinH (Post 4137748)
It is smart enough to properly handle nested tags as well.

Kevin

That’ll come in handy! And come to think of it, assigning some arbitrary shortcut seems less error-prone than the usual autocomplete approach. I’ve definitely gone into autopilot and wound up with more </div>div>s than I care to admit.

Tex2002ans 07-10-2021 05:36 PM

Quote:

Originally Posted by phillipgessert (Post 4137766)
That’ll come in handy! And come to think of it, assigning some arbitrary shortcut seems less error-prone than the usual autocomplete approach. I’ve definitely gone into autopilot and wound up with more </div>div>s than I care to admit.

:thumbsup:

I hate the auto-closing tag while typing. My brain/fingers are already miles ahead, and then I only notice the broken </div>div> while skimming, running epubcheck, or Prettifying and thinking: "wtf happened here?".

Which reminds me, it's frustrated me for so long in Calibre's Editor, I finally decided to do something about it.

In Calibre, the setting is in:

Edit > Preferences > Editor Settings > "Auto close tags while typing </"

Now that I've unchecked it, I'll be at peace! :D

Note: The auto-close in Calibre is helpful though in the one case of trying to debug seriously nested spaghetti code.

I sometimes click deep between the mess, then type "</" to try to spot what dang tag wasn't closed (and then easy to click inside + see opening tag by the highlight tag feature).

BetterRed 07-10-2021 06:58 PM

Quote:

Originally Posted by abraum (Post 4137669)
. . .
i don't use windows, i use linux. there is no anti-virus or firewall or backup software running in background. i only use calibre editor and not calibre library. i open all books with the "open with" menu of the file manager in sigil or calibre editor.

On your linux system, where do the calibre editor and Sigil unpack the epub?

BR

abraum 07-14-2021 02:24 PM

Quote:

Originally Posted by BetterRed (Post 4137819)
On your linux system, where do the calibre editor and Sigil unpack the epub?

it /tmp and /tmp is on the same ssd where the linux is booting.

Quote:

Originally Posted by DiapDealer (Post 4137691)
Version of Sigil, please?

its 1.6

Quote:

Originally Posted by KevinH (Post 4137713)
Sigil's has an Insert->Closing Tag menu.

this works. i'll test it in "normal work".

BetterRed 07-14-2021 07:14 PM

Quote:

Originally Posted by BetterRed (Post 4137819)
On your linux system, where do the calibre editor and Sigil unpack the epub?

Quote:

Originally Posted by abraum (Post 4138742)
it /tmp and /tmp is on the same ssd where the linux is booting.

Interesting - on Windows the calibre editor keeps its working copy of the unpacked EPUB files in a directory named Cache in its Configuration folder, and it uses the equivalent of /tmp to interoperate with external editors invoked via its Open With. The linux version must use a different mechanism to prevent data loss if the two editors make changes to the same file concurrently.

BR

Notjohn 07-21-2021 11:52 AM

>Saving a file is never slow on my system

Instantaneous, it seems to me!


All times are GMT -4. The time now is 10:13 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.