From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 14 Apr 2016 22:53:36 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: Subject: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_571081e087772_61843ff2c705b2bc4573c6"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode ----==_mimepart_571081e087772_61843ff2c705b2bc4573c6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit When I copy/paste a rule it looks like this afterwards: ``` rule create_design_matrix: output: outfile = "tmpdir/run_csaw_{input_use}/design_matrix.csv" run: time = pd.Series(list(range(0, 25, 3)) * 2) values = time * 2 * np.pi / 17 sine = np.sin(values) cosine = np.cos(values) design = pd.concat([time, sine, cosine], axis=1) design.columns = "Time Sine Cosine".split() design.to_csv(output.outfile, index=False, sep=" ") ``` Normally, I'd just mark the region and press `=` (`evil-indent`) to get the proper indentation, but that isn't working either. I'll prolly look into it myself eventually, but would love input on what you think is happening/best ways to fix. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8 ----==_mimepart_571081e087772_61843ff2c705b2bc4573c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

When I copy/paste a rule it looks like this afterwards:

  rule create_design_matrix:
  output:
  outfile = "tmpdir/run_csaw_{input_use}/design_matrix.csv"
  run:
  time = pd.Series(list(range(0, 25, 3)) * 2)
  values = time * 2 * np.pi / 17
  sine = np.sin(values)
  cosine = np.cos(values)

        design = pd.concat([time, sine, cosine], axis=1)
        design.columns = "Time Sine Cosine".split()
        design.to_csv(output.outfile, index=False, sep=" ")

Normally, I'd just mark the region and press = (evil-indent) to get the proper indentation, but that isn't working either. I'll prolly look into it myself eventually, but would love input on what you think is happening/best ways to fix.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

----==_mimepart_571081e087772_61843ff2c705b2bc4573c6-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 15 Apr 2016 11:39:29 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_57113561f0da2_61233f85346d529c129954"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer ----==_mimepart_57113561f0da2_61233f85346d529c129954 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I only evaled the two new files, did not install them in the `.emacs.d/elpa/` folder, but this seems to have fixed my issues. --- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8#issuecomment-210585946 ----==_mimepart_57113561f0da2_61233f85346d529c129954 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I only evaled the two new files, did not install them in the .emacs.d/elpa/ folder, but this seems to have fixed my issues.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

----==_mimepart_57113561f0da2_61233f85346d529c129954-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 15 Apr 2016 11:39:30 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_57113561f32b3_36bc3fc9110bf29c1747eb"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer ----==_mimepart_57113561f32b3_36bc3fc9110bf29c1747eb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Closed #8. --- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8#event-629339769 ----==_mimepart_57113561f32b3_36bc3fc9110bf29c1747eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #8.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

----==_mimepart_57113561f32b3_36bc3fc9110bf29c1747eb-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 28 Apr 2016 23:58:07 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_572305ff4ec36_44dd3f9afe57d2c05697e9"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_572305ff4ec36_44dd3f9afe57d2c05697e9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I am experiencing the same problem with `yasnippets`. This rule: ``` # -*- mode: snippet -*- # name: rule # key: rl # -- rule $1: input: infile = "" output: outfile = "" $0 ``` expands into this: ``` rule : input: infile = "" output: outfile = "" ``` --- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8#issuecomment-215642123 ----==_mimepart_572305ff4ec36_44dd3f9afe57d2c05697e9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

I am experiencing the same problem with yasnippets.

This rule:

# -*- mode: snippet -*-
# name: rule
# key: rl
# --
rule $1:
    input:
        infile = ""
    output:
        outfile = ""
    $0

expands into this:

rule :
input:
infile = ""
output:
outfile = ""


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

----==_mimepart_572305ff4ec36_44dd3f9afe57d2c05697e9-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 28 Apr 2016 23:58:07 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_572305ff576d5_45523f9afe57d2c07905ad"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_572305ff576d5_45523f9afe57d2c07905ad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Reopened #8. --- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8#event-645236042 ----==_mimepart_572305ff576d5_45523f9afe57d2c07905ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Reopened #8.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

----==_mimepart_572305ff576d5_45523f9afe57d2c07905ad-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id NsZxL+LzmF5eUgAAsNZ9tg (envelope-from ) for ; Fri, 17 Apr 2020 00:10:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aQIJG+LzmF5+VgAAbx9fmQ (envelope-from ) for ; Fri, 17 Apr 2020 00:10:10 +0000 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B108942069 for ; Fri, 17 Apr 2020 00:10:09 +0000 (UTC) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 0D9F95689D for ; Thu, 16 Apr 2020 20:10:08 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=r8KfrYXwXQYf+gcssoAKtqo/sGA=; b=CJpZxS P10M0V02s20iPaCOXw5kEjHlKJotnpdz//n60EmE5+EC73kGlGWEkSAJ1XTycIgU PAcL92deZcXbRgO2F6wk7/32edg27qupZCwt+rk8vWqw3ywN5jiSXxKM67wuBfk8 OAdC1hQ3arCst6ovVYSIR8xf28dZUPClQ7I70= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 01EAF5689C for ; Thu, 16 Apr 2020 20:10:08 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=XtlU244VP/sc0GfPDzfu8RIcUvMfZyVxpEvNOY0OyjE=; b=R6ax/gg/4keNxTMYK1pssD6ZiL8SDUx5jYk62xVUzQswF1vZUoPq0WG7YokTXdQvk1ZpFnkBdwZI9nbDrflJhakSzrws5taPp0L1y6jgWvOK2WmczkwT8EhvxNXkYo4XHVW/RlBn93K2opm+qdaCZWH9MatIvkjtsgousfZwcQI= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 3C0FB5689B for ; Thu, 16 Apr 2020 20:10:07 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: snakemake-mode@inbox.kyleam.com Subject: Re: Rules not properly indented after copy/pasting (#8) In-Reply-To: References: Date: Fri, 17 Apr 2020 00:10:06 +0000 Message-ID: <8736937z1d.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: CB6FD19C-803F-11EA-926E-C28CBED8090B-24757444!pb-smtp1.pobox.com X-Scanner: scn0 X-Spam-Score: -1.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=CJpZxS P; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=R6ax/gg/; dmarc=none; spf=pass (aspmx1.migadu.com: domain of kyle@kyleam.com designates 64.147.108.70 as permitted sender) smtp.mailfrom=kyle@kyleam.com X-Scan-Result: default: False [-1.10 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.108.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 11403(-0.19), country: US(-0.01), ip: 64.147.108.70(0.00)]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.50)[cached: mx-5.rightbox.com]; DKIM_TRACE(0.00)[pobox.com:+,kyleam.com:+]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.108.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.108.70:from]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[pobox.com:s=sasl,kyleam.com:s=mesmtp]; URIBL_BLOCKED(0.00)[pobox.com:dkim,kyleam.com:dkim]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[snakemake-mode@inbox.kyleam.com]; DMARC_NA(0.00)[kyleam.com]; RCPT_COUNT_ONE(0.00)[1] X-TUID: 8Bb5b30WAMy6 Some replies are missing, as described at https://inbox.kyleam.com/snakemake-mode/874ktmyh4u.fsf@kyleam.com/ Please visit the link in the parent message to see the full discussion.