![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
slap is a Sublime-like terminal-based text editor that strives to make editing from the terminal easier. It has:
$ curl -sL https://raw.githubusercontent.com/slap-editor/slap/master/install.sh | sh
If you already have NodeJS installed:
$ sudo npm install -g slap@latest
$ slap fish.c
$ slap fish1.c fish2.c
$ slap redfish/ # open dir
$ slap # new file
slap supports INI or JSON config files. You can put configuration wherever rc can find it.
A mostly empty configuration file with some useful comments is created in ~/.slap/config
if an existing file isn't found.
Pass configuration via command line:
$ slap --header.style.bg red file.c
Slap is fully customizeable and supports plugins written in JS. You can place
single JS files, or NodeJS packages, into ~/.slap/plugins/
.
To write your own plugin, a good starting point is
slap-clipboard-plugin.
Please note that plugin packages must have "keywords": ["slap-plugin"]
in
package.json
.
iTerm2 supports the mouse and most keybindings out of the box. For optimal Terminal.app usage, see slap-Terminal.app-profile.
If you are using X.Org, ensure xclip is installed for OS clipboard support.
Most terminal emulators in Windows do not support mouse events, PuTTY being a notable exception. In Cygwin, slap crashes on startup due to joyent/node#6459.
Join us in #slap on Freenode for troubleshooting, theme/plugin/core development, or palm strike discussion of any nature.
NOTE: if you are using Terminal.app, see slap-Terminal.app-profile.
Unfortunately most terminal emulators do not support certain keystrokes and as
such there is no way to handle them. These include C-backspace
, S-home/end
,
and S-pageup/down
. Most of these actions have alternate keybindings, inspired
by emacs and other editors, but if you find one that doesn't work, please
submit an issue!
slap is based on Github's atom/text-buffer, and as such should be very performant, even with very large files.
Try --editor.highlight false
or adding the following to ~/.slap/config
:
[editor]
highlight = false
If that doesn't improve performance, please run with --perf.profile true
and
submit an issue with the newly-created v8.log
file.
FAQs
Terminal-based text editor
The npm package chefeditor receives a total of 1 weekly downloads. As such, chefeditor popularity was classified as not popular.
We found that chefeditor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.