Rename air-share to airshare

master
MT 7 years ago
parent 6a1ada6610
commit b522dcfb98
  1. 0
      app/airshare/buffer.py
  2. 4
      docs/HACKING.md
  3. 10
      eaf.el
  4. 2
      eaf.py

@ -24,10 +24,10 @@ Python is a perfect language to develop Qt program and it can call pretty much i
## Let me run hello word
```
M-x eaf-open
M-x eaf-open-demo
```
Then type "eaf-demo" as input, will pop hello world window in emacs like below:
This will pop hello world window in emacs like below:
| Demo |
| :--------: |

@ -435,7 +435,7 @@ We need calcuate render allocation to make sure no black border around render co
'eaf-create-new-browser-buffer)
(defun eaf-create-new-browser-buffer (new-window-buffer-id)
(let ((eaf-buffer (generate-new-buffer (concat "Browser popup window " new-window-buffer-id))))
(let ((eaf-buffer (generate-new-buffer (concat "Browser Popup Window " new-window-buffer-id))))
(with-current-buffer eaf-buffer
(eaf-mode)
(read-only-mode)
@ -660,16 +660,16 @@ the file at current cursor position in dired."
(interactive)
(eaf-file-transfer-qrcode (dired-get-filename)))
(defun eaf-file-transfer-air-share ()
"Open EAF Air Share application."
(defun eaf-file-transfer-airshare ()
"Open EAF Airshare application."
(interactive)
(let* ((current-symbol (if (use-region-p)
(buffer-substring-no-properties (region-beginning) (region-end))
(thing-at-point 'symbol)))
(input-string (string-trim (read-string (format "EAF-Air-SHare - Info (%s): " current-symbol)))))
(input-string (string-trim (read-string (format "EAF-Airshare - Info (%s): " current-symbol)))))
(when (string-empty-p input-string)
(setq input-string current-symbol))
(eaf-open input-string "air-share")
(eaf-open input-string "airshare")
))
(defun eaf-file-upload-qrcode (dir)

@ -118,7 +118,7 @@ class EAF(dbus.service.Object):
except ImportError:
import traceback
traceback.print_exc()
return "Something wrong when import {0}".format(module_path)
return "EAF: Something went wrong when trying to import {0}".format(module_path)
def create_buffer(self, buffer_id, url, module_path, arguments):
global emacs_width, emacs_height

Loading…
Cancel
Save