GithubHelp home page GithubHelp logo

^C , v in dired mode about rspec-mode HOT 5 CLOSED

pezra avatar pezra commented on August 11, 2024
^C , v in dired mode

from rspec-mode.

Comments (5)

asok avatar asok commented on August 11, 2024

I have something like this in my init file:

(defun dired-rspec-verify-single ()
  (interactive)
  (rspec-compile (mapconcat 'identity (dired-get-marked-files) " ") (rspec-core-options)))
(defun dired-rspec-verify ()
  (interactive)
  (rspec-run-single-file (dired-current-directory) (rspec-core-options)))

The first command runs specs marked in the dired buffer and the second all of the files in the dired's directory. Maybe it's worth putting something similar in the README, dunno.

from rspec-mode.

pezra avatar pezra commented on August 11, 2024

I think having this as part of rspec-mode would be nice. I would merge a
pull request with this behavior.
On Jan 30, 2013 2:50 AM, "Adam Sokolnicki" [email protected] wrote:

I have something like this in my init file:

(defun dired-rspec-verify-single ()
(interactive)
(rspec-compile (mapconcat 'identity (dired-get-marked-files) " ") (rspec-core-options)))(defun dired-rspec-verify ()
(interactive)
(rspec-run-single-file (dired-current-directory) (rspec-core-options)))

The first command runs specs marked in the dired buffer and the second all
of the files in the dired's directory. Maybe it's worth putting something
similar in the README, dunno.


Reply to this email directly or view it on GitHubhttps://github.com//issues/48#issuecomment-12881915.

from rspec-mode.

dgutov avatar dgutov commented on August 11, 2024

Thanks, I've merged the pull request and moved that code to a separate minor mode.

I'm not sure, though, if we should enable it in all Dired buffers, via autoloads, like we do with rspec-verifiable-mode. Feels too invasive to me.

from rspec-mode.

pedz avatar pedz commented on August 11, 2024

You are busy busy busy the past few days. Thank you for your work.

from rspec-mode.

dgutov avatar dgutov commented on August 11, 2024

No problem.

from rspec-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.