Fork me on GitHub
#editors
<
2015-08-24
>
danielcompton00:08:32

There’s a simple paste in IntelliJ which might help

jsyeo02:08:40

is anyone using emacs for mac osx? http://emacsformacosx.com/

jsyeo02:08:49

i am having problems with smartparens on it

jsyeo03:08:11

C-<left> and C-<right> doesn’t work for me

jsyeo03:08:28

i have to use C-( and C-M-} instead 😞

jcsims03:08:42

jsyeo: works for me - do you have the keybindings available from the OS? (I think they’re bound by default to workspace right/left)

jsyeo03:08:37

@jcsims: good catch! i disabled it and it’s working for me now!

cfleming05:08:33

@rauh: The escaping paste in Cursive is modelled after the IntelliJ one - what is it stripping out you’d like to keep?

dottedmag08:08:42

@jsyeo: While you are on it -- if you press Command-Control-A in Emacs, what do you see in minibuffer?

dottedmag08:08:41

@jsyeo: I'm trying to catch a weird bug in Emacs and can't narrow down the conditions for it being exhibited.

jsyeo08:08:51

@dottedmag: i get <C-s-268632065> is undefined

dottedmag08:08:31

@jsyeo: By any chance do you use Dvorak, Colemak or anything else non-QWERTY?

jsyeo08:08:47

i am using classic qwerty

dottedmag08:08:49

Okay, so it is not layout-dependent then. Great.

dottedmag08:08:06

The code in question muffles something about non-standard layouts.

jsyeo08:08:12

im curious, what bug are u trying to catch?

dottedmag08:08:31

This key combination should result in C-s-a, not C-s-268632065

dottedmag08:08:41

Which makes impossible to add a keybinding to it.

jsyeo08:08:05

i see this

jsyeo08:08:10

after googling

dottedmag08:08:37

Oh, yes, the same error, but without patch :)

rauh11:08:37

@cfleming: I was copy pasting within a long mutliline regex #"..." and it kept joining the lines and removed all my escape characters. Is there a way to disable it completely? I would probably prefer if it *just* escaped " and left he new lines etc in place

rauh11:08:31

So to answer you question: The regex had various \s or \d and when I copy & pasted them the \ just disappeared and ended up being just s or d

cfleming12:08:04

@rauh: Oh yes, I noticed that too - in general I think the escaping should be totally disabled in regexes since they don’t obey the same escaping rules as in Java strings.

rauh12:08:22

Awesome, thanks!

rauh12:08:51

Personally, I don't like to much magic. Though, escaping " is nice. But more transformations are too much IMO

cfleming12:08:30

I basically just copied what IntelliJ does - it’s actually possible there’s already a config flag to turn that off.

rauh12:08:02

Ok I'll try to find it.

cfleming12:08:17

I just browsed quickly and couldn’t find anything.

cfleming12:08:15

Ok, so you can’t disable it globally, looks like.

rauh12:08:51

Well you can bind paste simple to CTRL+V

cfleming12:08:00

That’s very true.

rauh12:08:41

Works for me, feel free to make it a non-issue

cfleming12:08:46

Although I tend to use Cmd-Shift-V a lot, I guess it won’t work there.

cfleming12:08:11

I’ll fix the regex case anyway, that is definitely broken. I’d noticed that myself but was obviously too lazy to file an issue at the time.