Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record mode #1

Closed
xiaq opened this issue Apr 26, 2014 · 2 comments
Closed

Record mode #1

xiaq opened this issue Apr 26, 2014 · 2 comments

Comments

@xiaq
Copy link
Member

xiaq commented Apr 26, 2014

Record mode is a simple way to save part of an interactive session into a script. Like MS office macros, or Vim's recording with q.

Hit ^R to start and stop recording:

~> ^R
RECORD 1 ~> var $a String
RECORD 2 ~> set $a = `lala`
RECORD 3 ~> echo $a
lala
RECORD 4 ~> ^R
save as (^C for discard): a.elv

(Some style could be applied to RECORD #)

@xiaq
Copy link
Member Author

xiaq commented Jan 27, 2016

The solution is to clone the history listing functionality of ptpython.

@xiaq xiaq closed this as completed Jan 27, 2016
@xiaq
Copy link
Member Author

xiaq commented Jan 27, 2016

Tracking in #63.

xiaq added a commit that referenced this issue Jul 30, 2024
- Style <h1> in title pages (including the title of the whole presentation and
  section titles) differently from <h1> elements in normal content pages, plus
  other minor style tweaks.

- Add a sequence number to the hash (#1-title instead of just #title), which can
  be used to remember the location when refreshing if the title has changed.

- Escape # and % in the hash, and handle exception from invalid hashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant