Skip to content

Commit 8860413

Browse files
committed
📍[main/README] v1.0
1 parent 4fb910c commit 8860413

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.vscode/ltex.dictionary.en-US.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-xlib

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,4 +489,17 @@ Notice that there is one more thing for you to modify in the source code in `mai
489489

490490
This is the whole set up I have, and let's wrap this up, since I know this may be quite overwhelming.
491491

492-
1.
492+
1. Before you start your project, please go to `Visual` mode by entering `v` in `Normal` mode. And then press `ctrl+f`. This will set up the file watcher.
493+
2. When you want to create a new figure, go into a new line, type the name of your figure in `Insert` mode, then press `ctrl+f`. This will create a new figure with the name you typed, and open it in Inkscape for you.
494+
3. When you have done drawing your figure, as long as you press `cmd+s`, it will automatically save the figure in `pdf+latex` for you, then you can close Inkscape.
495+
4. When you want to edit one of your figure, you press `ctrl+f` in `Normal` mode, it will pop out a window for you to choose the figure you want to edit. And the rest is the same as 3.
496+
497+
## Credits
498+
499+
Again, thanks to Gilles Castel, this workflow really fit my style. Although it originally works in Linux+Vim only, but the idea is the most important thing. Without his wonder post, I can't even imagine this is possible. But now it is! Definitely go to his original post to show him some love.
500+
501+
## TODO
502+
503+
If you read through Gilles Castel's posts, you'll find out that I don't have any solution for [inkscape-shortcut-manager](https://github.com/gillescastel/inkscape-shortcut-manager), this is because it depends on a particular library called `Xlib`, which is only for Linux.
504+
505+
Currently, there is a repo called [python-xlib](https://github.com/python-xlib/python-xlib) for macOS, but it's still underdeveloped. And although they claim that the most functionality is done, but there is still some bug when I want to use [inkscape-shortcut-manager](https://github.com/gillescastel/inkscape-shortcut-manager). Hence, let's see what can we do for this part. I currently just use the default shortcut, and this works quite well for me. If there is any alternative, definitely let me know!

0 commit comments

Comments
 (0)