Amy de Buitleir | 5 Dec 18:04 2014
Picon

CUA mode Shift + left/right arrow does not extend/reduce selection

I've been writing some documentation on the CUA mode for yi, and noticed a bug:

Shift + up/down arrow extends/reduces selection by one line, as expected.
Alt + shift + up/down arrow extends/reduced *rectangular* selection by one line, as expected

Shift + left/right arrow does nothing! I would expect it to extend/reduce *rectangular* selection by one character.
Alt + shift + left/right arrow extends/reduces *rectangular* selection by one character, as expected

I have examined `Yi.Keymap.Cua`, and if my understanding of how `move` and `select` are defined is correct, it seems like Shift + left/right arrow should work. I've looked at `setMark` as well, but I haven't looked any deeper than that because I started to feel a bit lost. If anyone can point me in the right direction, I'll try to fix this problem and do a pull request.

--
--
Yi development mailing list
yi-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
http://groups.google.com/group/yi-devel
---
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Amy de Buitleir | 3 Dec 11:49 2014
Picon

Could not find module ‘Yi’


I'm using the latest version of Yi from GitHub. When I run yi without a custom configuration using --as=cua, it works just fine. But when I copy the configuration in example-configs/yi-cua.hs to ~/.config/yi/yi.hs and launch again (without --as=cua), I get an error:

/home/amy/.config/yi/yi.hs:1:8:
   
Could not find module Yi
   
Use -v to see a list of the files searched for.



The line in question is the first line of the sample configuration, i.e.,

import Yi

I built yi inside a sandbox. Here is how I'm launching it:

~/nosync/sandboxes/yi/bin/yi

Any suggestions?

--
--
Yi development mailing list
yi-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
http://groups.google.com/group/yi-devel
---
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Amy de Buitleir | 26 Nov 12:30 2014
Picon

PageUp and PageDown in CUA mode

I'm using CUA mode, and I want to make PageUp and PageDown work as expected. There's no TextUnit for "Page", so it seems I can't do it using maybeMoveB. Is there another way to do it?

Here's my config:

{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK show-extensions #-} -- is this needed?
import Yi
import Yi.Keymap.Cua


myConfig
:: Config
myConfig
= defaultCuaConfig

defaultUIConfig
:: UIConfig
defaultUIConfig
= configUI myConfig

extendedCuaKeymapSet
:: KeymapSet
extendedCuaKeymapSet
= customizedCuaKeymapSet $
  choice
[ metaCh 'x' ?>>! helloWorld
         
, metaCh 's' ?>>! promptFile "Write file:" fwriteToE
         
, spec KPageUp ?>>! maybeMoveB ??? Backward
         
, spec KPageDown ?>>! maybeMoveB ??? Forward ]

helloWorld
:: YiM ()
helloWorld
= withCurrentBuffer $ insertN "Hello, world!"

main
:: IO ()
main
= yi $ myConfig
 
{

   
-- Keymap Configuration
   defaultKm
= extendedCuaKeymapSet,

   
-- UI Configuration
   
-- Override the default UI as such:
   startFrontEnd
= startFrontEnd myConfig,

   configUI
= defaultUIConfig
     
{
       configFontSize
= Nothing,
                       
-- 'Just 10' for specifying the size.
       configTheme
= configTheme defaultUIConfig,
                     
-- darkBlueTheme  -- Change the color scheme here.

       configWindowFill
= ' '
     
}
 
}



--
--
Yi development mailing list
yi-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
http://groups.google.com/group/yi-devel
---
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
GitHub | 6 Oct 10:03 2014

[yi-editor/yi] 2156fb: Mention nix hacking instructions

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: 2156fb447a1a92264fcab92bf2e443e9214d77de
      https://github.com/yi-editor/yi/commit/2156fb447a1a92264fcab92bf2e443e9214d77de
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-06 (Mon, 06 Oct 2014)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Mention nix hacking instructions

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 6 Oct 09:45 2014

[yi-editor/yi] 3e48b2: Point the user to GitHub pages for installation

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: 3e48b2a6c970d3d9f0b9b476142b3dc9f29fdab6
      https://github.com/yi-editor/yi/commit/3e48b2a6c970d3d9f0b9b476142b3dc9f29fdab6
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-06 (Mon, 06 Oct 2014)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Point the user to GitHub pages for installation

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 19:32 2014

[yi-editor/yi] 13e43a: cosmetic

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: 13e43ad0038a6dbae6bc52760af0d61dced05118
      https://github.com/yi-editor/yi/commit/13e43ad0038a6dbae6bc52760af0d61dced05118
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M yi/src/library/Yi/Buffer/Misc.hs
    M yi/src/library/Yi/Modes.hs

  Log Message:
  -----------
  cosmetic

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 18:13 2014

[yi-editor/yi] de3cf6: Remove Ref typeclass

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: de3cf665df6e9dbae8bb5304db6cf27e07f8cf0f
      https://github.com/yi-editor/yi/commit/de3cf665df6e9dbae8bb5304db6cf27e07f8cf0f
  Author: Carter Charbonneau <zcarterc@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M yi/src/library/Yi/Core.hs
    M yi/src/library/Yi/Monad.hs
    M yi/src/library/Yi/Types.hs
    M yi/src/library/Yi/UI/Pango.hs
    M yi/src/library/Yi/UI/Pango/Control.hs

  Log Message:
  -----------
  Remove Ref typeclass

MVar and IORef have different semantics (MVar can be empty, IORef
can't), so this typeclass isn't all that useful. In addition, it's not
used all that much, and only to automatically liftBase!

Closes #625

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 17:10 2014

[yi-editor/yi] 21b118: Don't mark buffer as changed if nothing was killed

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: 21b118df986660590aeca5af7b11f3d3d58cc01a
      https://github.com/yi-editor/yi/commit/21b118df986660590aeca5af7b11f3d3d58cc01a
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M CHANGELOG
    M yi/src/library/Yi/Buffer/Misc.hs

  Log Message:
  -----------
  Don't mark buffer as changed if nothing was killed

Fixes #618

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 16:37 2014

[yi-editor/yi] d766fe: Write binary instances by hand in Yi.Types

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: d766fea26a833bbd0e5dad646e390c6de651b6f6
      https://github.com/yi-editor/yi/commit/d766fea26a833bbd0e5dad646e390c6de651b6f6
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M yi/src/library/Yi/Types.hs

  Log Message:
  -----------
  Write binary instances by hand in Yi.Types

This stops the stupid TH scoping problems seen in 7.8.3

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 16:27 2014

[yi-editor/yi] 8c1e2b: Fix display of paths starting with /

  Branch: refs/heads/master
  Home:   https://github.com/yi-editor/yi
  Commit: 8c1e2b1f8b53e0a0badfb086ae8e0dc6424ddd22
      https://github.com/yi-editor/yi/commit/8c1e2b1f8b53e0a0badfb086ae8e0dc6424ddd22
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M CHANGELOG
    M yi/src/library/System/CanonicalizePath.hs

  Log Message:
  -----------
  Fix display of paths starting with /

Fixes #528

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

GitHub | 5 Oct 15:45 2014

[yi-editor/yi] 35f9c1: Move TH down to sort out scoping issues on 7.6.3

  Branch: refs/heads/7.6.3-fix
  Home:   https://github.com/yi-editor/yi
  Commit: 35f9c15ffd863c9153e2a30746379d762bd9e1e6
      https://github.com/yi-editor/yi/commit/35f9c15ffd863c9153e2a30746379d762bd9e1e6
  Author: Mateusz Kowalczyk <fuuzetsu@...>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M yi/src/library/Yi/Types.hs

  Log Message:
  -----------
  Move TH down to sort out scoping issues on 7.6.3

-- 
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups "yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.


Gmane