Term::...::Emacs(3pm)

πŸ“¦
version 0.07 Β· 2 versions
  • 0.07 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.07 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Term::...::Emacs(3pm) β€” a readline emacs mode πŸ’–

okay bestie, gather round, because this is the Term::...::Emacs(3pm) page and it's giving "tiny module, big emacs energy". it lives in the User Contributed Perl Documentation corner of the manual and it's adorable. let's go πŸ¦‹


✨ NAME ✨

Term::ReadLine::Zoid::Emacs β€” a readline emacs mode πŸŽ€

literally what it says on the tin. it's a mode. it's emacs-flavoured. she's iconic.


🌸 SYNOPSIS 🌸

okay so here's the whole vibe: this class doesn't get used on her own, she's a mode under Term::ReadLine::Zoid. so if you're looking for how to actually use her, go read that page, bestie β€” the usage deets live over there, not here. πŸ’…


🫢 DESCRIPTION 🫢

so what does this mode actually do? she provides some emacs key-bindings, and she took bash(1) as her reference implementation. like, bash is the blueprint, and she said "noted, slay, copying that homework but making it my own." 😌

also, this module provides a 'emac_multiline' key map. (yes that's spelled exactly like that, don't come for me, I'm just the messenger πŸ’€)


πŸ‘‘ KEY MAPPING πŸ‘‘

heads up: these bindings are additional to the ones already in Term::ReadLine::Zoid, which β€” plot twist β€” already contains some emacs key bindings. so this is a little bonus stack on top. extra. as she should. ✨

  • escape, ^[ β€” (prefix_meta)
  • meta-f β€” (forward_word)
  • meta-b β€” (backward_word)
  • ^X^V β€” (switch_mode_command) β€” enter (vi) command mode. taken from zsh(1). so you can dip into vi mode for a sec, no big deal, we contain multitudes πŸ’œ
  • ^V, ^Q β€” (quoted_insert) β€” insert the next key literally, ignoring any key-bindings. raw. unfiltered. she said "I don't care what you bound that to, I'm typing it anyway."
⚠️ WARNING: control or escape chars in the editline can cause unexpected results. so like… be careful, bestie. this is the "we're so back / it's over" pipeline and the editline does not care about your feelings 😭

🧚 TODO 🧚

the to-do list, aka the "we'll get to it, manifesting" section:

  • get count args right (see bash reference)
  • a lot more bindings
  • a emacs multiline mode

three whole items. she's honest about it. we respect the transparency fr fr πŸ™ˆ


πŸ’œ AUTHOR πŸ’œ

Jaap Karssenberg (Pardus) <pardus@cpan.org> πŸ’Œ

Copyright (c) 2004 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

(so yes, same terms as Perl itself β€” go wild, but respectfully 🌈)


🌟 SEE ALSO 🌟

  • Term::ReadLine::Zoid β€” the parent, the blueprint, the main character this little mode answers to πŸ‘‘

and that's the whole page, no crumbs left, we kept every single detail πŸ’– this was Term::...::Emacs(3pm) from perl v5.34.0, dated 2022-06-17 β€” periodt. byeee, go bind some keys πŸŽ€βœ¨

πŸ“¦ where this page comes from