Is there any way to navigate files in Coda using the keyboard? I love most things about Coda, but having to use the mouse to find and open files is a bit of a pain. Hopefully I'm missing something obvious.
What you really want is SwitchFocus: http://habitatus.net/blog/2009/08/switch-focus-coda-plugin/
There are a couple of caveats. Make sure you read the comments that other people have submitted; they are helpful in getting you reasonable behavior in the sidebar file browser.
mount -t coda ..., and then use your favorite shell/file manager?
Related
I have just made the switch from Textmate to MacVim and so far I am loving it! My workflow is just becoming a breeze… and I'm kinda hooked on that.
As front-end developer working on Rails projects I find that I am constantly opening up the same folders in the projects (app/assets/javascripts|stylesheets & app/views & specs).
I was wondering if there was a way to set shortcuts to open up these folders in NerdTree? I've looked into Bookmarks but these seem absolute paths - I'd like default relative paths for all the Rails projects I work on. Is this possible?
Thanks,
Ad
There is no default way to do this in NERDTree. It is probably possible, but it would require a custom script to do what you're describing. I'm sure you can get help developing that if you look for it, but I'm betting it will be hard to find something that already does this.
You can, however, check out https://github.com/tpope/vim-rails/, which as far as I know is the de facto standard for Rails development in Vim. It'll probably cut down on your need to use NERDTree to navigate files at all, because you can jump through related files quickly with other commands.
As romaini mentioned, bookmarks are also very handy. Make a bookmark for the top-level of a Rails project, open something, use vim-rails techniques to navigate related files, you'll get what you need.
Did you try the project plugin?
NERDTree stores bookmarks in a very simple file. Creating one such file for every project and pointing NERDtree to it may solve the problem.
This is probably bordering off-topic-ness here, but not a lot of people on SuperUser use GVim, as opposed to here, so I'm leaving it here.
The problem is simple - I'm using GVim 7.3. from vim.org, downloaded it in the form of archived binaries (the two archive files) like always and replaced the older version. However, I can't get Windows to recognize it and to associate a file extension to it.
From windows explorer go to, let's say, .py file, Open with ... / Browse / gvim.exe in its directory and ... nothing. Like it never happened.
Does anyone have any idea what could be causing this behaviour? It's mighty annoying to have to open every file from within Vim manually.
I think the default installer ("self-installing executable") from vim.org lets you register shell associations; this means you get an entry "open with vim" in every context menu from the explorer. Did you not use this file?
I'm looking at this page and I'm thinking about this download.
This doesn't answer your question, but it's a different way to edit with gvim from the context menu.
Create a .reg file with the contents below (adjusting your path to gvim.exe) and execute it. Then whenever you right-click on a file in explorer you will have an "Open with GVIM" option.
REGEDIT4
[HKEY_CLASSES_ROOT\Unknown\shell]
#="Open with GVIM"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with &GVim]
#="Open with GVIM"
[HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\Open with &GVim\command]
#="C:\\Vim\\gvim.exe \"%1\""
I gave up trying all kinds of tricks through the registry, but this solution works for me just fine. I might add, I'm having the same issue on Windows 7. Since Windows seems to be able to do the association with vim.exe just fine, and this is apparently tied to the file name, I moved vim.exe off as say vim.ex$ and made a copy of gvim.exe to vim.exe. Cheap and easy way around this goofy problem, and I can't say I ever use vim.exe on purpose.
What shortcuts do you use for file navigation in Gedit? Does anyone use the file browser?
I thought that these shortcuts would exist, but I can't find anything about them:
switch focus to/from the file browser.
disclose folder contents. (Most applications use up/down arrows for moving up and down, and the right/left arrows to open/disclose the folders.)
Do these exist?
Thanks,
Loren
I'm going to assume at this point that no one knows of these. (The only semi-useful shortcut I have found is F9, which simply shows/hides the file browser.)
Even the official shortcut list doesn't show anything regarding these two features:
http://live.gnome.org/Gedit/KeyboardShortcuts
For now, I'll submit this as a bug. Please let me know if this changes, so I can inform the dev team.
Loren
The shortcuts for the embedded file browser are pretty much the same as the file manager ones:
Enter - open directory
Backspace - go back
Alt+Up - go up one level
Up and Down arrows - navigate directory contents
As to how to switch focus to/from the file browser, I have added an answer here.
This question has been asked few times here and there, but you see all of them seem to have a linux desktop, i don't want a notepad++ alternative for a linux desktop, I want a notepad++ alternative for centos server, and I want it to be like nano not like vi, I don't know vi, so i'm looking for an editor that let me open a file on vps, choose a programming language, and it should correct my coding mistakes, this way I would not waste my time uploading files from windows to the vps, it should be easy to use and small, I don't want to waste my vps resources on an editor
Does such an editor exist?
Edit
#romainl
my vps is from 2host.com, I have centos 5 64 bit VPS E-CLASS, go to there for more info, that's all the info I know.
It's my production vps true, but i asked because i have another vps from chvps.com, the cheapest plan, i have mysite.com and mysite.net, I bought mysite.net, so no one can steal it, so i redirect users from mysite.net to mysite.com, I'm creating a new script for my site so chvps host mysite.net where i do some testing for the new version, like a staging server.
moreover i play with django on alwaysdata.com so I would like to get an editor.
I have seen many people saying that they love vim/vi, i will learn to use vim if you can tell me why vim is more powerful? aren't they all just editors?
To answer your question directly, here are a few CLI editors:
ne
joe
midnight commander's editor
As far as I know they won't show syntax errors as you type or even on save, you won't get any (semi)auto-completion either. All in all these are more powerful than nano but less powerful than NP++ (which I'm not familiar with) and a fortiori vim or emacs.
Anyway, a stock vim, even built with "huge" feature-set won't check the syntax of your PHP files as you type or on save, you'll need a bunch of plugins for that.
I don't know about emacs, but vim can be used in "easy" mode like this: vim -y yourfile.php.
Vim is one of the two best editors out there, learning its basics is not that hard. You probably don't have much time to spend on it right now but, once you do, try it. It rocks.
Can you tell us a bit more about your workflow (server layout, use of a VCS…)? At a glance it looks like you are editing files directly on a production server which is not really recommended.
<EDIT>
About Vim and all the others being just editors.
Yes they all have the same set of basic features: ability to input text, cut, paste, move the cursor… but even these basic features can be implemented in many manners. You say that you want NP++ features in a CLI editor, we can assume that you have tried other editors and ultimately decided to go with it because it worked better for you than the others.
All the CLI editors are different, like their GUI counterparts they shine in one place and lack in another. Because you are a programmer you "need" some advanced features and any editor not having a full fledged search/replace system supporting regex, some sort of auto-completion, macros, ability to build and show errors and so on.
Vim and Emacs both offer these fatures and sooo much more either natively or via plugins. As far as I know they are the only CLI editors really suited for programming so, to be able to work directly on your VPS, and be productive, you don't really have much choice: it's either one or the other.
The first problems you may be facing is the abruptness of the learning path and the weirdness of their "models" but most vim/emacs users will tell you that once its internalized it's hard to come back.
Why Vim (or emacs)?
I don't have a specific selling pitch to serve you. I was an advanced TextMate user, for me it was the best editor and it fitted all my needs but I was a little bored.
Then I stumbled on a Python screencast where everything looked magical to me and I found other screencasts by Dereck Wyatt and others and I was hooked: the way they moved through their code, the way they search/replaced, the omni-completion, the crazy plugins (surround rocks), the freaking motions and text-objects…
I took advantage of a slow week to learn the basics and make/revert a lot of mistakes and now I look at TextMate the same way you'd look at Notepad (not ++).
Here are a bunch of additional vim links for you:
One of the greatest answers here on SO
Coming home to Vim
Vi for smarties
The Physics of VIM
Vim Introduction and Tutorial
Ask HN: Suggestions for mastering vim?
Use Vim Like A Pro
Power Vim Usage
Why, oh WHY, do those #?#! nutheads use vi?
How I boosted my Vim
Ho, I just remembered another CLI editor: diakonos.
</EDIT>
If you asked allready a few times maybe the application you're looking for doesn't exists yet. I have to do the same things like you (edit files on the server, config and scripts) and I do it with jEdit with the langauge specific plugins plus FTP plugin. At least you could give it a try.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Dreamweaver Keeps Getting Dependent Files
I'm using Dreamweaver (CS5) to manage files on a webserver. I have it set so that when I save a file (locally or not) it uploads to the server.
The problem is that when I save/upload a file that links to other files (images, js, css, etc) those files have to upload (or at least check to make sure they are the same) as well.
This becomes an big issue when I'm editing a CSS file with 2000 lines of code and links to hundreds of images.
Is there a way to prevent dreamweaver from uploading everything?
Is there a better Rich text-editor/FTP client for windows
Go to: >Edit on the main toolbar, >Preferences, >Site
Then Select "Prompt on put/check in"
Once you save / put you will get this dialog box:
Select "No" for the "Put dependent files"
Select "Don't show me this message again"
Go to Edit -> Preferences -> Site
Then uncheck "Prompt on put/check in".
nope. there is no friggin' way. Dreamweaver is an intransigent bastard when it comes to that. you can see my comments on the Adobe Help forums...
YOU CANNOT STOP DREAMWEAVER FROM TRYING TO UPLOAD DEPENDENT FILES.
the best thing i've managed is to indicate the files i don't want by setting the 'cloak' flag. 'cloak' doesn't actually work (seriously, Adobe? WTH?), but it does pop up a dialog that let's you say 'No to ALL'. quite frankly, it's a bloody joke, that...
as for a better RichText editor, do you mean a color-coding IDE? in addition to being a great editor period, Notepad++ also has an FTP plugin that is really great. if you want a standalone FTP client, can't do better than (Filezilla)[http://filezilla-project.org/]. and if you're balls-of-steel brave, willing to smash your way through the godawful uptake period, (Aptana Studio 3)[http://aptana.com/] is exquisite. just don't expect a lot of useful tutorials on getting this stonkblonker configured without a lot a head smashing, loud cursing and google-till-you-puke. once you do, however, it's pretty rockin'. but my fave is still Dreamweaver because of the wicked smart ability to load all the referenced files in the header. remember, it was designed for VISUAL development, so that's where it's focused. but it's the best damn IDE i know of for Wordpress, MooTools and Smarty.
anyway. there you go. whew
WR!