DISQUS

DISQUS Hello! Phil Dawes' Stuff is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Solving the Bicyclerepairman 'you have to save before you query' problem

Started by phildawes · 9 months ago

BicycleRepairMan operates by searching and modifying python files on the filesystem, and thus has always required that you save your work before you do a query or a refactoring. I’ve never felt this to be a big deal before, but more recently I’ve been using its functional ... Continue reading »

2 comments

  • Most people I know run IntelliJ in a mode where each file is aautomatically saved the moment the current file looses focus - that coupled with the rather good local history and IntelliJ users (mostly) never have to worry about saving at all. For similar IDE's having to save the file before running it shouldn't be a problem.

    For something like TextMate you should be fine working from an in-memory buffer - in 99% certain TextMate's plugins can access the entire file.
  • Hi Sam!

    For something like TextMate you should be fine working from an in-memory buffer - in 99% certain TextMate’s plugins can access the entire file.


    Actually I found the most inconvenient thing wasn't saving the buffer I was currently working on, but other ones I'd also made changes to. I'm hoping that a BRM TextMate plugin could just adopt the same strategy as above - i.e. save unsaved buffers into temporary #filename# files prior to invoking a query.

Add New Comment

Returning? Login