Open file on macvim from Iterm2 - macvim

I always use Command + click to open file from iterm2.
However, it always open a new window instead a new tab of the existing windows.
What configuration do I need to do?

I realized that the configuration need to be done in macvim.
1) Click on macvim > Preferences
2) Go to the General tab
3) In Open files from applications:, choose in the current window

Related

Edit file from Sourcetree in PhpStorm

In Sourcetree you can right click a file (from current commit / branch) to edit, it then opens a window where a script target can be entered. What to fill in there so it opens the PhpStorm editor?
I work with a Mac
Ah.. with the finder click on a file, show info, open with, change all.
Then open in Sourcetree will use that application.

Creating .htaccess file without it disappearing upon save (Mac OS)?

Title. I need to upload an htaccess file to my 1and1 webserver but as it's a dot file I can't save it.
What happens here is that you actually CAN save the file, but you just cannot see it.
By default, OSX hides some kind of file.
To make these files visible you have 2 options:
1: Show just once
Go to the folder where you want to see the hidden files.
Press Cmd + Shift + . (dot) in this folder.
Run the same operation to turn it off, or simply close the tab.
2: Show until you turn it off
Open the terminal
Run this command: $ defaults write com.apple.Finder AppleShowAllFiles true followed by $ killall Finder
To turn it off simply replace the true by false in the previous command.
Here you go, from now you should see all the hidden files you want.

PhpStorm keystroke for navigate between Version Control panel tabs (Local Changes, Log, Console, Shelf)

How to navigate between Version Control panel tabs (Local Changes, Log, Console, Shelf) in PhpStorm?
Show Local Changes
Show VCS Log
Are two commands that you can assign a shortcut to jump to the relevant VCS tool window tab. I am not sure if there is a command for the "Console" tab unfortunately.
But if you're in the tool window already (Cmd+9orAlt+9) you can use Ctrl-Left/Right(Mac), Alt+Left/Right(Windows) to cycle tabs.

Google chrome can't read and write to its data directory mutli-device hybrid app

On running the ripple emulator with nexus s & galaxy . I am getting a dialog box saying
Google chrome can't read and write to its data directory
c:\ users\amit
and when i click ok on that .suddenly chrome opens up saying : cannot view webpage .
one more thing where can i set the System path variable to
%JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;
I mean to say what is this(System path variable) i don't understand .
If you are using Windows:
Go to C:\Program Files (x86)\Google
Right-click on the "Chrome" folder
Go to the "Security" tab
Click on "Edit..." button -> "Add..."
Type Everyone -> "OK" -> "OK"
Click on "Advanced"
At the end of the "Owner" field, click on blue "Change" word
Type Everyone -> "OK" -> "OK" -> "OK"
This worked for me on Windows 7.
Go to the file given in the error message:
c\users\[username]\application data\local\google\chrome
right click the chrome file
share with-specific people
use drop down arrow in top box and choose your username ie give yourself permission to share the file.
add
confirm.
Message says its been done,
close.
Chrome then opens without having to open it as administrator after every boot-up.
It seems your Chrome user data directory might be corrupted, try following and see whether it helps:
Take the back-up of bookmarks (if you want to back-up the data)
Delete C:\Users\[user name]\AppData\Local\Google\Chrome folder
Uninstall Chrome
Reinstall Chrome
For the time being, you can create a android emulator. You don't need chrome for that.
It will work normally when you log in as administrator. If not you can simply change the "chmod" of the directory to 777. it will work.
I was facing this same issue for months, and now I have solved it.
First uninstall Chrome then go to C:\Program Files to double-check and hence delete the 'Google' folder if it still remains.
Then press Windows+R and type in regedit to enter into Registry Editor.
Now locate HKEY_CURRENT_USER\Software\Policies\Google and delete the Google folder. In case you don't find the folder, just delete any Google folder you come across under HKEY_CURRENT_USER\Software
Almost Done! Now download Chrome from it's website, install it and give it a try.

Package Control - plugin to run file in browser

I am looking plugin to run .html file in browser and also open folder in windows explorer.
The reason is simply. I always start work in the same way: run Sublime Text 2, click 16 times with mouse on folder to open folder with project and run index.html or other. I also need open folder because i copy there from time to time some graphics or other files.
Navigating to files
You can save your workspace as a project in Sublime Text so you don't have to re-navigate to the same files every time.
Open the files you need and lay them out however you like
Go to Project > Save Project As and save the project file somewhere convenient
Open the project file to resume work on those files
As a side note, I highly recommend the SyncedSidebar plugin to automatically expand the sidebar to reveal the files you have open.
You should also be able to right click in the file you're editing and "Reveal in Windows Explorer" (I use a Mac so I can only verify "Reveal in Finder").
Opening in a browser
You can set up a build path for this, or use a plugin like View in Browser.