Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Normalize an expression within the current scope #203

Open
laserbat opened this issue Dec 15, 2024 · 0 comments
Open

Ability to Normalize an expression within the current scope #203

laserbat opened this issue Dec 15, 2024 · 0 comments

Comments

@laserbat
Copy link

Currently, Normalize (C-c C-n) operates in the global scope by default. If I have

module Booleans where
  data Bool : Set where
    false : Bool
    true : Bool

  not : Bool  Bool
  not false = true 
  not true  = false 

I can't simply normalize an expression like not (not false); instead, I have to use Booleans.not (Booleans.not Booleans.false), which is cumbersome.

The scope is selected correctly when C-c C-n is called from a hole. This is a decent workaround, but it would be much more convenient if there were an alternative Normalize command that automatically took the current scope (as determined by the cursor position) into account.

I'm not very familiar with Agda, so excuse me if this is a nonsensical request or if there's a technical limitation preventing this feature from being implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant