vim-textobj-variable-segment
crux
vim-textobj-variable-segment | crux | |
---|---|---|
9 | 14 | |
149 | 869 | |
- | - | |
0.0 | 5.9 | |
almost 2 years ago | about 1 month ago | |
Vim Script | Emacs Lisp | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-textobj-variable-segment
-
vim-textobj-variable-segment throws an error using lazy.nvim
textobj-variable-segment link
- What kind of short cut key if any do you use for changing text up until next underscore character?
-
CF / DF Movements
I use fuadsaud/vim-textobj-variable-segment and then do "civ"/"div". Useful for camel case as well.
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
vim-textobj-variable-segment is useful when editing snake case or camel case words.
-
FAVOURITE PLUGINS
julian/vim-textobj-variable-segment adds v as text object for a section of a variable name, e.g. camelCase, PascalCase, snake_case, kebab-case, etc bold text use to show a section that could be highlighted with viv (whereas vav would also select the hyphen or underscore)
-
Unlucky defaults: ciw, cw, diw, dw?
FYI: There is a plugin which adds text objects for the camelCase and snake_case segments which can be changed with the civ command.
-
Replace word up to _ without changing search
You can also use something like vim-textobj-variable-segment or roll your own
- Possible to learn emacs org mode in 15 - 30 hours?
-
Treat camel case as sperate words
I've tried CamelCaseMotion but after finding out about vim-tesxtobj-variable-segment, I've never looked back!
crux
-
Emacs 29 is nigh What can we expect?
For those still on 28, crux-rename-file-and-buffer does the same thing (https://github.com/bbatsov/crux). I've been using it for half a decade at this point. This sort of command, that no other code will rely on, was never that important to get into core, and there's some merit in making people create the commands they needed. It's not like with the additions to subr and subr-x libraries (string-replace, string-search etc), which can't come fast enough.
-
Change FILE of a buffer
Use vc-rename-file or crux-rename-file-and-buffer from crux
- Repository with code snippets and utility functions
-
Deleting files in Emacs [OC]
A similar functionality is in the crux package (see crux-delete-file-and-buffer).
-
What is the emacs equivalent of vim eunuch?
How about https://github.com/bbatsov/crux?
- Getting started with emacs is really hard
-
Effective and efficient text editing using Emacs (Alternative to Evil)
Some packages I use for more effective text editing is crux for general text editing (video on crux), paredit for lisp editing and for org-mode:
-
What is your favorite text-editing package / command?
I'll go with crux. It's not all about text editing, but it's got a lot of commands in dwim-fashion.
- Emacs Redux | Return to the Essence of Text Editing
-
Possible to learn emacs org mode in 15 - 30 hours?
I learned the syntax of org-mode in an hour (maybe less), It has many superiorities to markdown (see this excellent essay). Emacs is a fully-featured tool, it's a lifetime of learning, just like all extremely powerful tools, you can see the blogs of many emacs experts like Bozhidar, Protesilaos, Karl Voit (to name a few) learning new features of Emacs quite regularly.
What are some alternatives?
CamelCaseMotion - A vim script to provide CamelCase motion through words (fork of inkarkat's camelcasemotion script)
emacs4cl - A tiny DIY kit to set up vanilla Emacs for Common Lisp programming
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
meow - Yet another modal editing on Emacs / 猫态编辑
targets.vim - Vim plugin that provides additional text objects
emacs.d - Fast and robust Emacs setup.
nvim-dap - Debug Adapter Protocol client implementation for Neovim
selectrum - 🔔 Better solution for incremental narrowing in Emacs.
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
emacs.d - An Emacs configuration bundle with batteries included
tidy.nvim - A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
xah-fly-keys - the most efficient keybinding for emacs