d9972636a7
Prevent opening text files
...
Opening a text file would overwrite the current draft, so for now we'll
disable this.
2018-09-30 13:06:56 -04:00
d19c8aef40
Return Markdown-enabled URL on publish
2018-09-30 12:19:51 -04:00
8318eaa2f5
Remove underscores from Save as dialog
2018-09-25 12:43:33 -04:00
6e530b33d2
Set User-Agent on the CLI
...
Requires writeas-cli v1.1
2018-09-25 12:42:46 -04:00
5203186291
Remove ability to open files
2018-09-06 08:53:39 -04:00
Adrian Cochrane
5746cd213c
Optimize test for whether a dark mode is available.
2018-08-26 15:05:49 +12:00
Adrian Cochrane
2b996d5a47
Use Gtk.SourceView over Gtk.TextView to aid writing longer posts.
...
Right now this mostly just includes (most importantly) undo/redo,
and less importantly smarter deletion and keyboard navigation.
2018-08-25 13:43:00 +12:00
Adrian Cochrane
b82cbb7214
Return focus to textview after settings change.
2018-08-25 12:10:20 +12:00
Adrian Cochrane
e948f63fb1
Refactor after removing custom dark mode.
2018-08-25 10:45:10 +12:00
Adrian Cochrane
409c55897a
Disable darkmode for non-supporting themes rather than define one ourselves.
...
Because changing the background colour of a textview for some reason
causes text selection not to show. This is a documented issue others
experience.
This code could be refactored a little now, but it works for the
elementary and HighContrast themes.
2018-08-25 10:29:47 +12:00
Adrian Cochrane
961c8cde87
Guard against spuriously saving blank files.
...
Because for some reason this would happen seemingly at random before.
No idea why. But I did test that it occurs during save, not read.
And it doesn't appear to happen anymore.
2018-08-24 14:38:43 +12:00
Adrian Cochrane
e5e4665163
Assign a percentage for padding.
...
This is manually computed, because GTK is just complaining it doesn't support percentages.
2018-08-24 13:33:53 +12:00
Adrian Cochrane
8028f4a46e
Fix textview styling.
2018-08-24 13:08:29 +12:00
95b324f8d2
Add GPL license
2018-07-19 16:36:34 -04:00
58cfdf6045
Change some if/else formatting
2018-04-24 09:25:29 -04:00
6818ae240b
Support changing font size
2018-04-21 23:09:39 -04:00
0b2d476a75
Document shortcuts
2018-04-21 22:37:53 -04:00
1f531032bd
Move post font prefs into [Post] category
2018-04-21 22:36:10 -04:00
8076cb1c33
Fix font preference not persisting when loading w/ dark mode
...
Previously, the initial dark mode toggle would cause the default
settings to be saved, before font preferences ever loaded.
2018-04-21 20:20:02 -04:00
c39c5e0742
Support toggling theme with Ctrl+T
2018-04-20 15:07:23 -04:00
07e5f7653b
Set dark mode button state correctly on load
...
Closes #11
2018-04-19 21:08:25 -04:00
7b4445955e
Support publishing with Ctrl+Enter shortcut
2018-04-19 20:31:46 -04:00
2c51409242
Set title to "Write.as", not word count
...
Moves the word count to the title bar subtitle.
2018-04-19 20:29:01 -04:00
081126aaa6
Rename write-as-gtk to writeas-gtk
2018-04-19 16:27:05 -04:00
7062bff9aa
Use larger font size
2018-04-19 15:50:30 -04:00
30b2514b49
Only open browser on successful publish
...
This checks the returned error code from `writeas` and skips the browser
opening if the status != 0.
2018-04-19 15:43:28 -04:00
caeebc37f3
Publish correct draft file
2018-04-19 15:43:07 -04:00
ffe3ae65fe
Support closing app via Ctrl+W or Ctrl+Q
2018-04-19 14:33:52 -04:00
fdfbfb2645
Store draft and preferences in ~/.writeas folder
2018-04-19 13:50:10 -04:00
750004effa
Use same dark background as web editor
2018-04-19 10:04:16 -04:00
54d7f5b8b7
Fix application icon on Ubuntu
2018-04-19 09:56:45 -04:00
Adrian Cochrane
c973cc332a
Fix problem with reading the theme info.
...
Turned out I was saving the theme before I had a chance to read
the values saved from the last run.
2018-04-19 16:00:25 +12:00
Adrian Cochrane
e5e07b1baf
Remove dependencies that are now encapsulated by the CLI.
2018-04-19 15:41:15 +12:00
Adrian Cochrane
2c8635bf23
Save theme information.
...
Though there seems to be problems reading it back out.
2018-04-19 15:40:05 +12:00
Adrian Cochrane
7546eefb75
Indicate selected font.
2018-04-19 15:16:22 +12:00
Adrian Cochrane
9b6e6d8b4d
Add a window icon for taskbars which don't read the application launcher.
2018-04-19 11:05:02 +12:00
Adrian Cochrane
ef5d657d0c
Tidy up new publishing code.
...
Now supports multiple fonts and the caller can be written more naturally.
2018-04-19 10:32:38 +12:00
Adrian Cochrane
86e2c0f7b6
Switch to using the commandline.
...
TODO ensure it is installed with the packaging.
2018-04-19 10:01:48 +12:00
Adrian Cochrane
6b8e15f78f
Merge branch 'master' of https://code.as/writeas/writeas-gtk
2018-04-19 09:03:14 +12:00
Adrian Cochrane
f411646722
Add scrollbars to fix window sizing.
2018-04-19 09:02:34 +12:00
62deb28472
Fix monospace font value
...
I slipped on this one -- the correct font value for monospace posts is
"wrap" not "mono". "mono" is more for code or terminal output, not the
writing that users will do with this app.
2018-04-18 09:48:46 -04:00
55678c93b9
Append publish result instead of replacing text
2018-04-18 09:45:00 -04:00
Adrian Cochrane
05cb9be6bd
Fix some lagginess caused by autosave.
...
5min.
2018-04-18 13:21:10 +12:00
Adrian Cochrane
dcde2f0bda
Allow publishing in the different font faces.
...
4min.
2018-04-18 13:14:55 +12:00
Adrian Cochrane
150f20035d
Implement the 'always-saved' feature both write.as and elementary pride themselves on.
...
8min.
2018-04-18 13:09:14 +12:00
Adrian Cochrane
e91fb6601b
Remove some dead code.
2018-04-18 12:58:30 +12:00
Adrian Cochrane
780516af8a
Fix publishing to Write.as.
...
50min
2018-04-18 12:57:12 +12:00
Adrian Cochrane
17636c56e6
Add publish button.
...
Unfortunately the publishing code using the commandline interface
is either nonfunctional or freezes my computer.
I'll try using the HTTP API instead.
>6min.
2018-04-18 11:59:36 +12:00
Adrian Cochrane
a9fc27ce87
Sketch out code to publish text to write.as
2018-04-17 17:08:11 +12:00
Adrian Cochrane
886e493e03
Add a wordcount for a title, similar to the web UI.
...
11min
2018-04-17 16:05:37 +12:00