Write! A distraction-free text editor for Windows. Here it is showing the navigation bar.
A few months ago, while I was editing some documents in Markdown, I came across Write! — a new text editor (still in beta) that is being marketed as “writing instrument for digital age [sic]” and a “distraction-free text editor that does not suck”. So I downloaded it and took it out for a spin.
I like it, but…
For the most part I like Write! It’s clean, it’s fast, and it has a minimal set of usable features that don’t get in the way.
It’s like a prettier Notepad but with a spell checker, a navigation bar on the right-hand side (like Sublime Text), and a basic understanding of Markdown (so you can make text bold, for example, by typing example).
I have a couple of issues, though, which prevents me from using this as my text editor of choice for writing.
Proprietary format
My main niggle is that by default Write! saves to its own proprietary format. This is a zipped, XML-based file format (.wtt), and as far as I can tell this isn’t compatible with the OpenDocument text (.odt) format. The simple document above (showing the first chapter of JRR Tolkien’s The Lord of the Rings) contains the following files:
document.xml — the actual document, plus some meta data such as word count.
history.xml — an undo history.
package.xml — this seems to define the package format and encoding (UTF-8).
You can export to PDF, OpenDocument, plain text, and three flavours of Markdown (Textile, Markdown, and Wiki) but that has more of a disruptive workflow than simply tapping Ctrl+S every few minutes.
Similarly, it would be great to be able to associate Write! to open certain file types, such as text (.txt) or Markdown (.md, .mdown) files.
Not full Markdown support
By default I tend to use basic, vanilla Markdown rather than Textile or Wiki). By default Write! is configured to support a mixture of the other two. That’s not a problem as a quick visit to the settings will put that right.
Write! settings dialog
But Write! only supports a small subset of Markdown:
Supports
Headers prefixed with hash (# for H1, ## for H2, etc.).
Unordered lists using minus (-) and plus (+).
Numbered lists.
Links (but you cannot easily edit the link, text or title).
Emphasis (italics and bold) using asterisks (*) or underscores (_).
Automatic links in the format <http://example.com/>.
Backslash escapes, e.g. \*literal asterisks\*.
Does not support
Setext style headers (underlined using equal signs or dashes).
Blockquotes.
Unordered lists using asterisk (*).
Code blocks — 1 tab, 4 spaces or three backticks (“`).
Inline code using single backticks (`.example {}`).
Horizontal rule.
Images.
Automatic links for email addresses, e.g. <address@example.com>.
Cannot type with help window open
This seems to be a basic requirement that has been overlooked: if I tap F1 to bring up the help text (shortcuts and markup) I cannot keep the help window open while typing into Write! If I start to type I get an irritated ‘bong!’ sound from my PC.
Surely I should be able to refer to the help text while typing.
Conclusion
If Write! supported at least:
The ability to select which format to save to by default (even on a document-by-document basis); (MUST)
The ability to open certain file types in Write! (MUST)
Full support for Markdown. (MUST)
Ability to type while referring to the help text. (SHOULD)
then I would without a doubt use this text editor for all sorts of small writing tasks, such as writing documentation, journalling, text editing, etc. Until then, I’ll just keep updating the beta and see what gets added in the future.
For me this is definitely one application to keep an eye on but it isn’t for production use quite yet.
Bonus
What is nice is that you can vote for future features from the website’s Feedback link. One of those suggestions is to save in plain text format; I’ve just submitted an idea to fully support Markdown.
I have now completely rewritten this code and turned it into a plugin called Rename Divi Projects which is available to buy on the Divi Marketplace for use on unlimited sites for USD $11.
I’m currently building a website for a friend, using the Divi theme from Elegant Themes. The website is for a holiday property letting company. This post explains how I changed the built-in Projects content type to Properties, and how you can change it to anything you want.
The problem
Divi is a great theme to use: it’s very flexible, it’s responsive (so it works equally well on smartphones as well as huge desktop monitors), and it has the easiest, drag-and-drop editor that I’ve ever used for WordPress.
Divi comes with a built in content type called Projects; WordPress calls them ‘custom post types’. I use this content type on my own website to list the various projects that I’ve been involved in over the years.
As you can see from the WordPress admin menu ‘Projects’ appears on the list beneath Posts, Media, Pages, and Comments:
WordPress menu with Divi installed
Divi also ships with a number of attractive ways to display your projects using its Portfolio and Filtered Portfolio modules. You can even display these full-width or as a grid, such as this:
Demo of Divi’s Filtered Portfolio module displayed as a grid.
These are exactly the features that I’d like to use on the property letting website:
Keep properties separate from pages and posts, using a custom post type.
Display all properties in a grid.
Allow users to filter properties based on the categories that are assigned to them.
So, I want all the features of Divi’s built-in Projects custom post type, but I don’t want them to be called Projects. I want them to be called Properties.
Use a child theme
First, I strongly recommend that you use a child theme when customising Divi (or indeed any other WordPress theme). A child theme inherits the functionality and styling of another theme, called the parent theme, and allows you to make local customisations to it which will not be overwritten when the theme updates.
I copied the code, added it to the functions.php file in my child theme, and set about editing it.
remove_action / add_action
In a nutshell the code from Elegant Tweaks does two things:
It defines a new function — called child_et_pb_register_posttypes() — that will redefine the characteristics of the Projects content type.
It removes the default Projects custom post type contained in Divi, and replaces it with our one in the child theme.
This last point, I believe, is simply to be tidy: rather than clumsily overwriting the existing ‘project’ custom post type it gracefully removes the old one, and creates a redefined version in its place.
Labels
In that Elegant Themes post the author was only concerned with changing the URL from /projects/ to /photos/. So in his example, the names used in the WordPress admin screens still referred to projects: Edit Project, Add New Project, etc. But I want to change these too.
In the code for a custom post type these are referred to as ‘labels’ and are defined in the $labels array. This is what my code looks like now:
As you can see, something I find useful is to list the elements alphabetically. Personally, I find it easier to work this way; your mileage may vary.
Obviously, if you are customising this for your own requirements simply edit this to reflect your needs.
Custom post type options
Next, we define the arguments to be passed to the register_post_type function. These define not only how the custom post type is used but also how it is displayed in the WordPress admin menu: where it sits and what icon it uses.
Slug
The most important option here, for our purpose of customising it, is the 'slug' key. You must set its value (in single quotes) to whatever you need it to be. In my case 'slug' => 'property'. I’ve highlighted this in the snippet below.
Just make sure you don’t set the slug to the same name as an existing page.
Menu icon and position
One useful new addition to the code provided by Elegant Tweaks are the options to set the menu icon and where it sits on the menu.
As these are properties I decided to use the home dashicon.
dashicons-admin-home
I also decided to move it up a bit, from beneath Comments to immediately below Posts. WordPress uses numbers to specify where custom post types should sit, e.g.
5 — below Posts (this is where I want it to appear)
This tells WordPress to apply all of these options to the ‘project’ custom post type.
Because we are redefining this existing custom post type (by changing the URL, the menu labels, the menu icon and position) it means that everything else (the default project page layouts and portfolio modules) will work as expected without any further customization.
Categories and tags
The rest of the code I left untouched. This code defines the categories and tags to be used with the projects/properties custom post type.
How it looks now
Adding all the code (see below for the complete script) this is what my WordPress admin menu looks like:
Divi theme now with Properties instead of Projects
That’s now working as I expect it. Job done.
Complete code
Here is the full code that I have in my child theme’s functions.php file:
Like many things on my blog I’m primarily putting it here for my own reference, but if you find it useful — or would like to suggest improvements or additional features — please leave a comment below.
I meant to say this in the article above. Sometimes WordPress gets a bit muddled when you play around with custom post types.
The way to fix this is to go to Settings > Permalinks > Save Changes.
That’s enough to flush the permalinks and your custom post type should work. I had to do that a couple of times while figuring out how to do this.
Update 2: Plugin discovery
Monday 20 April 2015
A few days ago I discovered this plugin: Divi Page Building for Custom Content Types.
This plugin allows you to use the Divi builder for Posts, or indeed any custom post type.
Update 3: Fix for Divi 2.5
Saturday 26 September 2015
I’ve now (finally) updated the code to make it work fully in Divi 2.5.
In the end it was quite simple: the add_action(...) and remove_action(...) priorities were wrong in my code. These tell WordPress in which order actions should be executed.
In my previous code I was instructing WordPress to unload the default Divi project custom post type before it had even been defined.
The default priority value is 10; I’d set mine to 0 and 1, respectively.
A huge thank you to Craig Campbell for his excellent Chrome Logger extension and ChromePHP class — two tools that greatly helped me work out what was going on.
I use analytics cookies (Microsoft Clarity) to understand how the site is used and improve content.