Git Product home page Git Product logo

freeze-code.nvim's Introduction

Commits Streak Github Stats

hi there waving hand gif

This is who I am

A young professional with good attitude and willingness to work in the web development sector, to acquire more experience and knowledge.

I like the self-taught aproach, but the academic side is also good. I usually learn in tandem with those two.

Projects

Some of the projects I worked or I am currently working on are:

Recent GitHub activity
  1. ❗ Opened issue #79 in scottmckendry/cyberdream.nvim
  2. 🗣 Commented on #78 in scottmckendry/cyberdream.nvim
  3. ❗ Opened issue #78 in scottmckendry/cyberdream.nvim
  4. 💪 Opened PR #77 in scottmckendry/cyberdream.nvim
  5. 💪 Opened PR #129 in AstroNvim/astrotheme

My interests

I have interests in many areas but I will break it down into 2 main ones. Professional focus ones and personal focus.

Professional

I am interested in web development because I have a background on painting, editing and graphic design. The main area being the front-end.

Also I like the back-end part, but mainly because I want to acquire programming knowledge in general, and in this area it seems to be the best for programming best practices and performance.

I like videogames and I am learning how to program them, but this is something more for the long run.

Some languages and frameworks I know and I worked with are:

TailwindCSS  CSS  HTML  JavaScript  TypeScript  NodeJS  Redux   React  NextJS  Vite  Vitest  Cypress  Cypress  Astro  Prisma  TRPC  Spring  Java  Flutter  Firebase  MongoDB  MySQL  PostgreSQL  CPlusPlus  C  C  PHP  PHP 

My contact info:

Personal

I like drawing and painting, also editing photos and videos as well as taking them. I am currently training boxing and I enjoy going for a walk everyday. Sometimes I go for a walk with my dog, but she is a bit old now so she doesn't want to go for a long distance.

I also like animation and learning how to animate. Since I was a kid I am being impressed by the worlds that animation, 2D or 3D, can create and how the music makes you feel like you are there.

I am learning how to play drums at the moment. I am a bit of a metalhead, but what drove me to this were the 80's rock.

Languages I speak

Language Level
Spanish Native
English Cambridge B2
Portuguese A1

NOTE: The levels are a reference based on Europe's language system, from A to C (C being the highest)

Basically in each letter it could be a 1 or a 2, C2 in theory equals to a native speaker

Profile views

freeze-code.nvim's People

Contributors

alejandrosuero avatar debling avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

debling

freeze-code.nvim's Issues

[Bug]: Copying screenshot to clipboard fails on MacOS

Pre-requisites

  • The issue is reproducible
  • The aren't other issues similar to this problem.
  • The aren't PRs tackling this problem.

NeoVim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1693350652

Operative system

MacOS

OS version

Darwin air-m1 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64 arm Darwin

Behaviour

I was trying it out and noticed that its plugin fails to copy image to clipboard on macOS.

Screenshot 2024-06-05 at 5 49 12 PM

I debugged the problem and found that is failing due to argument to osascript been wrapped with an extra quote (') on this line:

"'set the clipboard to (read (POSIX file \"" .. filename .. "\") as {«class PNGf»})'",

Executing this command on Neovim yields the following result:
Screenshot 2024-06-05 at 5 57 40 PM

Removing the extra quotes around the last argument, running the command works and the image goes to the clipboard as expected:
Screenshot 2024-06-05 at 5 58 40 PM

I'm submitting this simple fix as a PR linked to this issue.
Thank you so much for creating this plugin.

Steps to reproduce

  1. Open nvim with the minimal configuration, having copy = truein the freeze-code setup.
  2. Type :Freeze
  3. Upon completing the steps above, it will successfully produce a freeze.png, but shortly after, it will print a message “Error while copying screenshot to clipboard”

Minimal config

vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/]])

local lazypath = "/tmp/nvim/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  {
    "AlejandroSuero/freeze-code.nvim",
    config = function()
      require("freeze-code").setup({
          copy = true
      })
    end,
    lazy = false,
    enabled = true,
  },
})

Code of conduct agreement

[Feat]: Add installation methods

Is your feature request related to a problem? Please describe

To have an installation method for freeze.

Describe the solution you'd like

  • Check if freeze is installed vim.fn.exepath("freeze")
    • If not installed, check if golang is installed.
      • If not installed, grab the latest release from GitHub.
      • If installed, use go install github.com/charmbracelet/freeze@latest.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

refactor `os.execute` and `copy` commands

Is your feature request related to a problem? Please describe

Improve user experience by providing less time from command to notification.

Describe the solution you'd like

os.execute may cause issues if the command fails, vim.fn.system executes in
the background and it can be checked with vim.v.shell_error.

Also, change the execution of ./bin/<copy-command> to inline command declaration.
Like this:

local cmd_args = { ... }
vim.fn.system({ os_cmd, table.concat(cmd_args, " ") })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.