cmpitg / wand

Execute actions based on text patterns, for Emacs
GNU General Public License v3.0
87 stars 4 forks source link

Could it be used without a selection? #11

Closed casouri closed 5 years ago

casouri commented 5 years ago

Is there going to be a command like execute-at-point?

cmpitg commented 5 years ago

Sorry it took ages for me to reply. Though I use the extension on the daily basis, I have not been so active in maintaining it. Now I intend be involved a bit more.

There could be a command like execute-at-point, though I don't know if such use case is strong. Would you be seeing yourself using such command often?

In the mean time, it's very trivial to add a wrapper to wand:execute that takes the current thing-at-point, e.g.

(defun* ~execute-thing-at-point (&optional (thing 'line))
  "Executes the current thing at point"
  (interactive)
  (require 'thingatpt)
  (wand:execute (thing-at-point thing)))

Hope this helps!

casouri commented 5 years ago

Thanks, this should work :-)