Giter Club home page Giter Club logo

Comments (5)

neowit avatar neowit commented on June 7, 2024

Current version of the documentation is misleading.
When vim-force.com was ant based it included :ApexRefreshFile. Since the switch away from ant :ApexRefreshFile command has never been implemented. You are the first person who asked about it in two years, so I am guessing :ApexRefreshFile command is not very popular.

I may add :ApexRefreshFile back at some point in the future, if there is a compelling argument in favour of this.

For now (assuming you do not want to refresh the whole project for some reason) you have two options:

  1. use :ApexDiffWithRemoteFile - this will show you what's different between local and remote versions of the file in the current buffer, and you can pick all or some changes using your diff tool. You may also want to configure 'g:apex_diff_cmd' if you have not done so already.
  2. Switch to ant based version of the plugin - you will lose lots of functions, but :ApexRefreshFile will be there.

from vim-force.com.

tony534 avatar tony534 commented on June 7, 2024

Thank you very much neowit!

You are doing an awesome project !

from vim-force.com.

b-n avatar b-n commented on June 7, 2024

+1 to adding :ApexRefreshFile back. I must admit my use case is down to bad workflow... but yeah. I would mainly use it for VF Pages. I like to use the developer mode to create/edit some pages as it allows for instant preview. Sometimes I would like to make a very small minor change to the controller/extension (add a new field binding etc), and switching back to vim to make that change can be a pain. Assuming I wanted to then extend that controller/extension, it means I need to refresh the project. If I've got a lot of components, that's going to take extra time waiting for the whole project to refresh, when I know I only need one file refreshed.

Also in the rare case that I'm working with another person, they may edit the same file via their IDE (I'm slowly convincing others to switch to Vim-Force of course), and refreshing an entire project seems like a bit of overkill for just one file. If you added it back in, I'd definitely be happy, but I understand there are probably better things to work on.

from vim-force.com.

neowit avatar neowit commented on June 7, 2024

Thanks for you comments @nzchicken and @tony534 .
Will keep this issue open for now, to keep :ApexRefreshFile on my radar.

from vim-force.com.

neowit avatar neowit commented on June 7, 2024

:ApexRefreshFile command is back in the latest version of the plugin.

from vim-force.com.

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.