Skip to content

Commit

Permalink
More theme & syntax & Linux clipboard support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloxaf committed Jul 11, 2019
1 parent 3c79497 commit d0e3f4e
Show file tree
Hide file tree
Showing 69 changed files with 37,105 additions and 80 deletions.
101 changes: 101 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ failure = "0.1.5"
clipboard = "0.5.0"
structopt = { version = "0.2.18", default-features = false, features = [ "color", "wrap_help" ] }
itertools = "0.8.0"
tempfile = "3.1.0"

[build-dependencies]
syntect = "3.2"
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ A [Carbon](https://github.com/dawnlabs/carbon) alternative implemented in Rust.
## TODO

- [x] MVP
- [ ] More themes
- [ ] More syntaxes support
- [x] More themes
- [x] More syntaxes support
- [ ] Better font support
- [ ] Clipboard support
- [x] Get code from clipboard
- [ ] Paste the image to clipboard
- [x] Linux
- [ ] Windows
- [ ] MacOS
- [ ] Watermark
3 changes: 3 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Assets

Silicon uses [bat](https://github.com/sharkdp/bat/tree/master/assets)'s syntax and theme resources.
19 changes: 19 additions & 0 deletions assets/sync_from_bat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python
# Sync themes and syntaxes from [bat](https://github.com/sharkdp/bat/tree/master/assets)

import os
from glob import glob
from shutil import copy

if not os.path.exists('../../bat'):
os.system('git clone https://github.com/sharkdp/bat ../../bat')
else:
os.system('git -C ../../bat pull')

for syntax_file in glob('../../bat/assets/syntaxes/**/*.sublime-syntax'):
copy(syntax_file, './syntaxes/')

for theme_file in glob('../../bat/assets/themes/**/*.tmTheme'):
copy(theme_file, './themes/')

print('Finished.')
Loading

0 comments on commit d0e3f4e

Please sign in to comment.