profile
viewpoint
Farzad Majidfayyaz farzadmf Montreal, QC

farzadmf/termask 10

A utility to mask property values in the terminal

amirbawab/PowerGrid 6

C++ Implementation of the "Power Grid" board game

farzadmf/bukubrow-host 0

Host application for the Bukubrow WebExtension

farzadmf/COMP-376-Team_Delta 0

Final Project Game for the COMP 376 Course

farzadmf/COMP472Assignment2 0

Python implementation for the Othello (Reversi) Game

farzadmf/ConEmu.github.io 0

Official ConEmu page on GitHub

farzadmf/Docs 0

Documentation for ASP.NET and ASP.NET Core

issue openedcspeterson/splatmoji

History doesn't seem to work

Hi,

First of all, thank you for what you've done. I seem to have problems making history work. This is my config:

history_file=~/.config/splatmoji/history
history_length=10
rofi_command=rofi -dmenu -p splatmoji -i -theme purple -columns 2 -drun-match-fields categories -matching fuzzy -sorting-method levenshtein
xdotool_command=xdotool sleep 0.2 type --delay 100
xsel_command=xsel -b -i

I think the history is supposed to be shown at the top, but I don't see anything.

created time in 3 hours

startedgo-echarts/go-echarts

started time in 12 hours

startedwellle/targets.vim

started time in 2 days

startedjonhoo/proximity-sort

started time in 3 days

startednodejs/node

started time in 6 days

issue commentap/vim-css-color

Getting error when opening file

@twidxuga pointed out a good thing; I checked the file I'm opening and it has this at the end:

# vi: syntax=sh ts=4 noexpandtab
farzadmf

comment created time in 6 days

startedmhinz/vim-startify

started time in 7 days

startedthinca/vim-qfreplace

started time in 7 days

issue commentfdw/rofimoji

How to use most recently used list?

No worries @fdw and thank you for the update :slightly_smiling_face:

Just a quick question: do I need to do something to have those changes, or they're gonna be reflected in the Arch package?

farzadmf

comment created time in 7 days

push eventfarzadmf/golang-slides

Farzad Majidfayyaz

commit sha 4e15b03088981677ae36d080e3fe01a548a37813

Set page title

view details

push time in 9 days

push eventfarzadmf/golang-slides

Farzad Majidfayyaz

commit sha 1453928b37b4ed4aeecb6851f5494b929dc0bc1e

Add caption for images

view details

push time in 9 days

PublicEvent

startedGabMus/razerCommander

started time in 11 days

issue openedneoclide/coc-prettier

How to use with coc settings?

Hi, I'm trying to set some defaults in my coc configuration file. This is what I see when I run :CocConfig:

{
  "coc.preferences.formatOnSaveFiletypes": [
    "css",
    "html",
    "javascript",
    "javascriptreact",
    "json",
    "jsonc",
    "python",
    "typescript",
    "typescriptreact"
  ],
  "coc.preferences.formatOnType": true,
  "powershell.integratedConsole.showOnStartup": false,
  "prettier.arrowParens": "avoid",
  "prettier.printWidth": 100,
  "prettier.tabWidth": 4,
  "prettier.singleQuote": true,
  "prettier.trailingComma": "all",
  "python.formatting.provider": "yapf",
  "python.jediEnabled": false
}

As you see, I'm overriding some prettier settings here, but when I open a TypeScript file and save, it seems that it's using the default values (tabs are set at 2, it's using double quotes, etc.)

However, if I add the .prettierrc.json in the directory with the same settings:

{
  "printWidth": 100,
  "singleQuote": true,
  "tabWidth": 4
}

it's picking up the settings and applies them on save. Can you please tell me if there's something I'm missing?

created time in 11 days

startedtpope/vim-speeddating

started time in 15 days

startedtriglav/vim-visual-increment

started time in 15 days

startedstretchr/testify

started time in 15 days

startedrothgar/mastering-zsh

started time in 19 days

issue commentfdw/rofimoji

How to use most recently used list?

Hi @fdw , I'm using Chrome

For the sake of testing, I tried opening GIMP, and normal way using enter works and emojis are inserted, but the alt+<number> doesn't work.

Inserting emojis directly in the terminal is fine (both the enter way and the alt way)

farzadmf

comment created time in 20 days

issue commentnoctuid/tdrop

Using with tabbed and alacritty

Thank you @noctuid , I am using tmux, but there are cases (I must admit that they're rare) where I want to be outside of tmux. An example use case for me would be using tmux inside a Docker container, where I don't want to be in tmux in my own terminal to avoid conflicting shortcuts.

I must admit that this is a very special use case, but for example, with kitty (or guake), I could easily create a new tab and do what I want, but with alacritty with no built-in support for tabs, I was looking for an alternative to achieve the same thing as those terminals.

farzadmf

comment created time in 20 days

startedahmetb/kubectx

started time in 21 days

issue commentfdw/rofimoji

How to use most recently used list?

Hey @fdw , so I'm back to my Linux machine, and I'm trying these:

  • Insert by search and pressing enter: 🙂
  • Insert using Alt+1: (as you see nothing was inserted)

When I run my command rofimoji --rofi-args '-theme purple -columns 3' inside the terminal (or use the shortcut I've assigned to it), the emoji is inserted no matter which method I use (MRU list or pressing ENTER)

However, I see something interesting happening: in here (when writing this reply), if I press Win+<1..0>, it seems that it's inserting the first 10 emojis in the list (but I think that's different than the MRU one)

farzadmf

comment created time in 21 days

issue commentfdw/rofimoji

How to use most recently used list?

That's a very good idea @fdw , I will get back to you on that one because right now, I'm not at my Linux computer.

I'm gonna try later today and let you know 🙂

farzadmf

comment created time in 21 days

issue commentfdw/rofimoji

How to use most recently used list?

Ah OK, thank you @fdw for your answer.

I'm just wondering: the MRU insertion is different than the "normal" insertion? Because when I press ENTER on an emoji, it correctly inserts it

farzadmf

comment created time in 21 days

issue openedfdw/rofimoji

How to use most recently used list?

Hello,

Quick question about using the most recently used list. According to the README, I should be able to use Alt+<number> to insert the corresponding emoji, but when I press the combination Alt+<number>, nothing happens and rofimoji is closed without inserting anything.

Is there an additional setting I need to configure?

Thank you

created time in 22 days

issue openednoctuid/tdrop

Using with tabbed and alacritty

Hi, first of all, thank you for the great tool, it's my go-to for my dropdown terminal.

Currently, I'm using alacritty as my terminal, and as you probably know, it doesn't have tab support (and the author(s) are extremely against tabs!), so I was looking into using tabbed along with tdrop to add tabs to it.

I can easily run alacritty with tabbed like this:

tabbed alacrity --embed

So, I thought I would try to use tdrop to display that:

tdrop -am -h 85% -w -2 -x 1 tabbed alacritty --embed

But there are multiple issues:

  • The tdrop window is not appearing as a "drop-down" window, and it's basically a "full" window
  • I have a shortcut assigned to opening tdrop using sxhkd, and what's happening is that every time I press the shortcut, instead of hiding and showing the window, a new window is created

Is there any way to make what I have in mind work?

created time in 23 days

startedxournalpp/xournalpp

started time in 23 days

startedwting/autojump

started time in 23 days

startedalebcay/awesome-shell

started time in 24 days

PR opened ScoopInstaller/Main

Fix path to bat 0.16 executable
+1 -1

0 comment

1 changed file

pr created time in 24 days

push eventfarzadmf/Main

Farzad Majidfayyaz

commit sha 764f45a3178bec4feb7133b916f3e398315818e8

Fix path to bat 0.16 executable

view details

push time in 24 days

fork farzadmf/Main

📦 The next-generation default bucket for Scoop.

https://scoop.sh

fork in 24 days

startedmicrosoft/playwright

started time in a month

startedxtermjs/xterm.js

started time in a month

startedderailed/k9s

started time in a month

issue commentap/vim-css-color

Getting error when opening file

Apparently, that's the case 😮 😕

farzadmf

comment created time in a month

issue commentap/vim-css-color

Getting error when opening file

Thank you @ap for your reply, the output of :set secure? modeline? is this:

nosecure
  modeline

And I'm sorry about the bug description; I know it's super specific, but that's the only situation I saw the message

farzadmf

comment created time in a month

issue openedap/vim-css-color

Getting error when opening file

Hi, I'm using neovim, and when opening a specific file, I'm getting this error:

Error detected while processing function css_color#init[10]..css_color#enable:
line    3:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup CSSColor
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd! * <buffer>
line    6:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^I^Iautocmd CursorMoved,CursorMovedI <buffer> call s:parse_screen()
line   12:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^I^Iautocmd ColorScheme <buffer> call css_color#reinit()
line   13:
E12: Command not allowed from exrc/vimrc in current dir or tag search: ^Iaugroup END

To be more specific, I'm using byobu, and I'm doing nvim $( which byobu ) to open the file. The target file is /usr/bin/byobu, which is a "read-only" file.

I tried copying the file to a directory owned by me, but the error still happens. It seems that the issue is only with that specific file (which is a shell script), but I can't replicate it with any other file (even a shell script).

Any ideas what could be the issue here?

Thank you

created time in a month

startedyuki-ycino/fzf-preview.vim

started time in a month

startedjesseduffield/lazydocker

started time in a month

startedkdheepak/lazygit.nvim

started time in a month

startedjesseduffield/lazygit

started time in a month

startedphw/peek

started time in a month

startedpuppeteer/puppeteer

started time in a month

startedeasymotion/vim-easymotion

started time in a month

startedvercel/pkg

started time in a month

issue commentsergiokas/Extensity

Saved profiles disappeared

Interesting @sergiokas , but for me, I was using the actual Google Chrome itself and this happened

I noticed it on my Linux machine; maybe because that was the first one I checked, but maybe it had something to do with Chrome on Linux

MagTun

comment created time in a month

issue commentsergiokas/Extensity

Saved profiles disappeared

Thank you @sergiokas , I'm back to my other machine now and things seem to be working fine.

Any idea what caused the original issue of profiles going away and things not working after creating the profiles?

MagTun

comment created time in a month

startedlogrusorgru/aurora

started time in a month

issue commentsergiokas/Extensity

Saved profiles disappeared

Thank you @sergiokas for your reply, I didn't know about this, so I took the route of removing/re-installing the extension, and after doing that and re-creating my profiles, changing profiles seem to work.

However, since I'm using my Google account on Chrome on multiple environments, I needed to do the same thing for the other environment too

If I'm not mistaken, profiles are synced between environments, so I'm not sure if doing this (remove/install/re-create profiles) will affect the other environments.

MagTun

comment created time in a month

issue commentsamhh/bukubrow-host

Windows support

I got bukubrow to work with Chrome under Windows by running buku and bukubrow under Windows Subsystem for Linux (WSL). Should I do a pull request with instructions to the Readme?

I for one am very curious 🙂

samhh

comment created time in a month

issue commentsergiokas/Extensity

Saved profiles disappeared

I'm using the extension in Chrome and I had the same problem (my profiles being deleted), so I tried to re-create (some) of my profiles, but now switching profiles doesn't do anything.

Is there any way I can troubleshoot this, please?

MagTun

comment created time in a month

startedspf13/cobra

started time in 2 months

startedgo-task/task

started time in 2 months

issue openedSirVer/ultisnips

Enabling the plugin adds a delay when left-shifting in visual mode

<!-- Thanks for reporting your issue. Please follow this template closely. Without all essential info the issue may be closed as unreproducible.

Fill out the table below ----- symbols and keep it at the end of your issue text. Please provide an answer for every line.

Please provide an explanation of the issue below this line. -->

Expected behavior: In visual mode, when I press < to left-shift lines, it should be instantaneous

Actual behavior: When I enable ultisnips, when I press <, there's a delay and then my lines are left-shifted

Steps to reproduce I have a LOT of plugins for my neovim, so this might be a conflict or something with another plugin, but when I enable ultisnips in my vimplug file, I see the delay and if I remove it (and clean the plugins), I don't see the delay

<!-- Provide a minimal viable repro case, ideally following https://github.com/SirVer/ultisnips/blob/master/CONTRIBUTING.md#reproducing-bugs

If this is not possible, post a minimal, complete .vimrc, snippet definition, and set of keystrokes that reproduces your problem. --> As mentioned above, since I have a lot of settings in my vimrc, I don't know how to create a minimal one that allows reproducing the bug; I would really appreciate if you help me troubleshoot what's causing the problem.

My right-shift using > has no delay, and when I run :verbose map >, I see No mapping found But when I do :verbose map <, I see:

x  <nop>       * :call UltiSnips#SaveLastVisualSelection()<CR>gvs
        Last set from ~/.vim/plugged/ultisnips/autoload/UltiSnips/map_keys.vim line 64
s  <nop>       * <Esc>:call UltiSnips#ExpandSnippet()<CR>
        Last set from ~/.vim/plugged/ultisnips/autoload/UltiSnips/map_keys.vim line 62

When I disable ultisnips, I see the same message No mapping found

Sorry if the information I provided is not enough, but I'd appreciate your help to solve the issue (and I hope you don't ignore the issue because I didn't have a vimrc 🙏)


<!-- NOTE: contents inside arrows will be ignored. -->

  • Operating System: <!-- e.g. Windows XP / Ubuntu 16.04 / Mac OS 10.5 --> Manjaro Linux
  • Vim Version: <!-- first two lines of :version output --> NVIM v0.4.4
    Build type: Release
  • UltiSnips Version: <!-- e.g. 3.1. If you're using version from git run: git rev-parse origin/master --> 7941f98337564d4e86cf2b7467b64def4d212794
  • Python inside Vim: <!-- e.g. 2.7.14 / 3.6.5. If unsure run inside vim: :py import sys; print(sys.version) and :py3 import sys; print(sys.version)' -->pydoesn't work and result forpy3:3.8.5 (default, Sep 7 2020, 18:23:36)
  • Docker repo/vimrc: <!-- link to the branch containing the repro case, or the uploaded minimal vimrc -->

created time in 2 months

startedromkatv/powerlevel10k

started time in 2 months

issue openedhaya14busa/vim-asterisk

Question about case sensitivity

Hi, I have a question about casing of the words (I have put the map bindings from the README)

Let's say my cursor is on the word set; when I do z* or *, it would select both set and Set; however, when I'm on Set, it would only select Set.

What happens if I'm on a set and I want to only select lowercase set words? Can I do that?

created time in 2 months

startedhaya14busa/incsearch.vim

started time in 2 months

startedhaya14busa/incsearch-fuzzy.vim

started time in 2 months

startedvinayak-mehta/present

started time in 2 months

startedtpope/vim-obsession

started time in 2 months

startedxolox/vim-session

started time in 2 months

startedgohugoio/hugo

started time in 2 months

startedtmux-plugins/tmux-resurrect

started time in 2 months

startedszw/vim-maximizer

started time in 2 months

starteddgkanatsios/CKAD-exercises

started time in 3 months

startedkovidgoyal/kitty

started time in 3 months

startedargoproj/argo-cd

started time in 3 months

startedmmcgrana/gobyexample

started time in 3 months

delete branch farzadmf/termask

delete branch : issue/15-match-all-pattern

delete time in 3 months

push eventfarzadmf/termask

Farzad Majidfayyaz

commit sha 45c3f2737670e26e9b82ca51fab2bee7c42d5723

Change value pattern to match everything except double quotes; closes #15 (#16)

view details

push time in 3 months

issue closedfarzadmf/termask

Change value pattern to match everything except double quotes

As kindly mentioned by @bootswithdefer in #14 , instead of adding characters one by one, it makes more sense to do a "match-all" in the pattern

closed time in 3 months

farzadmf

push eventfarzadmf/termask

Farzad Majidfayyaz

commit sha ae938bf415f3c32c7b9863c0138830bc83a4a0ed

Change value pattern to match everything except double quotes; closes #15

view details

push time in 3 months

create barnchfarzadmf/termask

branch : issue/15-match-all-pattern

created branch time in 3 months

issue openedfarzadmf/termask

Change value pattern to match everything except double quotes

As kindly mentioned by @bootswithdefer in #14 , instead of adding characters one by one, it makes more sense to do a "catch-all" in the pattern

created time in 3 months

CommitCommentEvent

issue commentfarzadmf/termask

Some properties aren't masked

Comma and hash sign now should be recognized; feel free to re-open if the issue's still there

bootswithdefer

comment created time in 3 months

delete branch farzadmf/termask

delete branch : issue/13-missing-chars

delete time in 3 months

push eventfarzadmf/termask

Farzad Majidfayyaz

commit sha f6040db9a55b7a08d8269c6028e025c03e1ad13e

Add comma and hash sign to mask pattern - fixes #13 (#14)

view details

push time in 3 months

issue closedfarzadmf/termask

Some properties aren't masked

Some properties aren't masked, while others are. Examples are from aws_db_option_group. Seems to be related to commas "," and hash "#" characters.

terraform plan -no-color | termask -m tf -p value -i -l

          - option_settings {
              - name  = "SQLNET.CRYPTO_CHECKSUM_SERVER" -> null
              - value = "***" -> null
            }
          - option_settings {
              - name  = "SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER" -> null
              - value = "SHA256,SHA1" -> null
            }
          - option_settings {
              - name  = "SQLNET.ENCRYPTION_SERVER" -> null
              - value = "***" -> null
            }
          - option_settings {
              - name  = "SQLNET.ENCRYPTION_TYPES_SERVER" -> null
              - value = "***" -> null
            }

Also it doesn't mask this removed password:

          - option_settings {
              - name  = "AGENT_REGISTRATION_PASSWORD" -> null
              - value = "my#exposed#password" -> null
            }

closed time in 3 months

bootswithdefer

create barnchfarzadmf/termask

branch : issue/13-missing-chars

created branch time in 3 months

issue commentfarzadmf/termask

Some properties aren't masked

That's weird, I'll take a look

bootswithdefer

comment created time in 3 months

starteddenoland/deno

started time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 13eac8ef3d011a4975d7149c6feb8116b0dce0e7

Change main() return type to be Result<(), ParseIntError> and return OK(()) from main()

view details

Farzad Majidfayyaz

commit sha e92ef3f2ac6732dfaf79c0c0f14a42661d92be64

Remove NOT DONE to go to next

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 47bc0cb2afc688af4b8857824c8042dba93bee6a

Remove NOT DONE to go to next

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha b9a6dbf28217f3f9489786ace847232b31f5cbad

Remove NOT DONE to go to next

view details

Farzad Majidfayyaz

commit sha 19f44eb3f0f7292bcc257f47a94921b8e2926121

Use the long syntax to match on Result and return Ok() and Err()

view details

Farzad Majidfayyaz

commit sha aa59aed3376ac09652042dd6f272f20509342524

Use ? for the shorter syntax

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha c2464ddc3f73e12aad00910b71a896791a01e05c

Use Result<String, String> and use Ok() and Err() to return

view details

Farzad Majidfayyaz

commit sha 57f58ecba24f5ddeb27b32c069fdb9476b9274da

Use into() instead of String::from()

view details

push time in 3 months

startedfdw/rofimoji

started time in 3 months

startedcspeterson/splatmoji

started time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha b7fac41c4c12eec351005de2aadda713703c1a59

Remove NOT DONE to go to next

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 10481e455eaf2e4bde4eca3241a1a452011f2a80

Delete TODO to go to next

view details

Farzad Majidfayyaz

commit sha ea86a2091e6106468e3c780fb4f81825d9260fbd

Make things work: vec.push() needs variable to be 'let mut'

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 742a2ce20355ba0024da6db0da00efc2e2edf337

Use 'mut' to change to mutable binding

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 3b11ade9d53095ba54a12ff98c409dd3a4b2b4c3

AGAIN move TODO to go to next

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha 4ac8e216762727147cb82771ac97c4b481b82635

GOOD move2-3: use '&mut' to borrow a mutable reference

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha e7af05f16e5099c6a4cd8c9904db53a1553203b5

Make variable 'mut'able

view details

Farzad Majidfayyaz

commit sha 6a5c29ab90422aa1fa86f90d6a7ed626e714655e

move2-1: use 'clone()' to create a copy of the vector to pass to the function

view details

Farzad Majidfayyaz

commit sha 5e56729474d1bb12e880a7219d9f371aafc87377

move2-2: change function to accept reference and use 'clone()' inside the function to create an owned vector

view details

Farzad Majidfayyaz

commit sha a16427c76f5878a3bdf2fa65f55ba9c8d60dc438

move2-3: make everything mutable

view details

Farzad Majidfayyaz

commit sha 37761e7f5ed597c8c3bd2b40061e76d9be4cd049

Remove TODO to go to next exercise

view details

push time in 3 months

push eventfarzadmf/rustlings

Farzad Majidfayyaz

commit sha ec973244c683e32e31f9f52a3364e319dc502e62

Write a macro and use format! macro to do string formatting

view details

push time in 3 months

more