An Editor that Skips to the End of a Def

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

An Editor that Skips to the End of a Def

by W. Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there an editor that allows one to position to put the cursor and then by
pushing some button goes to the end of the def?
--
                          Wayne Watson (Nevada City, CA)

                        Web Page: <speckledwithStars.net>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Bruno Desthuilliers-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

W. Watson a écrit :
> Is there an editor that allows one to position to put the cursor and
> then by pushing some button goes to the end of the def?

Emacs. And you don't even have to "push some button" (just remember the
correct key sequence !-)
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Paul Rudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"W. Watson" <wolf_tracks@...> writes:

> Is there an editor that allows one to position to put the cursor and
> then by pushing some button goes to the end of the def?

C-M-e in emacs/python-mode.
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by W. Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, but no thanks. The learning curve is way too steep.

Paul Rudin wrote:
> "W. Watson" <wolf_tracks@...> writes:
>
>> Is there an editor that allows one to position to put the cursor and
>> then by pushing some button goes to the end of the def?
>
> C-M-e in emacs/python-mode.

--
                          Wayne Watson (Nevada City, CA)

                        Web Page: <speckledwithStars.net>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Paul Rudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"W. Watson" <wolf_tracks@...> writes:

> Thanks, but no thanks. The learning curve is way too steep.

Up to you but, these days emacs comes with all sorts of
pointing-clicky-menu-y type things - you don't really have to learn
anything to get started.

(It even gives useful advice on top-posting if you use it as a news
client :/)
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by alex-341 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Paul Rudin wrote:
>> "W. Watson" <wolf_tracks@...> writes:
>>
>>> Is there an editor that allows one to position to put the cursor and
>>> then by pushing some button goes to the end of the def?
>>
>> C-M-e in emacs/python-mode.
>
W. Watson wrote:
 > Thanks, but no thanks. The learning curve is way too steep.

There are two good editors for writing code -- vim and emacs.
If you write more than a few lines of code a year you should learn
one of them. Time spent doing it will pay for itself *very* quickly.

--
Alex
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by John J Lee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"W. Watson" <wolf_tracks@...> writes:

> Thanks, but no thanks. The learning curve is way too steep.
[...]

Eclipse must be able to do this.

Eclipse is emacs for stupid people ;-)

Seriously for a moment, I read something recently (maybe here?) about
an Apple study that claimed to show that people who perceived keyboard
bindings as being much faster than mouseing did not, on average, take
less time to complete the actions that were studied (they took more
time, in fact).  The plausible explanation for this was that people's
subjective perception of time is affected by the greater mental work
involved in typing (as opposed to mousing) for a given action.

I suspect the reality is at neither extreme (nor "somewhere in the
middle").


John
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Michael v. Fondern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

W. Watson:
> Is there an editor that allows one to position to put the cursor and
> then by pushing some button goes to the end of the def?

Eclipse, together with the pydev plugin.

(Ctrl-Shift-Down)

Greetings

- Michael -
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Paul Rubin-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jjl@... (John J. Lee) writes:
> Seriously for a moment, I read something recently (maybe here?) about
> an Apple study that claimed to show that people who perceived keyboard
> bindings as being much faster than mouseing did not, on average, take
> less time to complete the actions that were studied (they took more
> time, in fact).  The plausible explanation for this was that people's
> subjective perception of time is affected by the greater mental work
> involved in typing (as opposed to mousing) for a given action.

I think mousing takes more mental work than typing, and that's why it
subjectively seems slower even if a stopwatch shows it to be faster.

I have IM text chats with my officemate all the time even though he's
sitting about 4 feet away from me and I could easily talk to him and
that would probably be faster.  But text chat needs less mental effort
since it doesn't take my attention away from symbols on the screen,
i.e. when the chat topic is something simple, I don't lose mental
context of the program I'm working on and then have to spend time
getting the context back.  In that sense, text chats save time
compared with regular conversations even though they're slower.  

Of course if the chat subject gets complicated and starts needing
careful thought, then it's better to switch to conversation, and
sometimes we both simultaneously realize that and start talking to
each other or using the whiteboard.
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by W. Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe I'll take a look. When I left the world of Unix/Linux 10 years ago,
emacs went with it, as did vi.

Paul Rudin wrote:

> "W. Watson" <wolf_tracks@...> writes:
>
>> Thanks, but no thanks. The learning curve is way too steep.
>
> Up to you but, these days emacs comes with all sorts of
> pointing-clicky-menu-y type things - you don't really have to learn
> anything to get started.
>
> (It even gives useful advice on top-posting if you use it as a news
> client :/)

--
                          Wayne Watson (Nevada City, CA)

                        Web Page: <speckledwithStars.net>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Gary Coulbourne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John J. Lee wrote:
> Eclipse must be able to do this.

Not by default... but I am certain there are plugins that provide python
integration.  (And jython integration)

Peace,
Gary
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by W. Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is vim just an editor or is it capable of running and debugging a program,
as well?

W. Watson wrote:

> Maybe I'll take a look. When I left the world of Unix/Linux 10 years
> ago, emacs went with it, as did vi.
>
> Paul Rudin wrote:
>> "W. Watson" <wolf_tracks@...> writes:
>>
>>> Thanks, but no thanks. The learning curve is way too steep.
>>
>> Up to you but, these days emacs comes with all sorts of
>> pointing-clicky-menu-y type things - you don't really have to learn
>> anything to get started.
>>
>> (It even gives useful advice on top-posting if you use it as a news
>> client :/)
>

--
                          Wayne Watson (Nevada City, CA)

                        Web Page: <speckledwithStars.net>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Ben Finney-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"W. Watson" <wolf_tracks@...> writes:

> Is vim just an editor or is it capable of running and debugging a
> program, as well?

(Please don't top-post. Instead, reply below each point to which
you're responding, removing quoted text irrelevant to your response.)

Both Emacs and Vim are highly customisable text editors. They are
configurable with complete programming languages specific to the
program, and both have a huge community of programmers writing useful
extensions.

So, neither of them is "just an editor"; they are editors at their
core, that can become complete programming environments by taking
already-written components for them. Your operating system
distribution of either Vim or Emacs will already include many of these
components when you install the package, and many more are available.

--
 \        "The restriction of knowledge to an elite group destroys the |
  `\                   spirit of society and leads to its intellectual |
_o__)                                impoverishment." —Albert Einstein |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by W. Watson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How about in the case of MS Win?

Ben Finney wrote:

> "W. Watson" <wolf_tracks@...> writes:
>
>> Is vim just an editor or is it capable of running and debugging a
>> program, as well?
>
> (Please don't top-post. Instead, reply below each point to which
> you're responding, removing quoted text irrelevant to your response.)
>
> Both Emacs and Vim are highly customisable text editors. They are
> configurable with complete programming languages specific to the
> program, and both have a huge community of programmers writing useful
> extensions.
>
> So, neither of them is "just an editor"; they are editors at their
> core, that can become complete programming environments by taking
> already-written components for them. Your operating system
> distribution of either Vim or Emacs will already include many of these
> components when you install the package, and many more are available.
>

--
                          Wayne Watson (Nevada City, CA)

                        Web Page: <speckledwithStars.net>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Bruno Desthuilliers-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

W. Watson a écrit :
> How about in the case of MS Win?
>
> Ben Finney wrote:
>>
>> (Please don't top-post. Instead, reply below each point to which
>> you're responding, removing quoted text irrelevant to your response.)
>>

Wayne, may I second Ben on his suggestion to stop top-posting ?
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Bruno Desthuilliers-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Finney a écrit :

> "W. Watson" <wolf_tracks@...> writes:
>
>> Is vim just an editor or is it capable of running and debugging a
>> program, as well?
>
> (Please don't top-post. Instead, reply below each point to which
> you're responding, removing quoted text irrelevant to your response.)
>
> Both Emacs and Vim are highly customisable text editors. They are
> configurable with complete programming languages specific to the
> program, and both have a huge community of programmers writing useful
> extensions.
>
> So, neither of them is "just an editor"; they are editors at their
> core, that can become complete programming environments by taking
> already-written components for them.

FWIW, emacs has

- a python-mode that let you run either your whole script or parts of it
into a python shell - that of course stays open, so you can examine the
state after execution etc... and it works just fine with pdb.
- ECB (emacs-code-browser), that adds a file explorer and
functions/classes inspector

The combination gives you a full-blown IDE.
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Lawrence D'Oliveiro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In message <87odfxjgjy.fsf@...>, John J. Lee wrote:

> Seriously for a moment, I read something recently (maybe here?) about
> an Apple study that claimed to show that people who perceived keyboard
> bindings as being much faster than mouseing did not, on average, take
> less time to complete the actions that were studied (they took more
> time, in fact).  The plausible explanation for this was that people's
> subjective perception of time is affected by the greater mental work
> involved in typing (as opposed to mousing) for a given action.

<http://www.asktog.com/SunWorldColumns/S02KeyboardVMouse3.html>
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Lawrence D'Oliveiro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In message <87hclpjm3a.fsf@...>, Paul Rudin wrote:

> ... these days emacs comes with all sorts of
> pointing-clicky-menu-y type things - you don't really have to learn
> anything to get started.

After two decades of putting up with vi just to ensure compatibility with
every proprietary *nix system I might come across, let me just say ...

USE EMACS!

Oh, and <http://ars.userfriendly.org/cartoons/?id=20070910&mode=classic>.
--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Anthony Roy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sep 21, 4:47 am, "W. Watson" <wolf_tra...@...> wrote:
> How about in the case of MS Win?

Both emacs and vim have GUI versions that run on Windows.

--
Ant...

--
http://mail.python.org/mailman/listinfo/python-list

Re: An Editor that Skips to the End of a Def

by Bjoern Schliessmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lawrence D'Oliveiro wrote:
> After two decades of putting up with vi just to ensure
> compatibility with every proprietary *nix system I might come
> across, let me just say ...
>
> USE EMACS!

Nah. Use vim.

> Oh, and
> <http://ars.userfriendly.org/cartoons/?id=20070910&mode=classic>.

Esc-Meta-Alt-Ctrl-Shift? :)

Regards,


Björn

--
BOFH excuse #418:

Sysadmins busy fighting SPAM.

--
http://mail.python.org/mailman/listinfo/python-list
< Prev | 1 - 2 - 3 | Next >