Skip to content

Commit 3d24540

Browse files
committed
docs: update README.md
1 parent 884feba commit 3d24540

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ The code logic is very simple:
3737
```ruby
3838
if File.exist?(filepath)
3939
if File.image?(filepath)
40-
push_notification('Uploading... Please wait for seconds', filepath)
41-
search_image(filepath.shellescape)
40+
search_image(filepath)
4241
else
43-
push_notification('Please upload an image', filepath)
42+
push_notification('Please select an image', 'Supports jpg, gif, png, bmp, tif, or webp')
4443
end
4544
elsif extract_urls(query).any?
4645
open_urls(query)
@@ -52,7 +51,12 @@ end
5251
## Credits
5352
- Images are uploaded to https://sm.ms/
5453
- Image search was inspired by https://github.com/BlackwinMin/alfred-gallery/tree/master/img%20Search
55-
- It was built with [RubyMine](https://www.jetbrains.com/ruby/).
54+
- It was built with [RubyMine](https://www.jetbrains.com/ruby/) which helped me improve the code quality a lot.
55+
56+
I tried write it with Python, it was not simple at all, I had to deal with some package/language issues. Pain!
57+
I tried write it with Shell, all I did was trying to figure out the syntax. Deep Pain!
58+
I tried write it with Go, well I never get started. Lost...
59+
I tried Ruby(with little Shell code inside), it just worked without much pain! 💖 I really enjoyed it!
5660

5761
## License
5862
[MIT](LICENSE)

0 commit comments

Comments
 (0)