Open probablycorey opened 10 years ago
'meta-d': 'find_under_word'
One of my favorite features in Sublime. Incredibly useful. I'd love to have that in Atom!
I completely agree with @jasonrudolph. I'd :heart: meta-d
.
+1 especially for find_all.
+1 for find_all too. I use it like crazy in ST.
+1 to find_all
+1 to find_all
@grigio, find_all
was added Dec 2 (0fefb656e1cbff9c70d1debb80864e14ea3e1262) and should be included in the latest version of Atom (0.166).
@clhynfield thanks, I've upgraded to 0.166 and it work well
Problem: meta-d
does not work as it does in sublime
In sublime, if I select anything include partial word, or any segment of text,
meta-d
will select the next match.
In atom, meta-d
will only match exact words.
For Example:
var personName = 'name';
var personRole = 'admin';
I should be able to highlight person
(of personName
), and meta-d
should select
the next person
(of personRole
). meta-g
on the other hand works as it (and meta-d
)
finding the next match.
aah i see "find all" is equivalent to: ctrl-f
, then type the search term, then hit alt-enter
thanks!
https://github.com/atom/find-and-replace/issues/67#issuecomment-69021689
@probablycorey, looks like you can cross 'shift-enter' off. It works great for me on 1.0.19.
edit: yep, merged over a year ago: https://github.com/atom/find-and-replace/issues/67
What is the difference between find_under and find_next ? I'm interested in contributing to Atom with this beginner issue.
Also, is the ctrl+meta+g
already taken for mac/darwin? It looks from the find-and-replace package keymaps code like its be reserved for find-and-replace:select-all
.
Thanks in advance!
bastilian on the atom slack sent me this link that explains the difference between find_next and find_under: http://docs.sublimetext.info/en/latest/reference/commands.html !
I believe find_under and find_under_prev are done. On Mac the hotkeys are cmd-f3
and cmd-shift-f3
, and on Windows and Linux the hotkeys are ctrl-f3
and ctrl-shift-f3
. As well, cmd-ctrl-g
on Mac alt-f3
on Windows and Linux are find_all_under. So only replace_next and slurp_replace_string are left to do.
Added find-all-under as select-all-under. The keybindings are currently ctrl-alt-g for Windows, ctrl-cmd-G for Mac.
Hi, I've never worked with Electron before, but I'd like to help with this. Would this be hard for someone who's just starting out on Electron?
@Slayslot This is an Atom issue. Did you mean Atom instead of Electron?
@50Wliu I meant to say I've never worked with an Electron app before.
I would encourage you to experiment, ask questions when you get stuck, and determine for yourself if this is too hard of an issue for you to start out with :). That being said, it looks like #719 adds the last command but hasn't been reviewed yet.
Hi, I wish to work on that. Would like to know where to begin with to make changes.
@aseemydv see if you can figure out how #719 works, then try to apply it the current codebase. I think that would be a pretty good way to start.
Is anyone working on slurp_replace_string
? If not, I'd love to take it on.
Actually it looks like cmd-alt-f
already does slurp_replace_string
(really find-and-replace:show-replace
). Would we like to also have the cmd-shift-e
keybinding do find-and-replace:show-replace
, or can we cross off that that item and be done with the list?
+1 to find_all
'meta-d': 'find_under_word'
'meta-k meta-d': 'find_under_expand_skip'
'meta-alt-e': 'replace_next'
'meta-shift-e': 'slurp_replace_string'
'alt-meta-g': 'find_under'
'shift-alt-meta-g': 'find_under_prev'
'ctrl-meta-g': 'find_all_under'
'enter': 'find_next', 'context': [{'key': 'panel', 'operand': 'find'}, y': 'panel_has_focus'}] },
'shift-enter': 'find_prev', 'context': [{'key': 'panel', 'operand': d'}, {'key': 'panel_has_focus'}] },
'alt-enter': 'find_all', 'args': {'close_panel': true}, 'context': ey': 'panel', 'operand': 'find'}, {'key': 'panel_has_focus'}] },
'ctrl-alt-enter': 'replace_all', 'args': {'close_panel': true}, text': [{'key': 'panel', 'operand': 'replace'}, {'key': 'panel_has_focus'}] },