|
|
|
[
Permlink
| « Hide
]
Roman Chernyatchik - 20 Jul 07 19:41
Toli, please explain in more detail what you mean.
Sorry i wasn't clearer.
I have "autoscoll to source" button pressed on the project view. However, if i do the same with a Ctrl-Shift-N and .rhtml file, the project view selection stays on the previous file and the .rhtml file is not selected. That was the behaviour i saw in rev 9426 I just tried reproducing it now with rev 9467, and it seems to work for regular filename.rhtml files. as soon as i switch tabs to a different file the project view follows them, but when i come back to another _file_name.rhtml it stays with previous. so it seems that only _file.rhtml files don't work. Screenshot attached. the problem files i the right-most in the list of file tabs, is currently active but the project view did not sync. >and the project view scrolls to the location of the file and that .rb file is selected.
There are two autoscrolls:
(on the screenshot both autoscrolls are enabled) I've just check our current version:
We will fix "Autoscroll from source" in future. P.S: I noticed(on screenshot), that you don't use our "Rails Project View", is it uncomfortable for your project? "Autoscroll from source" is fixed for RailsView, see rev. 10300. It still sometimes doesn't work in Standart Project View( I suppose it's IDEA bug), but always works with Alt+F1 (select in ..)
Didn't know there was a Rails project view - now using it, looks awesome, thank you very much. Autoscroll for controllers/models seems to work great.
However, i noticed that if you open a test (such as IdRepositoryControllerTest in the sample screenshot) the atuoscroll from source opens the first controller in the test, but not the actual test. It's not a big deal since it's essentially in the same file, but thought you may want to know. Screenshot attached. The cursor is within the xxxTest module, but the overridden controller is scrolled to instead. See how the cursor is in the xxxTest class but the controller class above is scrolled-to instead.
Yes, you are right. At current moment Idea Plugin API (for autoscroll from source) doesn't allow us to get information about current position in ruby script, thus we had to navigate to the first class in current file.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||