spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.3k stars 1.61k forks source link

History log's context menu: add an entry "Evaluate (Enter)" #787

Open spyder-bot opened 9 years ago

spyder-bot commented 9 years ago

From pierre.raybaut on 2011-10-06T16:02:58Z

Feature request from adeel: ( http://groups.google.com/group/spyderlib/browse_thread/thread/5270cc077d00297a?hl=en )

When we select some line in History Log and press mouse right-click two options appear 1:Copy Ctrl+C 2:Select All Ctrl+A I have seggestion that maybe a third option "Evaluate (Enter)" should also be included so that user may press enter or click Evaluate and that line/command is executed in interpreter This is same as "Matlab's Evaluate" in history

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=787

spyder-bot commented 9 years ago

From batuhan.osmanoglu@gmail.com on 2011-10-06T17:21:05Z

Could it also be possible to trigger this with F9 (Run Selection) just like in the Editor?

spyder-bot commented 9 years ago

From pierre.raybaut on 2011-10-09T07:10:19Z

Regarding the shortcut, the problem is that F9 is a global shortcut in Spyder, i.e. pressing F9 will trigger the editor's "Run selection/block" action even if the history log has focus. This is intended, as running code in console will give focus to console and editor will loose focus, so it is necessary for this shortcut to be global.

So we can't attribute F9 to both Editor and History log actions.

spyder-bot commented 9 years ago

From Con...@gmail.com on 2012-03-10T21:39:12Z

I agree this would be a nice enhancement when working with the interpreter.

I tend to like the paradigm of double-clicking a single entry or highlighting multiple entries and selecting an evaluate command (key press or secondary mouse action) to send the event to the active command window. "Drag and drop" could be a viable option as well.

spyder-bot commented 9 years ago

From pierre.raybaut on 2012-03-18T14:11:10Z

Labels: -Type-Enhancement Type-Enh

spyder-bot commented 9 years ago

From ccordoba12 on 2014-08-23T13:33:31Z

Labels: MS-v2.4

spyder-bot commented 9 years ago

From jjdambro...@gmail.com on 2014-12-27T09:53:14Z

The History Log In the RStudio have two nice options. 'To Source' means to the code editor and 'to Terminal'.

816-8055 commented 6 years ago

no progress yet?

ccordoba12 commented 6 years ago

Nop, sorry.

816-8055 commented 6 years ago

I didn't manage to get the shortcut working. Could someone please give me a clou?

ccordoba12 commented 6 years ago

This is not working yet.