View Single Post
Old 10-21-2021, 11:38 AM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Is there Merge Files toolbar icon or shortcut key?

Is there Merge Files toolbar icon or shortcut key?

I frequently find an epub with pairs of files for (typically) a chapter number in one file and the chapter title in a seond:

File 1 --

Code:
<body>
  <h2>CHAPTER FIFTY-SIX</h2>
</body>
File 2 --

Code:
<body>
  <h3>TITLE TITLE TITLE</h3>

.........

I'd like to just end up with this after the Merge

Code:
<body>

  <h2>CHAPTER FIFTY-SIX</h2>

 <h3>TITLE TITLE TITLE</h3>

I can RegEx my way (or at least I think I can) to the final format for the TOC

Code:
<body>
  <h2>CHAPTER FIFTY-SIX<br/><br/>TITLE TITLE TITLE</h2>
I can merge the files by selecting the pair, right clicking, and Merge Text Files, but it'd be a lot easier and faster to have an icon and shortcut key

On the menu there does seem to be an icon, but I can't find that either under Editor Preferences, Shortcut Keys or Toolbars

(Same for Link Style sheets which I use all the time)
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	196
Size:	22.0 KB
ID:	189736  

Last edited by phossler; 10-21-2021 at 11:48 AM.
phossler is offline   Reply With Quote